VMware vSphere

 View Only
Expand all | Collapse all

Get VM ID with vSphere Power CLI

  • 1.  Get VM ID with vSphere Power CLI

    Posted Jun 13, 2012 02:58 PM

    Hey Guys,

    I used to know how to do this with the get-vm command, but now I can't get the syntax right, so I'm sure I'm just missing something very simple.  I just need the command to get all the vm IDs.  Thanks!



  • 2.  RE: Get VM ID with vSphere Power CLI
    Best Answer

    Posted Jun 13, 2012 03:04 PM

    Is this what you're looking for: Get-VM|Select Name,Id ?



  • 3.  RE: Get VM ID with vSphere Power CLI

    Posted Jun 13, 2012 03:08 PM

    That's it!  Thanks.