Tip

Shut down PCs remotely using the command line or a GUI

This tip was submitted to the SearchWin2000.com tip exchange by member Stuart Norris. Please let other users know how useful it is by rating it below.


This easy GUI is available from the "Run" command in the Start menu. Click on "Run" and then type "shutdown -i." You can then browse for the PC you want to reboot, shut down or logoff. If you'd like, you can inform the user and set a buffer time to allow the user to save work.

You can force PCs to reboot by using the command prompt version. For example: "shutdown /r /t xxx /f /m myworkstation."

Where:
The "/r" stands for reboot. You can replace it with "/s" for shutdown or "/l" to log the user off.
The "/t xxx" is the time allowed before rebooting --you change the xxx to any digit in seconds.
The "/f" is force -- you can choose to use or drop this.
The "/m myworkstation" specifies the PC in question. You can replace "myworkstation" with other PC names or IP addresses.

You can also create a text file with the shut down commands for all the company workstations. Change the extension to .bat and schedule the program to run every evening at 2am, to ensure all PCs are regularly rebooted.

Editor's Note: User feedback to this tip has indicated that you must have the resource kit installed in order for this to work.

This was first published in November 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.