Re: Is there a way to stop software distributions to specific clients?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sorry; the local policy I'm referring to is not related to Group
Policy.

Here's how to use an SMS local policy override for SW Distribution.
Save this as a file like No_SWDist.mof

//copy after this line to a text file no_swdist.mof
#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;
};

//end of text file no_swdist.mof

At the client, you would run mofcomp no_swdist.mof
To confirm the local policy override worked, check either execmgr.log;
at the time of the mofcomp; you should see an entry "Software
distribution agent was disabled". You could also look at Control
Panel, Systems Management, Components; you'll see SMS Software
Distribution Agent is disabled.

If you want to re-enable it; you'd need to delete the local WMI entry;
here's a vbscript to do that (run locally on the client):

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



On Jun 19, 7:52 am, "Chris McKean" <cmck...@xxxxxxxxxxxxxxx> wrote:
I want it to be for all software distributions. But I still want hardware
inventoring to be working at least... I cannot imagine what I would need to
do in gpedit.msc to do a local policy setting(s) to acheive this. Or is
there an SMS related policy concept on the machine to do this?

<sherrylkissin...@xxxxxxxxx> wrote in message

news:1182201818.178868.209590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Did you want to stop all software distribution tasks on the client, no
matter what? If so, I believe that could be done using a "local
policy".
If instead you wish to send a particular advertisement to "all xp
workstations but these clients", you do that using a collection query;
usually using a SubSelect Query statement.

On Jun 18, 2:12 pm, "Chris McKean" <cmck...@xxxxxxxxxxxxxxx> wrote:
My hope is that there might be something like the skpswi.dat that is used
to
stop software inventorying on a client partition, though of course I
don't
need it narrowed down to a particular partition for something like
Software
Distribution necessarily.
thanks,
Chris- Hide quoted text -

- Show quoted text -


.



Relevant Pages