Get memory configuration of all vm’s on hyper-v server and output to text file

2013/01/28 | By | Reply More

Two line powershell script that gets memory configuration of all vm’s and outputs to text file.  Change path and name of vmmemory.txt to suit your needs.

Works on Server 2012 with powershell 3

[sourcecode language=”powershell” padlinenumbers=”true”]
Get-VM | Get-VMMemory | out-file -filepath C:\VMMemory.txt
C:\VMMemory.txt

[/sourcecode]

Tags:

Category: Uncategorized

Leave a Reply

You must be logged in to post a comment.

YouTube Subscribe

Archives

Loading