Powershell Registry Wert auslesen

image_pdfimage_print

Mit diesem Skript lesen wir die Werte aus der Registrierung aus, egal ob REG_DWORD, REG_SZ, REQ_QWORD, oder REG_Binary.

$RegPath="HKLM:\Software\Microsoft\Windows NT\CurrentVersion"
$reg=Get-ItemProperty $RegPath

write-Host
write-Host "Registered Owner:"$reg.RegisteredOwner
write-Host "Registered Organization:"$reg.RegisteredOrganization
write-Host "Registered Organization:"$reg.EditionID
write-Host "Registered Organization:"$reg.CurrentVersion
write-Host "Registered Organization:"$reg.ReleaseID
write-Host "Registered Organization:"$reg.CurrentBuild