Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.

SMS Software Distribution – Pausing or Stopping

If you’ve ever needed to freeze software distribution for a period of time, or just disable it all together on a client, here’s how to use an SMS local policy override for SW Distribution.   I always name my files with a Z* or ZTI* in front of them so that when i place them in my MDT \scripts folder, they are automatically copied to my deployment points.  If you are adding these files to your SMS OSD package, remember to make sure you add them as required files to a phase under the OSD program, otherwise SMS will not pull them into your OSD package source folder.

Disabling Software Distribution Agent
Save the below text as a file like ZTI-SMSSD-Disable.mof or download the files I posted below.

#pragma namespace("\\\\.\\root\\ccm\\policy\\machine\
instance of CCM_SoftwareDistributionClientConfig
SiteSettingsKey = 1;
PolicySource = "Local";
//override only this property, all others from the Site/Management
Enabled = FALSE;

I would first run a mofcomp –check on the file to make sure your file is valid.  Then to run it on a client, you would run “mofcomp ZTI-SMSSD-Disable.mof”
You can view the execmgr.log to see the entry stating “Software Distribution Agent was disabled”. 

You could also look at Control Panel –> Systems Management –> Components Tab, you should see that the SMS Software Distribution Agent is disabled. 

Enabling Software Distribution Agent

If you want to re-enable it, here is a VB script that will do the trick.

Set objSWbemServices = GetObject("winmgmts:" &_
"{impersonationLevel=impersonate}!\\." &_
Set objSWbemRequestedConfig = GetObject("winmgmts:\\." &_
Set colSWbemObjectSet = objSWbemRequestedConfig.ExecQuery _
("SELECT * from CCM_SoftwareDistributionClientConfig")
For Each objSWbemObject In colSWbemObjectSet
if objSWbemObject.PolicySource = "Local" then
End If



Here are the files: ZTI-SMSSD-Scripts

Leave a comment  




Submit comment