LucD
Leadership
Leadership

Provided you have the VMware Tools installed on the VM, you can do

$hostname = ”windowshostname”

Get-VM | where-object {$_.Guest.HostName -eq $hostname}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos