Powershell – How to enable the “Get-VM” Cmdlet

cmdletpowershell

Is Get-VM native PowerShell cmdlet? I used Get-Command in PS, but could not able to find the cmdlet Get-VM.

Is this cmdlet specific to VMware? Is there some PowerShell command I am missing to get these hidden cmdlets?

Best Answer

  1. No. On Windows Server 2008 R2, you can use http://pshyperv.codeplex.com to manage Hyper-V using PowerShell cmdlets. On Windows Server 2012, when you enable Hyper-V role or on Windows 8, when you install Remote Server Administration Tools (RSAT for Windows Server 2012), you get Hyper-V PowerShell cmdlets from Microsoft. Get-VM is a part of that.

  2. Get-VM comes as a part of PowerCLI install for ESX management.