Instructions to fix Access Denied error when accessing files or folders on Windows

When you encounter an "Access Denied" error in Windows 11 , it can feel like you're locked out of your computer. While having trouble accessing files and folders can be frustrating, don't panic — with a few simple fixes, you can regain access to your system.

Table of Contents

Why do you get the "Access Denied" error?

Access Denied error is a common issue on Windows system that indicates that you do not have permission to view the file or folder. This is because your system has not granted access to that folder to the user account you are currently using. Simply put, you are using an unauthorized account to access paths, folders, and files on your computer or external hard drive from other computers.

In some cases, file ownership and encryption issues can also cause this error. Third-party antivirus software may also be blocked from accessing it. Some programs may mistake the genuine setup wizard as a threat and issue false warnings.

Here are some common fixes for Access Denied error on Windows 11.

5 Ways to Fix “Access Denied” Error on Windows 11

1. Check file system permissions

Here's a simple solution you can try to make sure your account has the proper access to the file or folder you're opening:

1. Locate the file, folder, or directory you are trying to access. Right-click it and select Properties from the menu.

2. Go to the Security tab and click the Edit button .

Instructions to fix Access Denied error when accessing files or folders on Windows
Security tab in file properties on Windows 11

3. Select your username from the list and check the box next to Full control in the Allow column under Permissions for User . Then, click OK .

Instructions to fix Access Denied error when accessing files or folders on Windows
Set up change permissions for users

Note : If your username is not in the list, you must add it manually and then change its permissions.

You can also try restoring the default permissions using the icacls command in Command Prompt. Resetting permissions using icacls can help resolve access issues caused by changes to the default permissions.

2. Set your account to admin

In most cases, the Access Denied error can be fixed by setting your user account as admin on your computer. Here's how you can set your account as admin:

1. Press Win + R to open Run . Type control userpasswords2 and press OK .

2. On the User Accounts window , select the box next to Users must enter a username and password to use this computer . If this option doesn't appear, skip this step.

Instructions to fix Access Denied error when accessing files or folders on Windows
The Users tab displays users on the computer.

3. Select your account and click the Properties button below it.

4. Next, go to the Group Membership tab . Select Administrator from the menu, then click Apply > OK.

Instructions to fix Access Denied error when accessing files or folders on Windows
Group Membership tab to select standard user or admin account

Now, restart your computer and see if that resolves the issue. If not, move on to the next step.

3. Run SFC and DISM tools

Corrupted files can also trigger the “Access Denied” error. Luckily, Windows has built-in tools — System File Checker (SFC) and Deployment Image Servicing and Management (DISM) — that can scan and repair these files.

Follow these steps to run the SFC tool:

  • Press Win + S , type CMD and you will see Command Prompt displayed as the best match for your search.
  • To the right of the search bar, click Run as administrator .
  • Then, type the following command and press Enter :
sfc /scannow

After the scan is complete, restart your computer. If you still see the "Access Denied" error, try the DISM tool:

  • Launch Command Prompt with admin rights, as in the steps to run the SFC tool.
  • There are two commands you can enter to check for file errors, then press Enter : DISM /Online /Cleanup-Image /CheckHealth for a simpler scan or DISM /Online /Cleanup-Image /ScanHealth for a more advanced scan
  • If DISM detects a problem, type the following command and press Enter :
DISM /Online /Cleanup-Image /RestoreHealth

Once the DISM process is complete, restart your system and check if the error is resolved.

If you want to learn more, you can check out WebTech360's guide on how to use SFC in Windows or our guide on how to use the DISM command to repair your corrupted files.

4. Enable hidden admin account

Your Windows 11 system has a hidden admin account with more privileges than a regular account. You can enable this feature to access files, folders, and paths that are restricted to regular users - this is especially useful if you can't switch your user account from a standard account to an admin account.

1. Open Windows search by pressing Win + S .

2. Next, type CMD , right-click Command Prompt and select Run as administrator .

