Thursday, October 12, 2017

Set MEM Reservations

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)
}

No comments:

Post a Comment

Vmware NSX SSL creation 

Using OpenSSL for NSX Manager SSL import: Creates CSR and 4096 bit KEY Creating NSX 6.4.2 SSL    openssl req -out nsxcert.csr -newkey rsa:40...