Posted On August 30, 2019

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

kimconnect 0 comments
blog.KimConnect.com >> Codes >> 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 *

Related Post

match

- The match() method retrieves the matches when matching a string against a regular expression.…

PowerShell: Move Files Into Zip

# moveFilesToZip.ps1 # Version 0.02 # This little function is to automate the process of…

Linux: Enable PowerShell Remoting WinRM Client on Ubuntu 20.04

This note is a work-in-progress as the NTLM authentication support module by Microsoft for Ubuntu…