3. On Command Prompt, run the following command: net user administrator /active: yes . This will unlock the admin account.

Instructions to fix Access Denied error when accessing files or folders on Windows
Prompt to enable hidden admin account in Windows

4. Log out of the current account and switch to the newly activated admin account. Using this account, you will not have access issues as it has more privileges than the normal admin account.

5. Once you are done with the admin account, log out and log back in to your main account. Repeat steps 1 and 2, then run this command: net user administrator /active: no . This will disable the admin account.

Note : Switching back to your main account will cause the error to reappear. If you need ongoing access to the files, use a hidden admin account to make the necessary changes to your system and fix ownership or access issues. You may also consider copying these items to another location that your regular account can access.

5. Take ownership of the file

As mentioned earlier, the “Access Denied” error sometimes stems from an ownership issue. If this is the cause of the error, taking ownership of the file can immediately give you the access you need:

1. Locate the folder or file you want to access and right-click it. Click Properties from the menu.

2. Go to the Security tab and click the Advanced button .

Instructions to fix Access Denied error when accessing files or folders on Windows
Security tab in file properties tab on Windows

3. Next, find the Owner section at the top of the window and click Change . This will open a new dialog box.

Instructions to fix Access Denied error when accessing files or folders on Windows
Set permissions for a file in Windows 11

4. In the Select User or Group window , enter your user name or Administrators in the Enter the object name field .

Instructions to fix Access Denied error when accessing files or folders on Windows
Tab Select User or Group

5. Then click the Check Names button and OK to save your changes.

Instructions to fix Access Denied error when accessing files or folders on Windows
Click Check Names > OK

6. Next, click Apply .

7. You will see the Windows Security prompt. Click OK .

8. At the main interface, click OK to save changes.

In addition to doing it manually, you can also take ownership of a file using Command Prompt. Follow the steps below if you want to type the command:

  1. Open Command Prompt through Windows search by pressing Win + S and typing CMD. Click Run as administrator in the Command Prompt tab from the results.
  2. In Command Prompt, type or paste the following commands and press Enter after each command:
takeown /f "path_to_folder"/r /d y
icacls "path_to_folder"/grant administrators:F /t

You need to replace the "path_to_folder" part with the path to the inaccessible file or folder. Here's how you can get the path:

  1. Navigate to the file or folder in question.
  2. Right click on it and select Copy as path .
  3. Replace "path_to_folder" with the copied path. For example: " C:\Users\HP\Downloads\Literature review sources "
Instructions to fix Access Denied error when accessing files or folders on Windows
Prompt to take file ownership via CMD

Restart your computer after completing the steps above to see if the problem has been resolved. But usually, after running these commands, you will be able to regain access to your files and folders.

6. Create a new user account

Instructions to fix Access Denied error when accessing files or folders on Windows

If none of the other fixes work, the problem may lie with your user account. Creating a new user account may help resolve access issues.

  • Press Win + I to launch the Windows Settings app.
  • Then, navigate to Accounts > Account settings > Other Users > Add account .
  • If you don't want to create a Microsoft account, click I don't have this person's sign-in information > Add a user without a Microsoft account .
  • Follow the on-screen instructions to create a local account or a Microsoft account, depending on your preference.

Once you've created your account, sign out of your current profile and sign in to the new one. Try accessing the files or folders that were causing the problem. If the problem is resolved, consider moving your data to the new account and using that account as your primary account.

7. Disable third-party antivirus software

If the problem does not resolve, consider disabling third-party antivirus software.

Antivirus software is essential to protect your system from threats and malicious agents. However, it can cause errors, such as access denial issues and incorrect warning results. For example, many users have reported receiving the “Access Denied” error when trying to install certain applications, and the main reason is their security program.

To check if this is the case for you, temporarily disable your third-party antivirus program and try accessing the file or installing the program. If the error does not appear, it is likely that your antivirus is the cause and you should consider another program to protect your computer. If not, use the built-in security program in Windows 11: Microsoft Defender.

