Comments on: Hyper-V and PowerShell: A Deep Dive into Get-VM https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/ Hyper-V guides, how-tos, tips, and expert advice for system admins and IT professionals Wed, 31 Mar 2021 06:27:54 +0000 hourly 1 By: Rahul https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-3170 Fri, 15 Feb 2019 13:28:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-3170 In reply to Eric Siron.

Can you suggest how to get the Hyper-V VM’s Ram usage?Iam searching it for a very long time and couldnt get it?

]]>
By: Wayne Morris https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-2050 Thu, 27 Apr 2017 12:23:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-2050 Is there a downloadable PDF with this information?

]]>
By: Eric Siron https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-857 Fri, 22 Jul 2016 17:52:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-857 In reply to Uday.

I might write an upcoming post on that. More than can be addressed in comments. But you probably want to get started with Get-VMMemory.

]]>
By: Uday https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-855 Fri, 22 Jul 2016 02:26:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-855 I want a query to get the static and dynamic memory details of the VM’s on the Host. Can you Help ?

]]>
By: Eric Siron https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-768 Wed, 11 May 2016 13:15:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-768 In reply to Rakesh.

Get-VM often returns cached WMI results, so it won’t necessarily keep up with any changes that are occurring. Your issue sounds different. Native Get-VM doesn’t return anything for disk sizes. Do you have something else that’s masking Get-VM, like SCVMM?

]]>
By: Rakesh https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-2049 Wed, 11 May 2016 04:29:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-2049 I am observing that Get-VM is not returning correct values for Disk and Memory.
Manually when I see the VM information, the Disk is a total of 60GB(30GB for C drive and 30GB for D drive) and Memory is 4GB. But Get-VM is returning Total Disk: 33GB, Memory: 2GB.
Do you know why this is happening? Am I missing something?

]]>
By: Rakesh https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-766 Wed, 11 May 2016 04:29:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-766 I am observing that Get-VM is not returning correct values for Disk and Memory.
Manually when I see the VM information, the Disk is a total of 60GB(30GB for C drive and 30GB for D drive) and Memory is 4GB. But Get-VM is returning Total Disk: 33GB, Memory: 2GB.
Do you know why this is happening? Am I missing something?

]]>
By: Eric Siron https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-509 Sat, 07 Nov 2015 23:58:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-509 In reply to Tuan.

These are not strongly typed collections. They’re just simple arrays.

]]>
By: Tuan https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-508 Fri, 06 Nov 2015 20:35:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-508 How do you know which Collection does the VM belongs to? or more specifically how to find out the CollectionName that the VM belongs to?

]]>
By: Eric Siron https://www.altaro.com/hyper-v/hyper-v-powershell-get-vm/#comment-2048 Mon, 27 Jul 2015 17:41:00 +0000 http://www.altaro.com/hyper-v/?p=6368#comment-2048 In reply to Adrian.

Hyper-V doesn’t know. You have to ask the guest directly. You might be able to get some insights from this script: https://www.altaro.com/hyper-v/free-tool-for-hyper-v-2012-synchronize-virtual-machine-names-and-computer-names/

]]>