Find Physical Host Name of a Virtual Machine


If the virtual machine is hosted on a Windows Server with Hyper-V and has Integration Service installed, you can look at following virtual machine’s registry to identify the physical host machine.

HKLMSoftwareMicrosoftVirtual MachineGuestParametersPhysicalHostName


If you use PowerShell, here is a one line script that can indicate host name.

(Get-Item "HKLM:SOFTWAREMicrosoftVirtual MachineGuestParameters").GetValue("PhysicalHostNameFullyQualified")