Q. How can I quickly get the status of all the virtual machines (VMs) System Center Virtual Machine Manager (VMM) is managing from PowerShell?

A. VMM contains a number of PowerShell cmdlets, including the Get-VM cmdlet, which gathers a huge amount of information about each VM, including its status. You can use the format-table cmdlet to show only specific information, such as VMs' names and status, as shown below.

The command

get-vm | format-table ComputerNameString, Status -auto

gives me

ComputerNameString Status
------------------ ------
SAVDALDC11.savilltech.net Running
savdalclient.savilltech.net Running
savdaldc10.savilltech.net Running
savdalwss10.savilltech.net Running
savdalscvmm.savilltech.net Running
savdalts01.savilltech.net Running
SAVDALRODC01.savilltech.net Running
savdalex01.savilltech.net Running

Related Reading:



Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.

Please or Register to post comments.

Upcoming Training

Mastering System Center 2012

During over 6 hours of training you can join John Savill from your computer as he will walk you through the key components and capabilities of System Center 2012, what’s involved in using the components, and the benefit they can bring to your environment.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.