PowerTip: Easily Find the Memory Configuration of Your Virtual Machines

PowerTip: Easily Find the Memory Configuration of Your Virtual Machines

  • Comments 3
  • Likes

Summary: Use Windows PowerShell 3.0 on Windows Server 2012 to easily find the memory configuration of your Hyper-V virtual machines.

Hey, Scripting Guy! Question How can I easily find the memory configuration on my Windows Server 2012 Hyper-V virtual machines by using Windows PowerShell?

Hey, Scripting Guy! Answer Use the Get-VM cmdlet and pipe the results to the Get-VMMemory function, as shown here.

Get-VM | Get-VMMemory

 

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Interesting tip, I've always just opened the Hyper-V manager and checked that way, but I suppose this would be useful for people with a terminal server!

  • @Danny thanks, I am glad you found the tip useful. It is also useful if you have several virtual machines on several Hyper-V servers ... then it really opens up the power.

  • @Danny @iammred For example, if I have two hyperv servers one named hyperv2 and another named hyperv3, then I can quickly find the vmmemory as seen here:

    get-vm -ComputerName hyperv2,hyperv3 | get-vmmemory