Find the Hostname of a Hyper-V VM
Posted: 01 Apr 2023, 11:23
METHOD 1 - Via PowerShell
METHOD 2 -Manual search into the registry
Launche REGEDIT and search the following key:
Code: Select all
Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters" | Select-Object HostName
Launche REGEDIT and search the following key:
Code: Select all
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters