When SCCM deploys software updates or applications that require a reboot, it can force a restart at inconvenient times. This guide covers how to delay, cancel or suppress the SCCM client reboot using PowerShell in 2026.
Check if a Reboot is Pending
$reboot = Invoke-WmiMethod -Namespace rootccmClientSDK -Class CCM_ClientUtilities -Name DetermineIfRebootPending
if($reboot.RebootPending) { Write-Host "Reboot PENDING" -ForegroundColor Red } else { Write-Host "No reboot pending" -ForegroundColor Green }Cancel a Pending SCCM Reboot
# Cancel pending SCCM reboot - run as Administrator
Remove-Item -Path "HKLM:SOFTWAREMicrosoftSMSMobile ClientReboot ManagementRebootData" -ErrorAction SilentlyContinue
Remove-Item -Path "HKLM:SOFTWAREMicrosoftSMSMobile ClientUpdates ManagementHandlerUpdates Reboot Status*" -ErrorAction SilentlyContinue
Remove-ItemProperty -Name * -Path "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired" -ErrorAction SilentlyContinue
Restart-Service -Name CcmExec -Force
Write-Host "SCCM reboot flags cleared"Clear Reboot on Multiple Machines Remotely
$computers = @("PC001","PC002","PC003")
foreach($computer in $computers) {
Invoke-Command -ComputerName $computer -ScriptBlock {
Remove-Item -Path "HKLM:SOFTWAREMicrosoftSMSMobile ClientReboot ManagementRebootData" -ErrorAction SilentlyContinue
Remove-ItemProperty -Name * -Path "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired" -ErrorAction SilentlyContinue
Restart-Service -Name CcmExec -Force -ErrorAction SilentlyContinue
Write-Host "Cleared on $env:COMPUTERNAME"
}
}Suppress Reboots in SCCM Deployment Settings
The correct long-term solution is to configure reboot behaviour in the deployment itself. In the SCCM console go to your deployment properties then the User Experience tab then Device restart behaviour and select Never restart a server or configure a suitable deadline behaviour for workstations.
Configure Maintenance Windows
Configure Maintenance Windows on device collections to restrict when SCCM can perform reboots. Go to your device collection then the Maintenance Windows tab and add a window for your preferred reboot time such as weeknights between 11pm and 5am. SCCM will hold reboots until the next available window.
Frequently Asked Questions
Will clearing SCCM reboot flags cause problems?
Clearing the flags delays the reboot but does not undo the software installation. Clear them only when you have a plan to reboot during a suitable maintenance window.
The SCCM reboot keeps coming back after I clear the flags — why?
SCCM re-evaluates deployments regularly and will re-set the reboot pending flag if the deployment still requires one. Configure the deployment to suppress reboots or use a Maintenance Window to permanently resolve this.
How do I stop SCCM rebooting servers automatically?
In your deployment properties go to the User Experience tab and set Device restart behaviour to Never restart a server. This prevents automatic reboots on servers.
Can I schedule SCCM reboots during maintenance windows?
Yes — configure Maintenance Windows on your device collections. SCCM will hold reboots until the next available window, allowing you to control exactly when machines restart.
About The Author
Discover more from TechyGeeksHome
Subscribe to get the latest posts sent to your email.
