Reset the vSphere Memory Limit using PowerCLI
If you’ve ever migrated clusters or joined VM’s from a different cluster, I’m sure you’ve run into the bug where memory limits are set on the VM’s automatically. To remove this, simply use the powerful oneliner below!
Get-VM | Get-VMResourceConfiguration | where {$_.MemLimitMB -ne '-1'} | Set-VMResourceConfiguration -MemLimitMB $null
Eric Sarakaitis
Virtualization Engineer at CBTS
I'm Eric, I love to cook, sing, garden and enjoy cold beverages!
Latest posts by Eric Sarakaitis (see all)
Tags: PowerCLI, PowerShell, vmware
