Last October I posted an update to the script to automatically set the PATCH property used by ccmsetup.exe to install client updates during the Configuration Manager client installation in a task sequence. That update was to make the script compatible with ConfigMgr 2012.
Since that time, my colleague Alexey Semibratov pointed out to me that the script did not correctly handle FullMedia deployments correctly. In that scenario, I had assumed that the script could install the client updates directly off the media. This assumption will not work if the media drive letter changes after booting into the new OS.
To overcome this, the new version attached below now uses Alexey’s idea to copy the updates to %OSDisk%\windows\temp\hotfix in all scenarios. The %OSDISK% variable should get set properly in all scenarios when using latest MDT 2012 Update 1 task sequence template.
Follow the October 2012 post for instructions to setup the client package and Chris Nackers’ great blog post for instructions on how to configure this solution.
This post was contributed by Michael Murgolo, a Senior Consultant with Microsoft Services - U.S. East Region.
In my environment i found that the OSDisk is only set for REFRESH scenario and not for bare metal builds. I therefore added a line to look at OSDTargetSystemDrive if OSDisk variable is not set. Since then it's been working great and i have confirmed it is working for Standalone Media too! Thanks! Love it.
Did you try version 1.1.3? That should have solved the issue of OSDisk not being set. If not, please give it a try and let me know if it works for you.
In our environment we don't have any client properties specified, therefore the script fails. I have therefore amended this part:
sSMSClientInstallProperties = oEnvironment.Item("SMSClientInstallProperties")
If sSMSClientInstallProperties = "" Then
'oLogging.CreateEntry "SMSClientInstallProperties property not found.", LogTypeError
'ZTIProcess = Failure
oLogging.CreateEntry "SMSClientInstallProperties property not set.", LogTypeWarning