Last Updated on 16 March 2012
Published on 08 March 2012
User Rating: 



/ 1
Here is a script that I wrote that will in short: Shutdown remote computers.
I have been searching online for a script that did a great job of shutting down remote computers. I wanted it to do several things while before shutting down the computers.
- Pull the list of computers from AD - pulling them from a OU (which could be specific to a lab, or the whole organization)
- I need it to skip computers that are already turned off
- I wanted it to only shutdown if the computer was idel. This was the big one and the hard one to solve.
- So the script first checks to see if someone is logged into the computer - if not it shuts it down
- If their is someone logged in it then checks to see if the screen saver is running. If it is - It shuts down the computer
- It then sends an email to an email address that will show what computer did what.
- The email is a work in progress - which I will most likely replace with a logging system
Read more: VBS shutdown remote computers
VBS