Windows – Command line to restart virtual machine (Virtual PC)

command linemicrosoft-virtual-pcwindows 7

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.

Best Answer

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.)