大网数据广告活动
备份与恢复

System Restore fails with error 0x8007045b

· 52CE 我爱测

Describes an issue that occurs when you try to restore a system back to a restore point after you accept enforced security.

This article provides a workaround for an issue where System Restore may fail with error code 0x8007045b.

Applies to:   Windows 10 - all editions
Original KB number:   3074925

Symptoms

Consider the following scenario:

  • You are using the Mail application in Windows 8.1 or Windows 8.
  • You want to use the Mail application to connect to a Microsoft Exchange or Microsoft Office 365 mail server. (To do this, you have to accept the Make my PC more secure security policies that are applied from the mail server.)
  • You take one of the following actions:
    • You use the System Restore program in Windows to create some restore points.
    • You try to use restore points that were created by the system automatically.
  • You try to restore the system back to one of the restore points after you accept enforced security.

In this scenario, System Restore may fail, and you receive an error message that resembles the following after the system is restarted.

System Restore did not complete successfully. Your computer's system files and settings were not changed.

Details:

System Restore failed to extract the file

C:\Users< User Name >\AppData\Local\Packages\microsoft.windowscommunicationsapps_8wekyb3d8bbwe....

From the restore point.

An unexpected error occurred during System Restore. (0x8007045b)

Cause

This problem occurs because of a known issue in the System Restore program.

After you configure the Mail application to connect to an Exchange or Office 365 server and accept the Make my PC more secure security policies, some files in the user profile will be encrypted by using the Encrypting File System (EFS). And those files will be included in the restore point if you use System Restore to create a restore point. When you start the System Restore program to restore the system, System Restore creates a shutdown task to do the real restoration work. When this task is being executed, most system services are already stopped. This includes EFS.

However, if any file is being encrypted by EFS in the restore point, the System Restore program will have to call in to the EFS service to extract files of this kind from the restore point. But because the EFS service is already stopped and cannot be restarted because the system is being shutting down, the restoration process fails with error code 0x8007045b. This code means ERROR_SHUTDOWN_IN_PROGRESS.

Workaround

To work around this issue, follow these steps to restart into Windows RE, and then run the System Restore program.

  1. Open a command prompt as Administrator, and then run the following command:

    reagentc /boottore
    

    [!NOTE] If this command returns a Windows RE is disabled error, run the following command to install it, and then run reagentc /enable again.

  2. Restart the computer. The computer will restart into the Windows RE environment.

  3. In Windows RE, click Troubleshoot, click Advanced Options, click System Restore, and then follow the prompt to start the System Restore program. Because EFS is always running in Windows RE, and because System Restore doesn't have to create a shutdown task to perform the restoration work in Windows RE, this specific issue will not occur in Windows RE. For more information about the REAgentC command, see REAgentC Command-Line Options.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。