Deploying Microsoft Hotfixes via the ConfigMgr 2012 App Model

In this example, I will use the new ConfigMgr 2012 application model to deploy the a Microsoft hotfix.  While this is not intended to be a full demo on how to create a script installer for the application model, this will feature a few key components – the installation/uninstallation command lines and then using PowerShell to detect the presence of the hotfix’s installation status.

For the install/uninstall command lines, be certain to NOT call the .wsu installer directly as this will fail with message “Method EnforceApp failed with error 87d01104″ in the AppDiscovery.log file.  Rather, use wusa.exe to trigger the install.  Also, ensure the file name is surrounded by double quotes and the appropriate parameters are added after the quotes.

  • Install – wusa.exe “KB1234567″ /quiet
  • Uninstall – wusa.exe “KB1234567″ /uninstall

wusa_kb_inst

For the detection logic (in the Deployment Type), select to use script type “PowerShell” and click edit.  For the script contents, run command

Get-HotFix | Where-Object {$_.HotfixID -eq 'KB1234567'}

ps_detect_kb

 

And this should be the main components you need to have in place to successfully detect and deploy a hotfix with the ConfigMgr 2012 as an Application!

email

Written by , Posted .
  • Mike Gouldthorp

    How do you address when a specific hotfix deployed via the app model in “not applicable” for a given computer? Right now it appears that it simply fails… which is unfortunately when the hotfix is a dependency for another application.
    Thanks,
    Mike

  • Josip M.

    I got error code that evaluation script is not signed