Listing Memory Limits on VM’s using PowerCLI

A quick small post to list the memory limits on the VM and set it back to unlimited using a PowerCLI

To list the VM’s which have memory limit configured

Get-VM | Get-VMResourceConfiguration | where {$_.MemLimitMB -ne ‘-1’}  | Select VM,MemLimitMB

And to set it to unlimited

Get-VM | Get-VMResourceConfiguration | where {$_.MemLimitMB -ne ‘-1’}  | Set-VMResourceConfiguration -MemLimitMB $null

For CPU the attributes to be changed to CpuLimitMhz

Enjoy 🙂

Share

You must be logged in to post a comment.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com