Error 5: Access is denied is an error that shows up when Windows doesn’t have enough permission to perform the operation. Usually, the error is related to the Windows directory permissions and can be fixed by setting the correct permissions or giving access to the user to perform the action. In some other cases, the fixes can be different if it happens even with correct permissions. In this article, we are going to take a look at some of the methods you can use to fix Error 5: Access denied in Windows 10 PC.
1. Run the Application as Administrator
If the error is showing up while trying to install a software on your Windows 10 PC, it can indicate that the program cannot perform the action. In this case, you can simply right-click the .exe file and choose the “Run as administrator” option from the context menu. If the problem is the lack of permissions of the program to write into your computer, the problem will be solved instantly and you can continue installing the software without any problems.
2. Try Turning off your Antivirus Program
If you are trying to install a program known for threats or contains false-positive code, antivirus software might block you from installing it on your computer. So you can try turning off your antivirus program for a few minutes and try reinstalling the program again. Make sure that you trust the software before turning off the antivirus program. It is not recommended to follow this method for installing any pirated software or applying a crack. If the program actually contains any malicious code, you will end up in big trouble.
3. Make sure that you have Administrative Privileges
To install certain applications that have to write files into restricted directories, you need administrative permissions. If you are using Windows as a guest user or don’t have administrative permissions for some reason, Windows might output the access denied error. To give your user account administrative privileges, follow these steps.
- Press Win + R keys to open the Run prompt.
- Type netplwiz and press Enter. It will open the user account settings.
- Choose your current profile from the user accounts.
- Click on Properties.
- Now, navigate to the Group Membership tab.
- Select the Administrator option as the permission level.
- Click Apply.
That’s it, you have successfully changed the user account permissions to have administrative access.
4. Change Folder Permissions
If you are facing the error only when trying to install the software or perform operations on a certain folder, you can try changing the permission of that specific folder. To do that for these steps:
- Right-click on the folder.
- Click on Properties from the menu.
- Navigate to the Security tab.
- Make sure that the SYSTEM and Administrator have enough privileges. If not edit them appropriately give them the necessary permissions.
- You can also try checking the box “Replace all child object permissions with inheritable permissions from this object” after clicking on the Advanced button in the security tab and saving the changes.
It is not recommended to perform this operation on C: drive as a whole. But only on a certain folder that has not many sub-directories in it.