logo logo

Set a Virtual Machine’s automatic stop action from PowerShell

If you use a virtual machine on Hyper-V Core to manage the Hyper-V operating system, you cannot make changes to the virtual machine that require powering it off because you can’t access the Server Manager

  1. Shut down management VM.
  2. Open Powershell on Hyper-V
  3. Run get-vm and double check that your management VM is not running.
  4. Type get-vm | set-vm -AutomaticStopAction ShutDown, NOTE: this will change all vm’s that are not currently running to this setting.
  5. Type start-vm nameofwin8vm
  6. Ensure within the Hyper-V management GUI that the setting has changed – go to Hyper-V Manager, Virtual Machines, Settings, Automatic Stop Action