PowerTip: Easily Find the Memory Configuration of Your Virtual Machines


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

 

Comments (3)

  1. mredwilson says:

    @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.

  2. mredwilson says:

    @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

  3. danny says:

    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!

Skip to main content