I am connecting to my workspace 's PC (window xp) in my home using the company VPN. I can ping it successfully after connecting to the VPN .Is it possible to restart this PC remotely by using some scripts /tools ?


2 Answers 2


you can use shutdown.exe. just type shutdown /? at a command prompt and it will contain all the necessary switches.

Something like this should work:

Shutdown.exe /r /f /m \\computername
  • 5
    … and don't forget that the help for the shutdown command is not /h. That's hibernate. Someone does that at least once a quarter ;)
    – MikeyB
    Feb 3, 2012 at 21:26
  • HAH... i forgot that one. Feb 3, 2012 at 21:31
  • Really? That is such crappy UI! Sysadmins need some UX love too... Feb 3, 2012 at 22:45
  • 1
    @MartijnHeemels Use shutdown /i for an interactive GUI.
    – vcsjones
    Feb 5, 2012 at 15:40
  • @MartijnHeemels I don't care that much about UI... just a shutdown command. It's quick, it's easy and more importantly... it works. Feb 7, 2012 at 14:33

Read up on the command sc.exe. On my Win7 PC it is at C:\Windows\system32\sc.exe.

  • How exactly is sc going to help the OP?
    – MDMarra
    Feb 3, 2012 at 21:04
  • Good point, I was too quick to answer. I used to use sc to restart services (VNC), not the whole PC. Feb 3, 2012 at 21:09
  • Who said anything about the OP using VNC?
    – MDMarra
    Feb 3, 2012 at 21:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .