1-Liner to Find Host of Virtual Machine in Hyper-V

PS C:\Users\testAdmin> (get-item "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters").GetValue("HostName")
hyperv01.intranet.kimconnect.com

Leave a Reply

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