Sunday, October 9, 2022

Lookup Physical Host Name from inside a HyperV VM

From cmd prompt

reg query "HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters" /v PhysicalHostname | find /I "PhysicalHostName"

From Powershell

Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters"  | Select-Object HostName

No comments:

Post a Comment

Video editing Software

IVS Edit has a free and pro version. The Free version is feature-rich and probably enough for most people.