VMware Cloud Community
hemantkarole
Contributor
Contributor

how to get uuid details of VM

Hi team i need to fetch the Vm UUID details from vmware power shell

Tags (1)
5 Replies
Anjani_Kumar
Commander
Commander

Here  is a one liners for the same

Get-VM MyVM | %{(Get-View $_.Id).config.uuid}

Also some blog here.

http://stealthpuppy.com/retrieving-a-vms-uuid-from-vsphere/

vm uuid | VMware and Powershell

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
0 Kudos
hemantkarole
Contributor
Contributor

Thanks i need to fetch single Virtual machine uuid

0 Kudos
Anjani_Kumar
Commander
Commander

This one liner will work for fetching out the vm uuid.  place vm display name in place of "MyVM" .

Get-VM MyVM | %{(Get-View $_.Id).config.uuid}

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
hemantkarole
Contributor
Contributor

Thanks its worked

0 Kudos
Anjani_Kumar
Commander
Commander

Would be great if you mark this Answer 'correct' or 'helpful'  so other can be benefitted too.

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
0 Kudos