/build/static/layout/Breadcrumb_cap_w.png

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.


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: BHC-Austin 11 years ago
4th Degree Black Belt
1

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
Posted by: jknox 11 years ago
Red Belt
0

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.

 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