I'm using the built in script to shut down my windows machines.  But I'm run into a problem.  When I assign the script to run to a batch of computers the ones that are on do shutdown.  However the ones that are off will also shut down the next day when they are turned on.

Is there a way to prevent that from happening?
Answer Summary:
0 Comments   [ + ] Show Comments


  • This content is currently hidden from public view.
    Reason: Removed by member request
    For more information, visit our FAQ's.
Please log in to comment

Answer Chosen by the Author

here is our setup for the 7pm shut down.  when using "and's" it does not matter the order, all lines must be satisfied to meet the criteria for the label to apply.

Answered 01/20/2016 by: SMal.tmcc
Red Belt

  • Thank you so much for this. I'm looking forward to try this script tonight.
  • We use the ip address so we do not shut down laptops VPN'ing in thru Cisco
    • That's a very good idea. I'll use it. Thanks.
Please log in to comment

Community Chosen Answer

create a smart label that the machine is connected (client) and use that for your script.

will post a screen shot of mine if needed when in the office tomorrow
Answered 01/19/2016 by: SMal.tmcc
Red Belt

  • Thank you for the reply. I'll try that tonight. Should I add the device connect to the end of the laptop with an "and" on the previous line?
Please log in to comment


Yes I am.  I work for the Rome City School District.  How did you know?
Answered 01/20/2016 by: mbatescny
Senior White Belt

  • I accidentally clicked as I was passing over your name and ended up on your profile. I grew up outside Utica so when I saw your company name I figured it had to be Rome NY
Please log in to comment
I tried the settings you have game last night.  My in my test I had the machine setup to turn off and other machines already off.  At the configured time the machines did turn off but later when I powered up the machines that were off they also powered off in a few mins.  I've attacked screen shots of my settings.  Do you see anything wrong with my setup?

Thanks for the help.

Answered 01/21/2016 by: mbatescny
Senior White Belt

  • change it to an online script, and leave allow run without logged in user checked
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja