Windows pending restart is unfortunately not a singular registration, but is in three differen places in the Windows Registry:
- HKLM: SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
- HKLM: System\CurrentControlSet\Control\Session Manager, PendingFileRenameOperations
- HKLM: SOFTWARE\CapaSystems\RestartStatus, Reboot