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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.