Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

Find VM Name from OS Hostnsme

$
0
0

Assuming that I know only the operating system host name, and I know that the virtual machine name is completely different from the OS host name, how can I query vcenter and find the virtual machine name that is associated with this operating system host name?

 

Thanks!

 

i.e

 

$hostname = ”windowshostname”

 

get-vm | where-object{$_.something? -eq $hostname}


Viewing all articles
Browse latest Browse all 49146

Trending Articles