News

Thursday, May 24, 2012

Get UUID of a virtual machine

This is helpful for importing a machine into Citrix.

GETUUID.ps1:


$vc = Read-Host "Please specify your VirtualCenter"

Connect-VIServer $vc

CLS

$VM = Read-Host "Please enter the name of the VM you want the UUID for"

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

Disconnect-VIServer $vc

No comments:

 
Free Hit Counter