Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

I would like to be able to shutdown or restart a computer on a remote network. If it were on my local area network, I would use the shutdown -i command. How can I do this remotely? I cannot use Remote Desktop Connection. The network has a static IP address.

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, ϺОŞΣŞ, Kevin Panko, Excellll, Heptite Feb 1 at 2:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3  
Probably because you didn't provide any specifics. We can assume the target machine is a Windows host but it would be nice to have the details. Target machine? Source machine? What type of connection do you have to the target machine? Do you have Administrator or equivalent credentials for the target machine? –  joeqwerty Jan 30 at 20:41
1  
If you could easily shutdown a computer from outside your network, that would wreak havoc for anyone on the Internet. ;) Firewalls and network security in general, are meant to stop this exact type of thing. You'll need to make a plan while you have access to the LAN, and probably install something within the LAN to communicate (securely) with from the outside, and use it to launch commands. What this can/should be for you is impossible to answer, since as @joeqwerty points out in his comment, you haven't given us enough info. –  Ƭᴇcʜιᴇ007 Jan 30 at 20:46

1 Answer 1

To shutdown remote machine

shutdown -s -f -m \\remotecomputername

To restart remote machine

shutdown -r -f -m \\remotecomputername

If you make this mistake you have 30 seconds to cancel the Windows shutdown with the -a switch.

-a Is for abort. This it only works during the time-out period

shutdown -a
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.