[Bug] - CBS Pending reboot check
[Bug] - Pending reboot due to CBS
The code to check for a reboot does not appear to correctly test if there is a pending reboot related to Component Based Servicing.
On the servers I have, the following line of code from the Test-PendingReboot function does not return a value.
Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending"
Testing the same registry path with the "Get-Item" cmdlet returns a value when there is a pending reboot related to CBS.
Lewis Sheridan commented
Agree, we need to be able to reliably and consistently ascertain whether servers are pending reboot.