Jump to content

Remote shutdown/restart through command prompt


Recommended Posts

Posted

Is there a way to do it through command prompt?

Right now, I'm just using Remote Desktop, and doing a shutdown /r command there. It would be so much easier if I could do it through command prompt, that way I could set up some batch files for the PCs that I need to reboot often

I've been looking into the net command, and it looks like it might be possible

Thanks in advance guys


Posted

You can use shutdown command to shutdown a remote computer.

Normally what I do is "shutdown -f -m \\machine -t 00 -r"

-f = force switch, causes applications to close down without asking for confirmation (such as, there is unsaved data, do you want to save)

-m = specifies remote machine, ie: -m \\192.168.0.1

-t = specified, in seconds, how soon the command will be executed, 00 means it gets executed immediately

-r = restart command, you can also do -s to shutdown (just don't use -r and -s at the same time, of course). You cannot, however, do a remote logout using this command.

Hope this helps at all

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...