Command line to restart virtual machine (Virtual PC)
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.
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.)
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
- Type shutdown /i to display the Remote Shutdown dialog box (Shutdown.exe).
- Under Computers, click Add to enter computer names, or click Browse to open the Find Computers dialog box.
- Under What do you want these computers to do, click Restart or Shut down.