9.5.2 problem with detecting restart?

in case it’s helpful, here’s a good powershell script that will tell you the source of the pending restart.

https://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542