I am trying to create a smart label that will define which machines have had a particular script run on them or not.

What I am trying to do is ensure that every machihe gets this script run at least once.  The script copies down customization files for the Outlook 2010 ribbon.  My thinking is that if I can create a smart label that will determine if the script has run or not, then I can apply the script to that label thus ensuring the script executes on tha machines that have not had the script applied yet.

Maybe I am way off on this, maybe there is a better way?  (I am sure there is) any suggestions would be greatly appreciated.

Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



1. Have your script create a registry key that indicates it's been run.

2. Create a custom inventory rule that feeds off that key

3. Create a smart label that uses the custom inventory rule.

Answered 09/04/2013 by: BHC-Austin
Fourth Degree Black Belt

  • how would you do this if a process is running (or not)? I have a script to do this but need a smart label with the list of machines from the results.
Please log in to comment
Answer this question or Comment on this question for clarity



You would probably need a custom inventory rule to do what you are proposing, but it is possible to create a software smart label that looks for machines that do not have the customization (something like "does not contain yoursoftwaretitle").  You could then use it to target machines that haven't had the script run.


Answered 09/04/2013 by: jknox
Red Belt

Please log in to comment