Well certainly run independantly that script works for me Trevor.


Though no joy when triggered (or not) by the status filter rule.......



Anyone know of a log that reports status filter rule actions, I'd like to see 
if it's trying to run the script.



The rule is pretty straight forward, mirroring what you see when a new asset is 
added to the collection:

[cid:[email protected]]









Stuart Watret

Offshore - IT Ltd

________________________________
From: [email protected] <[email protected]> on behalf 
of Trevor Sullivan <[email protected]>
Sent: 28 February 2014 16:26
To: [email protected]
Subject: RE: [mssms] Clear pxe flags on collection

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