Get the name of your Hyper-V host from your VM

Hello,

You can know the name of your Hyper-V host from your VM from the registry :

The information is located under HKLM:SoftWareMicrosoftVirtual MachineGuestParameters :

HyperV-Host-Name-From-VM

Get-ItemProperty -Path 'HKLM:SOFTWAREMicrosoftVirtual MachineGuestParameters' -Name Hostname

You may noticed that this is an Azure Hyper-V host name, pretty meaningful !

Leave a Reply