Fix: System Restore Error 0x80070091

Windows System Restore feature lets you revert back to any time of your choosing given that you created a System Restore point. It’s a way of making a backup plan in case something goes wrong with your computer. But the process of System Restore doesn’t always go as smoothly as one would hope. Sometimes you might see an error like this:

System Restore failed while restoring the directory from the restore point.

Source: AppxStaging

Destination: %ProgramFiles%\WindowsApps

An unspecified error occurred during System Restore. (0x80070091)

The error is shown during the process of System Restore (when you try to restore your computer to an earlier point) and prevents you from performing a System Restore successfully.

The error is caused by some problem with the WindowsApps folder. The error code 0x80070091 basically means that the destination directory isn’t empty. So, during the process of System Restore, there’s a folder in the WindowsApps that was supposed to be empty but isn’t. This can be because of an antivirus blocking the process or because of Sync Settings. But since this is happening to the latest versions of Windows 10, we can’t be sure of what exactly is causing the issue.

The usual solution would be to simply delete or rename the WindowsApps folder but the folder can only be accessed via TrustedInstaller. So you cannot access or modify this folder. In this article, we will first try to uninstall all the antiviruses and try to run the System Restore without other programs interfering with the process. If that doesn’t solve the problem then the next methods will be to access the WindowsApps folder and rename it so that the System Restore process can carry on.

Method 1: Uninstalling Antivirus Applications

The very first thing you should do is to uninstall any antivirus that you might have on your computer. Antivirus applications are known to interfere with these process and prevents from your computer to perform a successful system restore.

Although you can uninstall the antivirus from the Windows own Programs and Features window, but that usually leaves residual files that might cause problems even if you uninstall the antivirus. So it’s better to use a third party tool named Revo Uninstaller that will not only delete the application but will also help you clear up any residual files.

  1. Go here and download the Revo Uninstaller. You can download the free version, which will be enough.
  2. Install the Revo Uninstaller by running the exe file that you just downloaded. Simply follow the on-screen instructions
  3. Once installed, run the Revo Uninstaller
  4. Locate the antivirus that you want to uninstall and select it
  5. Click Uninstall. Select yes if Revo asks for confirmation. Follow any additional on-screen instructions that you might see
  6. Once uninstalled, you will see a new window in Revo. Click Advanced and select Scan

  7. Wait for the scan to finish.
  8. Now Revo will show you all the residual files that it found
  9. Make sure all the files are selected (if they arent then select Select All) and press Delete
  10. Click Next

  11. Revo will show you a list of registry files again, make sure all of them are selected (if they arent then select Select All) and press Delete
  12. Click Finish

Now try to do the system restore again to see if the problem is solved.

Method 2: Using Windows Recovery Environment

Performing a system restore from the Windows Recovery Environment might also be proven successful especially if it is interrupted because of some other programs.

  1. Press Windows key once
  2. Select power option
  3. Press and Hold SHIFT key and select Restart

Once the computer restarts, you will be taken to the Windows Recovery Environment screen with options to Continue, Troubleshoot and Turn off your PC. You can navigate to the System Restore option from this environment by following the given steps

  1. Click Troubleshoot
  2. Click Advanced Options
  3. Select System Restore

Now the computer will ask you to select the System Restore Point. Select the Restore Point that you want to go to and follow the on-screen instructions from there.

Method 3: System Restore from Safe Mode

Safe Mode is a mode for Windows that runs only the minimalistic interface with just the required programs. This way, you can make sure that no other program like antiviruses are interfering with your System Restore.

  1. Press Windows key once
  2. Select power option
  3. Press and Hold SHIFT key and select Restart
  4. Click Troubleshoot
  5. Click Advanced Options
  6. Select Startup Options
  7. Select Restart
  8. Now your system will restart and will give you multiple options to select from
  9. Press F4 to run Safe Mode

Now your computer will enter the Safe Mode which means only the programs that are necessary will be running so there won’t be any interruptions. Now perform a System Restore from this Safe Mode by doing the steps given below

  1. Hold Windows key and press R
  2. Type rstrui.exe and press Enter
  3. Click Next
  4. Now select the restore point that you want to go to
  5. Click Next then select Finish

Now wait for the restore to complete.

Method 4: Changing WindowsApps Permission from Safe Mode

The problem can be solved either by deleting or renaming the WindowsApps folder. But WindowsApps folder cannot be accessed and, therefore, modified through my computer or by any other regular means. So in this process, you will use the Command Prompt to run some commands which will give you access to the WindowsApps folder so that you can rename the WindowsApps folder.

  1. Press Windows key once
  2. Select power option
  3. Press and Hold SHIFT key and select Restart
  4. Click Troubleshoot
  5. Click Advanced Options
  6. Select Startup Options
  7. Select Restart
  8. Now your system will restart and will give you multiple options to select from
  9. Press F4 to run Safe Mode

Once in the Safe Mode, you need to follow the steps given below

  1. Hold Windows key and press X
  2. Select Command Prompt (Admin)
  3. Type the lines given below and press Enter after each line

cd C:\Program Files

takeown /f WindowsApps /r /d Y

