Created
August 14, 2025 15:44
-
-
Save ScottMonolith/f0078c280ccf4058344a4e3ededb5ce6 to your computer and use it in GitHub Desktop.
Windows Pending Reboot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install | |
| Install-Module -Name PendingReboot | |
| # Run | |
| Test-PendingReboot -Detailed | |
| Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager' -Name 'PendingFileRenameOperations' | |
| Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update' Name 'RebootRequired' | |
| Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing' Name 'RebootPending' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment