System Restore Did Not Complete Successfully, Error 0x80070091. How To Fix It?
The System Restore feature in Windows operating systems allows users to return to a previous computer state (to a restore point, if one was created) automatically or manually. In Windows 10, this feature is disabled by default and users must to turn it on if required. It is recommended that you have System Restore enabled.
System Restore can be very useful when there are problems with the operating system, such as system malfunctions and various other problems. Furthermore, it is invaluable when there are many changes to the system that you wish to revert (and changing them manually would be time-consuming). If specific restore points are created, you will be able to undo weeks or even months of changes. Furthermore, System Restore does not affect your personal files, and thus you can continue to use them even when the system is restored. Note, however, that programs installed after the restore point you select will be lost.
System Restore often helps to resolve problems, however, in some cases, you might receive an error when attempting to restore the system. The error usually contains information such as "System Restore did not complete successfully. Your computer's system files and settings were not changed". It might also state that System Restore failed while restoring the directory from the restore point, and that this is an unspecified error with code 0x80070091 and source AppxStaging. It also gives an option to run System Restore again and choose a different restore point. This might not be useful if you only have one restore point created or other restore points are not at required dates/times.
This problem is not new and is often indicative of problems with the WindowsApps folder or that the destination folder is not empty. I.e., a folder was required to be empty, but contained files, and thus System Restore could not be completed. You could simply delete or rename the folder, but this is not as easy as it may seem. Fortunately, you can address this problem by following the steps in the guide below.
Table of Contents:
- Rename The WindowsApps Folder In Safe Mode
- Rename The WindowsApps Folder From The Windows Recovery Environment
- Temporary Disable Your Antivirus
- Check Your Disk For Errors
- Video Showing How To Fix System Restore Error 0x80070091
Rename the WindowsApps Folder in Safe Mode
Safe Mode is a diagnostic start-up mode in Windows operating systems used to obtain limited access to Windows when the operating system does not start or function normally. It is the opposite of Normal Mode, which starts Windows in the usual manner. Safe Mode starts Windows in a basic state, using a limited set of files and drivers. It can help to troubleshoot problems on your computer. If, for example, the problem does not occur in Safe Mode, this will confirm that the default settings and basic device drivers are not causing the issue. To rename the WindowsApps folder, you must use Safe Mode or the Windows Recovery Environment (WinRE). First, we demonstrate Safe Mode. To boot into Safe Mode, go to Windows Settings and click the "Update & Security" option.
Now select the "Recovery" section in the left pane and click the "Restart now" button under Advanced startup.
Your computer will restart and you will see a menu on a blue screen. Select the "Troubleshoot" option.
In the Troubleshoot menu, click "Advanced options".
In the Advanced options window, find and click "Startup Settings".
In Startup Settings, click "Restart".
You will be presented with a list of options. To choose an option, press the number on your keyboard or use function keys from F1 to F9. Press 4 or F4 on your keyboard to enable Safe Mode. If you need to enable Safe Mode with Networking, press 5.
In Safe Mode, type "command prompt" in Search and right-click the "Command Prompt" result. Select the "Run as administrator" option from the contextual menu.
Now enter the following commands, pressing Enter after each to execute:
cd C:\Program Files
takeown /f WindowsApps /r /d Y
icacls WindowsApps /grant “%USERDOMAIN%\%USERNAME%”:(F) /t
attrib WindowsApps -h
rename WindowsApps WindowsApps.old
Now restart the computer to boot into Windows normally. Try to run System Restore again and check if System Restore error 0x80070091 persists.
Rename the WindowsApps Folder From the Windows Recovery Environment
If for some reason you were unable to rename the WindowsApps folder through Safe Mode, we suggest that you attempt it through Windows Recovery Environment by following the same steps described in the previous method, and by selecting the "Command Prompt" option instead of "Startup Settings" in the Advanced options window.
Select your administrator account and enter the password. Click "Continue".
Now type the following commands and press Enter after each:
cd C:\Program Files
attrib WindowsApps -h
rename WindowsApps WindowsAppsOld
Now restart the computer to boot Windows normally and try to run System Restore again. Check if System Restore error 0x80070091 persists.
Temporary Disable your Antivirus Software
Installed and enabled antivirus software might prevent you from running the System Restore feature. To check if third-party antivirus software is the cause, temporarily disable it, try to run System Restore again, and check if the problem persists. If disabling (or uninstalling) the antivirus software resolves the problem, we recommend that you switch to other antivirus software or reinstall the currently-installed version (or simply disable it again). If you are not sure how to disable your antivirus software, read this guide in which you will find instructions on how to disable some of the most popular antivirus programs.
Check the Disk for Errors
A built-in Windows tool allows you to check the integrity of disks. It examines disks and corrects many types of common errors. It is possible that there are some errors that prevent you from running System Restore and they can be fixed using this tool. You can run this tool from the command line or through a graphical interface. In this guide, we run it through Command Prompt. Open Command Prompt as administrator, type the "chkdsk C: /f" command, and press Enter on the keyboard. Replace "C" with the letter of associated with the hard drive i(f it is not the C: drive you wish to scan or the Windows operating system resides on another drive.
You will be asked if you want to restart your computer to perform the scan. Type the "Y" letter and press Enter. Wait for the chkdsk process to finish and check if this command resolved System Restore error 0x80070091.
We hope that this guide was helpful and you were able to successfully perform a System Restore without receiving System Restore error 0x80070091. If you know of other solutions to this problem not mentioned in our guide, please share them with us by leaving a comment in the section below.
Video Showing How To Fix System Restore Error 0x80070091: