|
| 1 | +--- |
| 2 | +title: Troubleshoot Shutdown in Progress Windows Error 0x8007045b |
| 3 | +description: Learn how to resolve Windows update error 0x8007045b, indicating that access to an unmanaged server isn't allowed. |
| 4 | +ms.date: 08/01/2025 |
| 5 | +manager: dcscontentpm |
| 6 | +audience: itpro |
| 7 | +ms.topic: troubleshooting |
| 8 | +ms.reviewer: scotro,mwesley |
| 9 | +ms.custom: |
| 10 | +- sap:windows servicing,updates and features on demand\windows update fails - installation stops with error |
| 11 | +- pcy:WinComm Devices Deploy |
| 12 | +--- |
| 13 | +# Troubleshoot Shutdown in Progress Windows Error 0x8007045b |
| 14 | + |
| 15 | +The Windows Update error 0x8007045b tpically occurs because of missing or corrupt files necessary for the update or incomplete previous updates. Understanding the root causes and following the appropriate troubleshooting steps can help resolve this issue effectively. |
| 16 | + |
| 17 | +## Environment |
| 18 | + |
| 19 | +Windows |
| 20 | + |
| 21 | +## Summary |
| 22 | + |
| 23 | +When installing a Windows update or during an OS upgrade, if the error code 0x8007045b (ERROR_SHUTDOWN_IN_PROGRESS) is logged in %windir%\logs\CBS\CBS.log or %windir%\Windows~BT\sources\panther\setupact.log, it indicates that the installer or a component has detected an ongoing shutdown process. This behavior is by design and not an error but an exception. The actual issue may differ, commonly related to a CBS Hang or interference from a third-party component. |
| 24 | + |
| 25 | +## Cause |
| 26 | + |
| 27 | +The error code 0x8007045b is an exception that signals an ongoing shutdown process. The root cause of the installation failure may vary, often involving a CBS Hang or a third-party component. |
| 28 | + |
| 29 | +picture |
| 30 | + |
| 31 | +## Symptom 1 |
| 32 | + |
| 33 | +CBS HangDetect. The installation may encounter a 15-minute timeout, leading the Trusted Installer to initiate a reboot due to CBS hang detection. Upon restart, the installation is typically rolled back. |
| 34 | + |
| 35 | +%windir%\logs\CBS\CBS.log: |
| 36 | + |
| 37 | +```output |
| 38 | +Info CBS Setting HangDetect value to 3 |
| 39 | +Info CBS Startup: will attempt a restart to recover. |
| 40 | +Info CBS Failed restart attempt. [HRESULT = 0x8007045b - ] |
| 41 | +Info CBS Startup: restart attempt failed, allowing the user to logon. |
| 42 | +Info CBS Startup: A system shutdown was initiated while waiting for startup to complete |
| 43 | +``` |
| 44 | + |
| 45 | +## Error 0x8007045b |
| 46 | + |
| 47 | +ERROR_SHUTDOWN_IN_PROGRESS winerror.h |
| 48 | +A system shutdown is in progress. |
| 49 | + |
| 50 | +## Symptom 2 |
| 51 | + |
| 52 | +Third-party Service Interference: A third-party service may trigger reboots during the Windows OS upgrade setup process. |
| 53 | + |
| 54 | +%windir%\Windows~BT\sources\panther\setupact.log: |
| 55 | + |
| 56 | +```output |
| 57 | +Info MIG Instantiating an ICbsSession9 interface |
| 58 | +Error MIG Failed to create CBS session 9. hr = 0x8007045B[gle=0x000003f0] |
| 59 | +%systemdrive%\$WINDOWS.~BT\Sources\Rollback\evtlogs: |
| 60 | +Information MM/dd /YYYY HH:mm:ss PM User32 1074 None |
| 61 | +The process c:\program files (x86)\netinst\mgmtagnt.exe (MACHINENAME) has initiated the restart of computer {MACHINENAME} on behalf of user NT AUTHORITY\SYSTEM for the following reason: Other (Unplanned) |
| 62 | +Reason Code: 0x0 Shutdown Type: restart Comment: |
| 63 | +Information MM/dd /YYYY HH:mm:ss PM EventLog 6006 None |
| 64 | +The Event log service was stopped. |
| 65 | +``` |
| 66 | + |
| 67 | +## Mitigation |
| 68 | + |
| 69 | +The error code 0x8007045b can be disregarded, and the focus should be on identifying the original error that precedes this code. |
| 70 | + |
| 71 | +### Mitigation 1: Applies to Symptom 1 |
| 72 | + |
| 73 | +The primary issue is the CBS Hang detect, represented by error code 0x800f0920. This can be addressed by increasing the TrustedInstaller timeout. For detailed steps, please refer to the [CBS HangDetect](https://supportability.visualstudio.com/AzureIaaSVM/_wiki/wikis/AzureIaaSVM/1511786/Update-Installation-Error-0x800f0920-CBS_E_HANG_DETECTED?anchor=mitigation-1) |
| 74 | + |
| 75 | +### Mitigation 2: Applies to Symptom 2 |
| 76 | + |
| 77 | +Review the setupact logs to identify the third-party service causing the reboots. Prevent further system reboots by disabling or stopping the identified service. |
0 commit comments