Determine HyperV Host from HyperV Guest

From a HyperV Windows Guest you can find out what HyperV Host the Guest VM is running on.  This post tells you how.

Option 1

Look at the following registry key, it will contain the Host Name of the HyperV Host.

HKLM\Software\Microsoft\Virtual Machine\Guest\Parameters\HostName

Option 2

Query the registry key using PowerShell.

(Get-Item "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters").GetValue("HostName")

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s