How to check vm applied CPU or Memory limit

Check any vm applied CPU / Memory limit


  • powercli scripting
  • vma scripting


PowerCLI: More One-Liner Power


List vm with memory limit applied

Get-VM | Get-VMResourceConfiguration | Where-Object {$_.MemLimitMB -ne ‘-1‘}

Reset vm memory limit to unlimit

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



Leave a Reply

Your email address will not be published. Required fields are marked *