Page 1 of 1

Find the Hostname of a Hyper-V VM

Posted: 01 Apr 2023, 11:23
by daniele
METHOD 1 - Via PowerShell

Code: Select all

Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters"  | Select-Object HostName
METHOD 2 -Manual search into the registry

Launche REGEDIT and search the following key:

Code: Select all

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters