Scripting Question

K1000 Script to shutdown windows machines

01/19/2016 1719 views
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.

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.

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?

All Answers

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
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

Don't be a Stranger!

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

Sign up! or login

View more:


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