Hyper-V: Node Registry-Informations (InGuest)

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche

Under the regisry path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\ are very useful informations about the Hyper-V Node.

PowerShell: Get the Registry-Keys

Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\"

PowerShell: Get VM ID

Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\" -Name "VirtualMachineId"