Virtually Everything about Powershell and PowerCLI

Remove vmware memory limits with Powershell

Using Memory Limits in vmwarevSphere can cause severe performance issues. The guest operating system assumes it can use all of the allocated memory, but vSphere will make sure the vm cannot use more than the memory limit. It does this by inflating a memory balloon using the balloon driver included with the vmware tools. The performance chart in the vSphere Client will show the virtual machine is ballooning. I never recommend using memory limits in vmware.
The following script will remove all memory limits in your vSphere infrastructure, preventing the problems described above.

Great stuff and your update yesterday for PowerCLI 5.0 was quite timely! Just found a bunch of VMs in our environment that were erroneously configured with a memory limit. Some were in the tragic state of ballooning or even swapping needlessly since they were artificially starved. What could have quite possibly have taken hours to fix turned into a few minutes with this script. Thank you for sharing!