Smart Label based on Script
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.
Answers (2)
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.
Comments:
-
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. - bnerison 10 years ago
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.