Software updates

0x87D00666: Software updates cannot be installed outside service window

The update deadline passed, but the client is outside its maintenance window. It waits for the next window before it installs.

Hex code0x87D00666
Decimal-2016410010
Logs to readServiceWindowManager.log, UpdatesDeployment.log, UpdatesHandler.log

What 0x87D00666 means

Configuration Manager shows "Software updates cannot be installed outside service window". The decimal form is -2016410010. You see it in the deployment status in the console. A service window is the client name for a maintenance window.

The client is ready to install the updates, but a maintenance window applies to it and no window is open now. This is a waiting state more than a fault. The client installs the updates when the next window opens.

Common causes

  • The computer is in a collection with a maintenance window, and the window is closed at the moment.
  • The computer is in several collections with windows, and you did not expect all of them to apply.
  • The window is shorter than the maximum run time of the updates, so the client does not start.
  • The window type is for task sequences only, so it does not count for software updates.

How to fix 0x87D00666

  1. See which windows the client has

    Run the first command below on the client. It lists every maintenance window with its start time and end time. You can also open C:\Windows\CCM\Logs\ServiceWindowManager.log. It shows why the client decided it cannot run the job now.

  2. Check the window on the collections

    In the console, find every collection that holds the device. Open the collection properties and go to the Maintenance Windows tab. Check the schedule and the Apply this schedule to setting. Make the window long enough for the updates and the restart.

  3. Allow the install outside the window

    If these updates must not wait, open the deployment properties. Go to the User Experience tab. Under the deadline behavior, select Software Update Installation. Select System restart too if a restart outside the window is fine. The client then installs at the deadline.

  4. Wait, then confirm

    If the window is correct, do nothing. After the next window, check the deployment status again. If the code is still there, read UpdatesDeployment.log for the time of the window.

Commands that help

List the maintenance windows of the client · PowerShell
Get-CimInstance -Namespace root\ccm\ClientSDK -ClassName CCM_ServiceWindow |
    Select-Object Type, StartTime, EndTime, Duration |
    Sort-Object StartTime
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.