moin,
diese Abfrage ergibt bei mir true obwohl es den Wert nicht gibt.
If ((Test-RegistryValue -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" -Value "DVDRebootSignal") -eq $true) {"DVDRebootSignal" $PendingReboot = $true }
Check for pending reboot with PowerShell (icewolf.ch)
Chris