Sunday, 9 March 2014

Start Virtual Machine when you start Hyper-V

I have a Virtual Machine that I want to start automatically when I start the Hyper-V server in my test environment. How would I do/undo this with PowerShell.

Start a VM called vm01 automatically

SET-VM –name vm01 –AutomaticStartAction Start

Prevent a VM called vm01 from starting automatically

SET-VM –name Vm01 –AutomaticStartAction Nothing

Wild cards a permissible – every VM that start with b

SET-VM –name b* –AutomaticStartAction Start

No comments:

Post a Comment