June 28th, 2013

PowerTip: Use PowerShell to Find Virtual Machines Using Dynamic Memory

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to find which virtual machines on Hyper-V is using dynamic memory.

Hey, Scripting Guy! Question How can I tell which of my virtual machines are running with dynamic memory ?

Hey, Scripting Guy! Answer Use the Get-VMMemory cmdlet:

GET-VMMemory -vmname “My Virtual Machine”

(Check the results for “DynamicMemoryEnabled” as “True.”)

To check all virtual machines, the dynamic memory status, and the allocated RAM on the Hyper-V host, use:

GET-VM | GET-VMmemory

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.