Fixing the “Access Denied” error is simple and doesn’t require many technical steps. You can regain control of your files and system using a few key strategies. Just make sure your user account has the necessary permissions and, if necessary, elevate your privileges to admin level.

Good luck!

See more articles below:

Tags: #System
Sign up and earn $1000 a day ⋙

Leave a Comment

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.

Windows Startup Tips That Will Save You From Dangerous Malware

Windows Startup Tips That Will Save You From Dangerous Malware

When it comes to Windows, it’s always helpful to know a few tricks for when your computer starts to crash. Many people have recently encountered a similar situation, and have restarted their computers with this super simple trick.

Using CMD to Delete Large Folders on Windows

Using CMD to Delete Large Folders on Windows

Large folders on the system are one of the culprits that eat up a lot of system space. Many folders that you create, after deleting them, will come back after a while. Maybe those are junk folders that you try to remove them.

11 Ways to Open Recycle Bin on Windows

11 Ways to Open Recycle Bin on Windows

This guide will help you answer the question Where is the Recycle Bin in Windows 10? and let you choose the most comfortable way to reach the Windows 10 Recycle Bin location:

How to reset Windows Security settings on Windows

How to reset Windows Security settings on Windows

On Windows, sometimes you also need to reset Windows Security settings to default to fix some connection errors, stop working or simply want to return to the original state...

Heres how to check if your IP address is static or dynamic

Heres how to check if your IP address is static or dynamic

To check if the IP address you are using is a dynamic IP address or a static IP address, you can refer to the article below by WebTech360.

Instructions to block automatic driver installation on Windows 11

Instructions to block automatic driver installation on Windows 11

Windows 11 can download drivers for your computer without user intervention, but you don't always want to install drivers automatically to avoid unwanted problems.

How to Run and Stop Clean Boot on Windows 11

How to Run and Stop Clean Boot on Windows 11

Clean Boot is a troubleshooting technique used to start Windows with a basic, essential set of drivers and startup programs.

How to clone Windows hard drive without third party software

How to clone Windows hard drive without third party software

The cloning process involves moving data from one storage device to another (in this case, a hard drive) with an exact copy copied from the destination drive.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.

Windows Startup Tips That Will Save You From Dangerous Malware

Windows Startup Tips That Will Save You From Dangerous Malware

When it comes to Windows, it’s always helpful to know a few tricks for when your computer starts to crash. Many people have recently encountered a similar situation, and have restarted their computers with this super simple trick.

Using CMD to Delete Large Folders on Windows

Using CMD to Delete Large Folders on Windows

Large folders on the system are one of the culprits that eat up a lot of system space. Many folders that you create, after deleting them, will come back after a while. Maybe those are junk folders that you try to remove them.

11 Ways to Open Recycle Bin on Windows

11 Ways to Open Recycle Bin on Windows

This guide will help you answer the question Where is the Recycle Bin in Windows 10? and let you choose the most comfortable way to reach the Windows 10 Recycle Bin location:

How to reset Windows Security settings on Windows

How to reset Windows Security settings on Windows

On Windows, sometimes you also need to reset Windows Security settings to default to fix some connection errors, stop working or simply want to return to the original state...

Heres how to check if your IP address is static or dynamic

Heres how to check if your IP address is static or dynamic

To check if the IP address you are using is a dynamic IP address or a static IP address, you can refer to the article below by WebTech360.

Instructions to block automatic driver installation on Windows 11

Instructions to block automatic driver installation on Windows 11

Windows 11 can download drivers for your computer without user intervention, but you don't always want to install drivers automatically to avoid unwanted problems.

How to Run and Stop Clean Boot on Windows 11

How to Run and Stop Clean Boot on Windows 11

Clean Boot is a troubleshooting technique used to start Windows with a basic, essential set of drivers and startup programs.

How to clone Windows hard drive without third party software

How to clone Windows hard drive without third party software

The cloning process involves moving data from one storage device to another (in this case, a hard drive) with an exact copy copied from the destination drive.