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.
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.