PowerShell: Change Automatic Start Action on Hyper-V VM`s

To easy change Automatic Start Action on all runnings VM´s on your Hyper-V server run this command:

Get-VM | Where { $_.State –eq ‘Running’ } | Set-VM -AutomaticStartAction StartIfRunning

To validate it run this command:

Get-VM | Where { $_.State –eq ‘Running’ } | ft Name, AutomaticStartAction -AutoSize
VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)