Awesome! Thanks Dave.

I will do some testing later today.  Am I correct on assuming that 128 will
set the flag on, how about if what the check box off, can I set it to 0?
On Jan 18, 2014 9:10 AM, "David O'Brien" <[email protected]> wrote:

> Hi Cesar,
>
> here's an example for one Package via WMI. Change the PkgFlags from 0 to
> 128 to configure it to copy it to a share.
>
> $Package = Get-WmiObject -Class sms_package -Namespace root\sms\site_hq1
> -Filter "PackageID = 'HQ100001'"
> $Package.PkgFlags = 128
> $Package.Put()
>
> Please test it on one of your packages first.
>
> Cheers,
> David
>
>
> On 18 January 2014 17:29, elsalvoz <[email protected]> wrote:
>
>> Hello All,
>>
>> We trying to find a way to programmatically uncheck this box in hundreds
>> of packages in SCCM 2012. I could not find any example in MSDN that refers
>> to this particular flag. Unless I'm missing it, there isn't a
>> parameter/switch in SCCM 2012 that would allow this change
>>
>> Has anyone done this before with a script or know of example code that
>> can get me started?
>>
>> we are trying to port it onto a powershell script.
>>
>> [image: Inline image 2]
>>
>> I think we can change advertisements "run from DP" to "Download from DP
>> and run locally" with a SCCM cmdlet.
>> [image: Inline image 3]
>>
>> Thanks,
>> Cesar
>>
>>
>
>


<<image.png>>

<<image.png>>

Reply via email to