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.

Is it possible to restart a computer over the internet via command prompt?

I know you can restart/shutdown in network using:

shutdown /m \\mycomputer /r /t 0 

I have been able to use this in conjunction with VPN to restart my computer. But I was wondering if there was a way to use the IP address and perhaps an open port to send the command to the remote computer. Is this possible?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

The easiest way to do this is enable the telnet server on your target machine. Windows server 2000 and newer has it, as well as Windows 7 and Vista.

Then forward port 23 (telnet) from your router to your target machine's internal IP.

You would then be able to telnet to the public IP of your router and get a command prompt on your internal machine.

share|improve this answer
    
Given that telnet is one of the frequently-scanned ports, you should consider forwarding a different, high number port such as 6901 to port 23 on your network. When you telnet in, you just need to specify the port and you're away, but it will make things much harder for Internet Bad Guys. –  mauvedeity Nov 27 '11 at 19:55
    
or better yet, use ssh, winrm , rsh or the remote access capabilities of powershell –  Journeyman Geek Nov 27 '11 at 23:30
add comment

Shutter can do this. Shutter - Den4B Products

You need to have an open port on your firewall to allow communications with the Shutter service. It's password protected so you don't get just anyone scanning and rebooting your computer on a hoot.

Access through your web browser, choose the operation and execute.

share|improve this answer
add comment

Technically - yes, you can do this. The UNC syntax accepts IPv4 addresses, and you only have to open port 445 for this to work.

Practically? I'm not even sure which is worse, exposing the ever-secure SMB service to the entire Internet versus enabling plain-text Telnet as others suggest – both sound equally bad to me. (AFAIK, Windows Telnet cannot use separate credentials for NTLM, which makes it less secure than SMB on public machines. On the other hand, it's got less security holes so far than Windows SMB.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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