sodcalculator

10 Tech How-To

System Restore Error 0x80070091 in Windows 10: Fixed

Guide 10-55519 · Updated · Step by step

Yes, the System Restore error 0x80070091 in Windows 10 can be solved. The error usually appears when System Restore tries to access a specific folder and is denied permission, often due to a corrupted or locked directory. The most reliable fix is to run a disk check (CHKDSK) followed by a System File Checker (SFC) scan, and if that fails, temporarily disabling antivirus or performing a clean boot before retrying the restore.

What Causes Error 0x80070091?

Error 0x80070091 translates to ERROR_DIR_NOT_EMPTY – “The directory is not empty.” When System Restore attempts to restore a previous point, it needs to delete and replace files. If a folder contains files that Windows cannot remove (due to permission issues, corruption, or a file lock), the restore operation fails and returns this code.

Common triggers include:

  • Third-party antivirus software locking files during the restore.
  • A corrupted user profile or system file that prevents folder deletion.
  • Previous failed updates leaving orphaned files in the Windows directory.
  • Disk errors (bad sectors) that make certain folders unreadable.
  • Malware that has modified folder permissions.

How System Restore Works (and Why It Fails)

System Restore creates snapshots of critical system files, registry keys, and some program files. When you restore, Windows copies those snapshots back to their original locations, overwriting current files. For this to work, the restore engine must have full read/write access to every folder it touches. The error 0x80070091 occurs when a folder is not empty but the engine cannot enumerate or delete its contents – often because a file is in use by a running process or has an incorrect ACL (access control list).

Fix 1: Run CHKDSK and SFC Scans

Start with the built-in disk and file integrity tools. They fix most underlying corruption that causes this error.

  1. Open Command Prompt as administrator (type “cmd” in Start, right-click, choose “Run as administrator”).
  2. Type chkdsk C: /f /r and press Enter. If prompted to schedule the scan on next restart, type Y and restart. This will check for disk errors and repair them.
  3. After the disk check completes, run sfc /scannow in the same administrator Command Prompt. This scans all protected system files and replaces corrupted ones.
  4. If SFC reports that it cannot fix some files, run DISM /Online /Cleanup-Image /RestoreHealth and then run SFC again.
  5. Restart your PC and try System Restore again.

Fix 2: Temporarily Disable Antivirus and Perform a Clean Boot

Third-party antivirus software often locks files to protect them, which can interfere with System Restore. A clean boot starts Windows with only the essential drivers and services, eliminating software conflicts.

  1. Press Win + R, type msconfig, and press Enter.
  2. Go to the Services tab, check “Hide all Microsoft services,” then click “Disable all.”
  3. Go to the Startup tab and click “Open Task Manager.” Disable all startup items.
  4. Close Task Manager, click OK in System Configuration, and restart your PC.
  5. After the clean boot, temporarily disable your antivirus (or uninstall it if the error persists). Then attempt System Restore again.
  6. After restoring, re-enable all services and startup items via msconfig.

Fix 3: Use a Different Restore Point

Sometimes the restore point itself is corrupted. If you have multiple restore points, try an older one. In the System Restore wizard, choose “Choose a different restore point” and select an earlier date. If that fails, you can also try running System Restore in Safe Mode, which loads only minimal drivers and may avoid the file lock.

Fix 4: Manually Delete the Problematic Folder

If the error message identifies a specific folder (e.g., C:\Windows\System32\config\systemprofile\AppData\Local\Packages), you can try to remove it manually. However, this is risky – only do this if you are comfortable editing system folders. First, take ownership of the folder using the takeown command and then grant full control with icacls. For example:

takeown /f "C:\path\to\folder" /r /d y
icacls "C:\path\to\folder" /grant administrators:F /t

Then try deleting the folder via File Explorer. If it deletes, run System Restore again. If you are unsure, skip this step and use a system restore from a bootable USB drive instead.

Fix 5: Perform a Startup Repair or In-Place Upgrade

If none of the above work, you can repair the Windows installation without losing your files. Boot from a Windows 10 installation USB, select “Repair your computer,” then choose “Troubleshoot” → “Advanced options” → “Startup Repair.” This may fix the underlying boot and system file issues. Alternatively, run an in-place upgrade by downloading the Windows 10 Media Creation Tool and running setup.exe from within Windows – this reinstalls Windows while keeping your files and apps.

Frequently Asked Questions

Will I lose my personal files if I run System Restore?

No. System Restore only affects system files, registry settings, and installed programs. Your personal documents, photos, and other files in user folders are not touched. However, programs installed after the restore point will be removed, and you may need to reinstall them.

Why does the error happen only with certain folders?

It happens when a folder contains files that the restore process cannot delete or overwrite. This is often due to permission changes (e.g., from a previous user profile or a program) or a file being locked by a running service. The folder may also have a corrupted index entry.

Can I disable System Restore to avoid this error?

You can, but it is not recommended. System Restore is a valuable recovery tool. Instead of disabling it, fix the underlying issue. If you need to disable it temporarily, go to Control Panel → System → System Protection, select your drive, click Configure, and choose “Disable system protection.” Remember to re-enable it after troubleshooting.

Does this error occur on Windows 11 as well?

Yes, the same error code can appear on Windows 11 because the restore engine is similar. The fixes listed here also apply to Windows 11, though the exact menu paths may vary slightly.

Is there a way to restore without using System Restore?

Yes. You can use the “Reset this PC” feature (which reinstalls Windows while keeping your files), or use a system image backup if you have one. For file-level recovery, use File History or a third-party backup tool.

What if the error persists after all fixes?

If you have tried all the steps and the error still appears, the restore point may be irreparably corrupted. You can either choose an older restore point (if available) or perform a clean install of Windows. Before that, consider running a full malware scan and checking your disk health with tools like CrystalDiskInfo (for SSD/NVMe) or the built-in CHKDSK.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →