Get-VM is probably the single most heavily used PowerShell v3 command related to server virtualization. When used without any switches, the Get-VM cmdlet returns a list of all the VMs that are present on the host server. As you can see in the figure, this list also includes information about the VMs' state, their CPU and memory usage, uptime and status. You can also use this command to retrieve granular information about a specific VM through a series of command-line switches.
- Using Get-VM in PowerCLI
- What's new in PowerCLI and PowerShell snap-ins