PowerTip: Easily Find the Memory Configuration of Your Virtual Machines

PowerTip: Easily Find the Memory Configuration of Your Virtual Machines

Rate This
  • Comments 3

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

 

Leave a Comment
  • Please add 7 and 6 and type the answer here:
  • Post
  • 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

Page 1 of 1 (3 items)