PowerCLI: Resolving improper memory limits on your virtual machines
QueryMem.ps1
author: Scott Herold
Description
An interactive scripts that allows you to query VM's for possible memory limit configuration errors and helps you to resolve these problems.
Usage:
Query Resource Allocations:
QueryMem.ps1 -VMHost server1.domain.com -User administrator -Password passw0rd -Action query
Idenfity Potential Misconfigurations:
QueryMem.ps1 -VMHost server1.domain.com -User administrator -Password passw0rd -Action id
Modify Misconfigured VMs:
QueryMem.ps1 -VMHost server1.domain.com -User administrator -Password passw0rd -Action resolve ` -vm vm1, vm2, vm3