Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Fetch a Hyper-V VM's Demand Memory value

$
0
0

Greetings everyone.  I'm trying to use powershell to query my Hyper-V cluster for it's nodes, and then for each node query for it's list of hosted VM's.  All that works fine, my issue is then probing each VM for it'sactual used memory.  We use Dynamic Memory on everything for various reasons and it all run successfully.  However I'm having a tough time figuring out what the Demand Memory consumption is.

Measure-VM - this cmdlet doesn't report anything but the StartUp, Min and Max memory settings configured in the VM settings.

and

Get-WmiObject -query "Select * from CIM_PhysicalMemory"  -ComputerName  vmmachinename

Only seems to reflect the startup memory.  I feel like I must be missing something trivial here, as this is such an important aspect of the VM.  Can someone enlighten me on this?



Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>