- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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