Subscribe to Windows IT Pro
January 18, 2010 12:00 AM

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

Windows IT Pro
InstantDoc ID #103446
Rating: (0)

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.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.