I am working on a project where several software and drivers are installed on a windows 7 PC. This shall work without user inputs.
Now there is the question: How can
The "PendingReboot" module incorporates all the mentioned tests (+ CCM WMI probe) into a single convenient cmdlet to reliably detect pending reboot:
# Install Install-Module -Name PendingReboot # Run Test-PendingReboot -Detailed