I want to prevent script from deploying on a group of computers that belong to a certain label.  Is there a way to restrict a script from running on a machine if it has been assigned a specific label?

0 Comments   [ + ] Show Comments


Please log in to comment



Why not do a Smart Label that "DOES NOT CONTAIN" the specific label you created, and set the script to run just on those machines.

It'd get dangerous when installing new PCs since the first Smart Label would need a solid Update or two before the supplementary Smart Label would catch. 

Or you could put the original smart label parameters as the "Verify" on the script, e.g., before the script runs, it could check to see if the PC has a program installed, or a specific registry field.

Answered 12/17/2012 by: gcarpenter
Green Belt

  • gcarpenter. Thanks for your comments. I thought about the Smart Label approach, but wasn't sure if that was the right way to go about it. New PCs shouldn't pose a problem in this case. Thanks for the input.
Please log in to comment
Answer this question or Comment on this question for clarity