Does anyone know how to enable the setting in the screen capture? I have gotten as far as creating this script but can not locate the paramter to toggle the setting.
Get-VM -Name VMName | Get-VMResourceConfiguration | Set-VMResourceConfiguration
http://www.vmware.com/support/developer/PowerCLI/PowerCLI50/html/Set-VMResourceConfiguration.html
To enable the "Reserve all guest memory (All locked)" setting you can use:
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec $spec.memoryReservationLockedToMax = $true (Get-VM $VM).ExtensionData.ReconfigVM_Task($spec)
To enable the "Reserve all guest memory (All locked)" setting you can use:
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec $spec.memoryReservationLockedToMax = $true (Get-VM $VM).ExtensionData.ReconfigVM_Task($spec)
Thank you that did it. I was looking at the wrong command.
Thanks for the script. Worked like a charm.