How to Find the Actual Host Name on Hyper-V machines

Hi Guys,

Sometimes it’s necessary to find out host machine information from a particular guest virtual machine.

In VmWare Machines it’s very easy to find the hostname, You need to just open the command prompt and type there “HOSTNAME”, it will give you Physical Host Name. But this command doesn’t works in Hyper-V machines. If you will fire that command in Hyper-V m/c then it will give you still virtual machine name insead of physical m/c name.

With Hyper-V Integration Services installed, the following registry key contains information about the Host server:

HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters

Some keys of interest are:

  • HostName
  • PhysicalHostName
  • PhysicalHostNameFullyQualified
  • VirtualMachineName
  • Plus a number of settings about the Host Server’s version

In this registry path you can find all information like physical host name and Virtual m/c name etc.

Hope you will find it as usefull stuff.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: