PowerCLI: Resolving improper memory limits on your virtual machines

From VI-Toolkit
Jump to navigation Jump to search

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

Location

http://www.vmguru.com/index.php/articles-mainmenu-62/scripting/98-resolving-improper-memory-limits-on-your-virtual-machines