Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ScottMonolith/f0078c280ccf4058344a4e3ededb5ce6 to your computer and use it in GitHub Desktop.

Select an option

Save ScottMonolith/f0078c280ccf4058344a4e3ededb5ce6 to your computer and use it in GitHub Desktop.
Windows Pending Reboot
# 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