Chris Nackers Blog

ConfigMgr and MDT Deployment Solutions

Useful Blogs

User Groups

System Center Configuration Manager (ConfigMgr) – Automatically Populating The PATCH Property

I had previously blogged about a script created by Michael Murgolo over on TechNet.  I wanted to now show you how to actually setup this script and use it in your environment.

Configuring the Task Sequence

First, download the script from the blog post link above.

Copy SCCMClientHotfixPath.wsf and ZTIUtility.vbs to the ConfigMgr client source files. ZTIUtility.vbs can be found in your MDT Toolkit Package, under the \Scripts directory. Here we have a screenshot of the files copied into the ConfigMgr Client source files.

image

Update your ConfigMgr Client Package to the Distribution Points, so the changes can be replicated out.

image

Next open up your MDT Integrated Task Sequence. Right-Click on the Task Sequence and select “Edit”.

image

Next, add a Run Command Line Step, just before the “Setup Windows and ConfigMgr” step under the Post Install Phase.

image

Name the step appropriately. I will use “Set ConfigMgr Client PATCH Paths”.

image

Set the Command Line to “cscript.exe SCCMClientHotfixPath.wsf

image

Make sure to select your ConfigMgr Client package for the Package.

image

Go to the “Setup Windows and ConfigMgr” step and copy any properties you have set here to the notepad or clipboard (to be used later in this guide), if any. Then remove them from the step.

clip_image012

Settings have been removed and copied to clipboard or notepad.

clip_image014

Setting The Variable Method 1

Open up your CustomSettings.ini in the source files for the Settings Package you are using in that Task Sequence.

image

NOTE: You can check which package this is by looking at the first Gather step in your Task Sequence. This will tell you what Settings package is being used by the Task Sequence.

image

We will need to set a variable for “SMSClientInstallProperties” and define the variable, as the variable is not known to MDT, however it is a known variable for ConfigMgr. You will want to put any client command line items you previously had in the “Installation Properties” section of the “Setup Windows and ConfigMgr” Task Sequence step, minus any PATCH values.

###############################

[Settings]

Priority=Default

Properties=SMSClientInstallProperties

[Default]

OSInstall=Y

SMSClientInstallProperties=FSP-ConfigMgrFSP

###############################

image

Then make sure to update the distribution points for the Settings package you just modified.

Setting The Variable Method 2

If you prefer to not set the variable through CustomSettings.ini and would rather set the variable through the Task Sequence you can also do that by doing the following steps.

Create a new Set Task Sequence Variable step before the “Set ConfigMgr Client PATCH Properties” step you created earlier (or whatever you happened to call it).

image

Set the variable to be set as “SMSClientInstallProperties

image

Then set any client properties you want set, again minus the PATCH property.

image

Comments

No Comments