For large organizations, occasionally you’ll need to perform a remote restart of all of the PC’s on your network. This could be for a variety of reasons — updates, database crashes and/or security updates. To easily perform this, you can use VBScript to restart remote computers quickly and efficiently.

I stumbled upon this really cool script posting on SpiceWorks detailing how to use VBScript to restart remote computers on your network.

This VBScript that resets remote computes is nice because it gives the user a 5 minute warning. Per the script author, you just list the computers in a .txt files and can restart or shutdown the computers based on the commands you give:

This script reads a text file populated with computer names and performs the remote shutdown command on them. In the script as-is, the computers will restart after 5 minutes (300 seconds), and display a warning to any users currently logged on to save their work before their computer automatically restarts. Of course, the delay and message can be changed, and if you want the script to instead shutdown, replace the “-r” switch with “-s”. Create a text file with one computer name on each line and change the “C:\computers.txt” part of the script to match the path and filename of the text file. — Sam “skrysiak” Krysiak

VBScript to Restart Computers — Please Review Code Carefully Before Use

Thanks a lot to Sam Krysiak for helping out the community with some great code on using VBScript to restart remote computers.

Looking for File Storage and Management?

With SmartFile, you improve file governance, management and access for the files exchanged and stored by your organization — no matter where they’re located. Get a quote and learn more!

Get a No-Pressure On-premise Quote

SmartFile rose above the competition with an amazingly intuitive web interface, simplicity of workflow, and ability to create custom branded front-end. SmartFile was deployed and customized quickly, user training ended up being unnecessary.”

— Robert Robinson, Owner / Consultant | Robinson IT Consulting, LLC

Related Posts

Related Topics & Tags: Online Security

About Curtis Peterson

I'm the Digital Marketing Manager for SmartFile who loves content, email marketing and web analytics. As a child, I built awesome websites with animated starry night backgrounds and multi-colored font headers on AngelFire and GeoCities.

Leave a Reply

Your email address will not be published. Required fields are marked *