Add-PsSnapin VMware.VimAutomation.Core
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.memoryReservationLockedToMax = $true
foreach ($vm in (Get-Cluster "VDI-Non-P-Desktops" | Get-VM))
{
$VM.ExtensionData.ReconfigVM_Task($spec)
}
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.memoryReservationLockedToMax = $true
foreach ($vm in (Get-Cluster "VDI-Non-P-Desktops" | Get-VM))
{
$VM.ExtensionData.ReconfigVM_Task($spec)
}
No comments:
Post a Comment