Pending Reboots in LANDesk, SCCM, etc.

email me

From time to time, you will notice that when you deploy a package from LANDesk or SCCM, it will fail. This failure may be due to a pending reboot.

The reboot status is located in the following reg keys

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\PendingFileRenameOperations

Screenshot

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LANDesk\ManagementSuite\WinClient\VulscanReboot

Screenshot

 

If you’re looking to start a LANDesk deployment, without rebooting, delete the contents in those keys.

 

Alternatively, you can set the agent from the LANDesk management suite to ignore pending reboots.

1 – Open the Agent’s Distribution and Patch settings.
2 – Navigate to Patch-only settings | Install/remove options.
3 – Click the checkbox that says Start repair even if Reboot is already pending.
4 – Click Save.

* If you have individual agent profiles set up, you may just be able to select a non-reboot profile for a specific computer. That is under Task, Properties, Agent settings.

 

Notes

Delete
Delete C:\Program Files (x86)\LANDesk\Shared Files\cbaroot\actions.ini
Delete everything from C:\ProgramData\LANDesk\Data
Delete everything from C:\ProgramData\LANDesk\Policies
Delete everything from C:\ProgramData\LANDesk\Log

Registry
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\
Search for “Pending” and delete or set to “2”

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\
If there, Delete “RebootRequired”

Search Registry for UpdateExeVolatile
Change value to “0”

Services
Stop and Start all the LANDesk services

 

All Pending Reboot Keys

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\UpdateExeVolatile

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations2

HKEY_LOCAL_MACHINE\SYSTEM\CurrentSet001\Control\Session Manager\

HKEY_LOCAL_MACHINE\SYSTEM\CurrentSet002\Control\Session Manager\

HKEY_LOCAL_MACHINE\SYSTEM\CurrentSet003\Control\Session Manager\

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\Pending\

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired\Mandatory

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\PostRebootReporting

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\DVDRebootSignal

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootInProgress

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager\CurrentRebootAttempts