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 there a way to restart a virtual machine running under Windows 7 Virtual PC from a command line? Basically, i want to do a soft restart, same thing the clicking on Ctrl+Alt+Del button achieves.

share|improve this question

2 Answers 2

up vote 6 down vote accepted

You need the shutdown command, something like

shutdown /r /m \\ComputerName

Type

shutdown /?

at the command prompt for a full list of options.

(It may be that you are working in the virtual machine and want to do CTRL-Alt-DEL, but the host is capturing the keypresses, and you are trying to get round this behaviour in a fancy way. You can use the Right ALT key with DEL.)

share|improve this answer
    
The shutdown command is, of course, not specific to VMs. –  Richard May 24 '10 at 7:56

shutdown /i

Will give you a GUI where you can add multiple remote machines to reboot.

For syntax and information see the Microsoft article Restart or Shut Down a Remote Computer and Document the Reason

  1. Type shutdown /i to display the Remote Shutdown dialog box (Shutdown.exe).
  2. Under Computers, click Add to enter computer names, or click Browse to open the Find Computers dialog box.
  3. Under What do you want these computers to do, click Restart or Shut down.
share|improve this answer

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.