IT Systems Engineering

List VMs on your SC VMM 2012

Wanna find out what VM is running on which server in your SCVMM cluster? This PowerShell script does it for you! (run it on the VMM server’s Virtual machine manager Command Shell)

Get-SCVirtualMachine | Select-Object -property HostName, Name, Description | Sort-Object -Property HostName | Export-Csv .\vm-list.csv

Here is another one which you can run to find which VMs are currently running. This is useful in case you want to shut all of them down using some script.

Get-SCVirtualMachine | where {$_.StatusString -eq “Running”} | Select Name | Sort-Object -Property Name | Export-Csv .\vm-list.csv

Leave a Reply

Your email address will not be published. Required fields are marked *

Prove that you are a human *