Rocket Backups
Windows 10 & 11 Buy license · $69.95
Troubleshooting

Backup Failing With Access Denied in Windows? How to Fix It

Fix access denied errors in Windows backups: check the account, NAS and folder permissions, locked files, antivirus and Controlled folder access.

Updated 5 minute read The Rocket Backups team

An "access denied" error in a Windows backup means the account running the backup is not allowed to read a source file or write to the destination. The most common causes are: the backup runs under an account without permission to the folder or network share, a file is locked by another program, the NAS share is read-only for that user, Windows Security's Controlled folder access or antivirus blocked the write, or the folder belongs to a different user or old Windows installation. Find which file or path is named in the error, then use the matching fix below.

Avoid the tempting shortcut of taking ownership of whole system folders. It rarely fixes backups and can break Windows.

Step 1: find exactly what was denied

The fix depends on whether the problem is reading the source or writing the destination.

  • Check your backup tool's log for the full path that failed.
  • For Task Scheduler jobs, check the task's History tab and any log file your script writes (for Robocopy, /LOG: output shows "Access is denied" with the path and error code 5).
  • For File History, look in Event Viewer under Applications and Services Logs → Microsoft → Windows → FileHistory-Engine.
  • For Backup and Restore (Windows 7), click Options or View details on the failed backup.
Path in the errorLikely causeGo to
A file in your own foldersFile locked or protected by security softwareFix 3 or 4
Another user's folder, or Windows.oldAccount lacks permissionFix 2
The backup drive or network shareDestination permissions or Controlled folder accessFix 1 or 4
System files such as pagefile.sys or hiberfil.sysFiles Windows never lets you copy directlyFix 5

Fix 1: destination permissions (NAS, share or drive)

Network shares and NAS

  1. Sign in to the NAS's admin page and check the backup user has read/write permission on the backup share.
  2. In Windows, connect using that account's credentials: open Credential Manager → Windows Credentials, edit or add the entry for the NAS, and enter the right user name and password.
  3. Use the full path, such as \\nas\backups, in the backup job. Mapped drive letters belong to your signed-in session and may not exist for a job that runs in the background.
  4. If the job runs as SYSTEM or a different account, give that account its own credentials in the backup tool, rather than relying on yours.

Local and external drives

  1. Right-click the backup folder on the drive, choose Properties → Security.
  2. Check your account (or the account the backup runs as) has Modify or Full control.
  3. If a drive was used on another PC, its folders may be owned by an account that no longer exists. Create a new backup folder on the drive, which inherits normal permissions, rather than reusing the old one.

Fix 2: source folders you cannot read

Each user's folders under C:\Users are private to that user. A backup running under your account cannot read another user's Documents.

  • Run the backup with administrator rights or as the SYSTEM account, which most backup programs do for system-wide jobs. In Task Scheduler, tick Run with highest privileges.
  • Back up each user from their own account if you use File History, which only covers the signed-in user.
  • For Robocopy, add the /B switch (backup mode) when running from an elevated prompt; it uses the backup privilege to read files regardless of their permissions.

Some paths under your profile, such as Application Data or My Documents inside C:\Users\You, are compatibility links (junctions) that deny listing by design. They point to folders that are backed up anyway; exclude the junctions rather than changing their permissions.

Fix 3: locked and open files

Programs such as Outlook, databases, accounting software and virtual machines lock their files while running. A simple copy then fails with access denied or "file in use".

  • Use a backup tool that copies open files through a Volume Shadow Copy snapshot. If snapshots themselves fail, see fixing Volume Shadow Copy errors.
  • Or schedule the backup for a time the program is closed, such as at shutdown.

Rocket Backups backs up files that are open and in use, so an Outlook data file or a spreadsheet left open overnight is still included.

Fix 4: Controlled folder access and antivirus

Windows Security's ransomware protection blocks untrusted programs from writing to protected folders. If your backup program writes to a protected location, or restores into one, it can be blocked.

  1. Open Windows Security → Virus & threat protection → Manage ransomware protection.
  2. Click Block history to see whether your backup program was blocked.
  3. If it was, and you trust it, click Allow an app through Controlled folder access and add the program.

Third-party antivirus can do the same; check its quarantine and blocked-actions log and add an exclusion for the backup program if needed. Keep Controlled folder access on if you can: it is a useful layer, and allowing one trusted app is better than turning it off. Our guide to protecting backups from ransomware explains why.

Fix 5: system files you should exclude

Some files can never be copied directly, and a file-by-file backup that includes them always reports errors:

  • pagefile.sys, hiberfil.sys and swapfile.sys
  • C:\System Volume Information
  • Registry hives such as NTUSER.DAT while the user is signed in

Exclude them from file backups. If you want Windows and its settings protected, use a system image, which captures the whole drive through a snapshot. See how to create a system image in Windows 11.

What not to do

  • Do not take ownership of C:\Windows, C:\Program Files or C:\Users. Resetting ownership and permissions on system folders can stop Windows updates, apps and even sign-in from working.
  • Do not disable your antivirus permanently to get a backup through.
  • Do not give "Everyone" full control on a backup share. It lets any infected PC on the network overwrite your backups.

After fixing it

Run the backup by hand and check the log shows no skipped files. Then keep an eye on it: permission problems often return after a password change, a new NAS firmware or a new user account. Rocket Backups verifies each backup and can email you if a job fails, so a new access problem does not go unnoticed for weeks.

Frequently asked questions

Why does my backup say access is denied?

The account running the backup lacks permission to read a source file or write to the destination, the file is locked, or security software blocked the write.

Can Controlled folder access block backups?

Yes. If a backup program is not on the allowed list it may be blocked from writing to protected folders. Allow it in Windows Security if you trust it.

Should I take ownership of system folders to fix backup errors?

No. Changing ownership of Windows system folders can break things. Fix the backup job's account, permissions or exclusions instead.

Get three guides like this every month, plus software update notices.Subscribe →