icacls WindowsApps /grant “%USERDOMAIN%\%USERNAME%”:(F) /t

attrib WindowsApps -h

rename WindowsApps WindowsApps.old

Basically in the first line, you are going to the directory where the WindowsApps folder is. When you are there, only then will you be able to make changes.

In the second line, you are taking the ownership of the WindowsApps folder as the current user. By taking the ownership of the WindowApps you are taking the ownership of all its content as well. You will have to wait a while after running this command.

In the third line, you are granting full control over the directory and, therefore, the WindowsApps folder. This is needed because you need to rename the WindowsApps folder. You will be able to see a message “Successfully processed xxxxx files: Failed to process x files”. If all goes well, you shouldn’t see any failed processed files.

In the fourth line, you are making the WindowsApps folder unhidden. Because if it is hidden, you won’t be able to rename the folder

And, in the last line, you are simply renaming the WindowsApps folder to WindowsApps.old. You can name it to anything but using the word old will help you remember which one is the renamed folder.

Once this is done, you should be able to run System Restore successfully. After completing the above steps, reboot your computer and try to run System Restore again.

Method 5: Renaming WindowsApps Folder with Process Hacker and Explorer++

Although method 4 works perfectly but it might be a little too technical for people who aren’t so tech savvy. So this method will use third party applications like Process Hacker and Explorer++ to get access to the WindowsApps folder and rename it. The only difference is, you won’t need to run any commands so it’s a little straight forward.

So follow the steps given below

  1. Go here and click on the download button to download Process Hacker.
  2. Once downloaded, run the setup file of Process Hacker
  3. Click Next.
  4. Select Install. Leave the installation location as it is.
  5. Wait for it to finish

Go here and download both the x32 and x64 TrustedInstaller plugin zip files (by clicking on the links). These are the plugins that are needed for Process Hacker to get access to WindowsApps folder.

  1. Open the TrustedInstallerPlugin_x32 file with Winzip
  2. Unzip the dll file (there will only be one file in it) by clicking Unzip
  3. Now you need to select the location where you want to unzip it. If you installed the Process Hacker by following the steps given above, it should be C:\Users\[profilename]\Downloads\ProcessHackerPortable\App\ProcessHacker\x86\plugins (replace [profilename] with your computer profile name). Go to this address.
  4. Click Unzip
  5. Now open the TrustedInstallerPlugin_x64 file with Winzip
  6. Unzip the dll file (there will only be one file in it) by clicking Unzip
  7. Select the destination C:\Users\[profilename]\Downloads\ProcessHackerPortable\App\ProcessHacker\x64\plugins (replace [profilename] with your computer profile name). Go to this address
  8. Click Unzip

Go here and download the Explorer++. Pick the version suitable for your Windows version. Download the file and extract it somewhere where you can find it easily.

  1. Now run the Process Hacker by right clicking and selecting run as administrator…
  2. Click Hacker (menu button)
  3. Select Run as trusted Installer…

  4. Click Browse
  5. Go to the location where you unzipped Explorer++
  6. Select Explorer++
  7. Click Open
  8. Click Ok

  9. A new Windows should open
  10. Now double click C drive
  11. Double click Program Files
  12. Locate WindowsApps folder and right click it. Select Rename

  13. Type WindowsApps.old (or whatever you want) and press Enter

Now you have renamed the WindowsApps folder and your System Restore should work fine now. Close all programs and windows and try to perform a System Restore.

Method 6: Renaming WindowsApps using Unlocker 1.9.2

Unlocker is another third party tool that can be used to access files and folders that can only be access with TrustedInstaller. If methods 4 and 5 didn’t work or you aren’t comfortable with using those then you can follow this method which is a lot easier and requires only 1 third party tool.

You will use Unlocker to access WindowsApps folder and rename it. Once renamed, you will easily be able to perform the System Restore.

Go here and download the Unlocker tool by clicking on the link named as Download@MajorGeeks. Once downloaded, follow the steps given below.

  1. Run the installer
  2. Click Next
  3. Click I Agree
  4. Click Advanced Option
  5. Uncheck Install Delta Toolbar

  6. Click Next
  7. Click Next again
  8. Select Install

Now wait for the Installation to finish and click Finish

  1. Now Hold Windows key and press E
  2. Type C:\Program Files in the address bar located at the top mid and press Enter
  3. Click View
  4. Check the option Hidden Items (if its not already checked)
  5. Now you should be able to see the WindowsApps folder
  6. Right click WindowsApps folder and select Unlocker

  7. Click yes if it asks for permissions
  8. Select Rename from the drop down menu
  9. Now type WindowsApps.old (or whatever you want) and select Ok

  10. Click Yes if it asks to rename it again on the next reboot
  11. Select Ok again

Now reboot your computer and then run the System Restore. Now you should be able to perform a successful System Restore.

Method 7: Turn off Sync Settings

Although rarely, but turning off Sync Settings solves the problem with System Restore as well.

  1. Press Windows key once
  2. Select Settings
  3. Select Accounts
  4. Select Sync your settings
  5. Turn off Sync Settings

Now close the settings windows and reboot your computer. Check if you can perform the system restore successfully.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.