Hello,
Using a powershell script I would like to change the "Virutal Machine Startup/Shutdown" settings on many ESX Hosts at one time.
I need to change the following:
Check or enable "Allow virutal machines to start and stop automatically with the system"
And change the Shutdown Action to Suspend.
Do you have the know how?
Tim
And if you want to do this for all your ESX servers, you could do
Get-VMHost | Get-VMHostStartPolicy | Set-VMHostStartPolicy -Enabled:$true --StopAction Suspend
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That can be done with the Set-VMHostStartPolicy cmdlet.
$policy = Get-VMHostStartPolicy -VMHost <ESX-name> Set-VMHostStartPolicy -VMHostStartPolicy $policy -Enabled:$true -StopAction Suspend
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
And if you want to do this for all your ESX servers, you could do
Get-VMHost | Get-VMHostStartPolicy | Set-VMHostStartPolicy -Enabled:$true --StopAction Suspend
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks much! That is a simple fix.... Thanks again.