Get the name of a VM in Hyper-V from inside the VM

Something I discovered today in working on a project – it is possible to find out what the VM is named in Hyper-V from within the guest OS.  This is only possible if the IC’s are installed.  It is a registry key and can be queried in a script. Example: $Name = Get-ItemProperty -path "HKLM:\SOFTWARE\Microsoft\Virtual…

3