Stuart,

 

I think you should be able to use the following:

 

$Collection = Get-WmiObject -Namespace root\sms\site_lab -Class
SMS_Collection -Filter "CollectionID = 'SMS00001'";

$Collection.ClearLastNBSAdvForCollection(); 

 

Make sure to replace the "lab" with your site code, and the "SMS00001" with
your collection ID. Let me know how this works.

 

http://msdn.microsoft.com/en-us/library/cc146058.aspx 

 

Cheers,

Trevor Sullivan

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Stuart Watret
Sent: Friday, February 28, 2014 10:14 AM
To: [email protected]
Subject: [mssms] Clear pxe flags on collection

 

Been trying to do this for a couple of hours and can't find a working
script.

 

Tried a VB example and the powershell stuff; having issues with both.

 

Whatever I use I want to trigger from a status filter rule.

 

Anyone have a working example?

 

Stuart Watret

Offshore - IT Ltd

 



Reply via email to