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.
X
Aside

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\
\requestedconfig")
[CCM_POlicy_PartialPolicy(true)]
instance of CCM_SoftwareDistributionClientConfig
{
SiteSettingsKey = 1;
PolicySource = "Local";
//override only this property, all others from the Site/Management
Point
[CCM_Policy_Override(true)]
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}!\\." &_
"\root\cimv2")
Set objSWbemRequestedConfig = GetObject("winmgmts:\\." &_
"\root\ccm\policy\machine\requestedconfig")
Set colSWbemObjectSet = objSWbemRequestedConfig.ExecQuery _
("SELECT * from CCM_SoftwareDistributionClientConfig")
For Each objSWbemObject In colSWbemObjectSet
if objSWbemObject.PolicySource = "Local" then
objSWbemObject.Delete_
End If
Next

———————————————–

 

Here are the files: ZTI-SMSSD-Scripts

Leave a comment  

name*

email*

website

Submit comment