Compartir a través de


How to determine virtual machine host name "virtual server"

Recently had a problem where the lab folks forget where my VM was installed to and I needed some RAM added to it.  I needed to find the physical host name of the machine the VM was running on.  Turns out that there is a handy dandy reg key one the VS devs pointed out to me:

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

Hope it helps someone, I spent quite some time trying to figure it out on my own.

 

spat

Comments

  • Anonymous
    January 16, 2010
    For some reason that key doesn't exist on any of our guests.

  • Anonymous
    January 20, 2010
    Really? Is it HyperV and have you installed the guest VM tools?

  • Anonymous
    September 02, 2010
    The comment has been removed

  • Anonymous
    January 04, 2012
    Thanks alot.. this was very useful... :)

  • Anonymous
    January 29, 2012
    Thanks. Very helpful.

  • Anonymous
    June 12, 2012
    thanks for the path

  • Anonymous
    March 15, 2014
    I Have different virtual machines (ex: servers.txt) available and i need to get host name of all.. using foreach or any other way ?

  • Anonymous
    November 19, 2014
    (get-item "HKLM:SOFTWAREMicrosoftVirtual MachineGuestParameters").GetValue("Host Name")

  • Anonymous
    December 22, 2014
    The comment has been removed

  • Anonymous
    February 09, 2015
    But it in my system it is showing empty, no option like Parameters inside a HKLMSoftwareMicrosoftVirtual MachineGuest, so what i have to do ?

  • Anonymous
    June 08, 2015
    Thanks. It helped me find my hyper-v host.