Jump to content

Remote shutdown/restart through command prompt


EGOvoruhk

Recommended Posts

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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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