[Howto] [Networking] [Tips and Tricks] [Windows]
Windows tip: How to Restart Remote Computer
Don't want to miss a single bit? Subscribe to our RSS Feed!
When administrators perform remote program installation on computer outside of their physical reach, or simply, perform some testing, sometimes they need to restart the computer in order to complete the installation or finish the work. Sometimes that’s not possible because the user might be away at that moment, and so the restart is unavailable.
Because of all of this, there is a little script that enables the highly needed restart. It is important to note that this action will result in the loss of all unsaved data, and you should check that everything is really saved.
The syntax for the remote restart command looks like this:
"C:\Program Files\Resource Kit\shutdown.exe" \\comp1 /R T:05 "standard restart" /CIf you wish to restart a group of computers (in the case of preventive server maintenance e.g. hardware swapping) you can create a batch file that looks like this:
@echo offBefore running this script, it is necessary to create a text file in which to store the names of the computers. That file should look like this:
for /F "tokens=*" " %%F in (names_of_computers.txt) do "C:\Program Files\Resource Kit\shutdown.exe" "%%F" /R /T:10 "standard restart" /C
\\computer1Similar Articles:
\\computer2
\\computer3
How to Shutdown and Restart Windows with shutdown.exe command-line application
Did you enjoy this post? Why not leave a comment below and continue the conversation, or Subscribe to Feed and get articles like this delivered automatically to your Email or feed reader.
0 comments:
Post a Comment