VMware Horizon Community
maxel
Enthusiast
Enthusiast

Get MAC Address of an virtual desktop with View PowerCLI?

Hi!

Is it possible to get the mac address of an virtual desktop with View PowerCLI?

get-desktopvm -pool_id <Pool-ID> unfortunately returns only IP Address

Thx for help

Axel M.

Reply
0 Kudos
3 Replies
techguy129
Expert
Expert

You will need to connect to vcenter and use the get-vm command to get that information.

Gidrakos
Hot Shot
Hot Shot

You want to use the Get-NetworkAdapter command in conjunction with the Get-VM command as piped input.

Get-VM [vmname] | Get-NetworkAdapter | Select-Object -expandProperty MacAddress

That will return only the MAC Address of any VM name that you enter, or multiple if you specify a wildcard.

Reply
0 Kudos
maxel
Enthusiast
Enthusiast

Thx, but i think this is vsphere Power CLI, not Horizon View Power CLI, right?

Reply
0 Kudos