Hyper-V: Node Registry-Informations (InGuest): Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „Under the regisry path '''HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\''' are very useful informations about the Hyper-V Node. == P…“)
 
 
Zeile 4: Zeile 4:
 
<source lang="powershell">Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\"</source>
 
<source lang="powershell">Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\"</source>
  
 
+
== PowerShell: Get VM ID ==
 +
<source lang="powershell">Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\" -Name "VirtualMachineId"</source>
  
  

Aktuelle Version vom 19. November 2021, 14:09 Uhr

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"