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.
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
-
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. -
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.
-
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.
-
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.logfor the time of the window.
Commands that help
Get-CimInstance -Namespace root\ccm\ClientSDK -ClassName CCM_ServiceWindow |
Select-Object Type, StartTime, EndTime, Duration |
Sort-Object StartTime
Turn any hex or decimal error code into its meaning, or search every code on this site.