While running some commands in Windows, you might have come across an error ‘System error 5 has occurred Access is denied’.
Generally, this error occurs while running commands without having administrative privileges. It simply means that you cannot execute the command as you don’t have admin rights.
Here at Bobcares, we have seen several such Windows-related errors as part of our Server Management Services.
Today we will take a look at the cause of this Windows error and its fix.
What causes ‘System error 5 has occurred Access is denied’ error to occur
There are many other reasons for this error to occur. They are:
- Time synchronization issues: This happens if the device time is incorrectly set.
- Missing permission to access the remote computer: You have no proper permissions to access the remote computer.
- The account is disabled: This happens if you are trying to access a disabled account or one that doesn’t exist on the domain.
- Firewall and/or third party product may eliminate connection to the remote computer.
For instance, the error appears as below.
How we fix the error ‘System error 5 has occurred Access is denied’
Now let’s take a look at how our Support Engineers resolve this error.
In order to fix this error, we need to open the elevated prompt with administrative privileges. Here are the steps for it.
Windows 7:
- First, we open the Start menu and type cmd, and press Enter.
- Next, we right-click on the search results and select ‘Run as administrator’.
- If a UAC opens, we click on the OK button to confirm.
Windows 8, 8.1, or 10:
- First, we press Windows key + X to open a drop-down menu and select Command Prompt (Admin).
- Then we right-click on the search results and select ‘Run as administrator’.
- If a UAC opens, we click OK to confirm.
1. Change The “LocalAccountTokenFilterPolicy” Registry Key
The best way to tackle this error is to change the value of the ‘LocalAccountTokenFilterPolicy’ registry key. Here are the steps we follow for it.
1. First, we open the Start menu and enter the regedit
command in the Start Search Box.
2. Next, in the Programs list, we select regedit.exe to open the Registry Editor window.
3. If we get prompted then we enter the administrator password to continue or select Continue to confirm.
4. In the registry editor window, we search for the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows\Cur rentVersion\Policies\System
5. If the ‘LocalAccountTokenFilterPolicy’ entry is not in this registry key, then we follow the below steps to add it and set its value.
- First, we open the Edit menu and point to New and select the DWORD VALUE command.
- Next, we type LocalAccountTokenFilterPolicy and then click on OK button.
- Then we right-click on the LocalAccountTokenFilterPolicy key that we have just added and select Modify.
- After that, we type the number 1 in the Value Data box and click OK.
- Finally, we exit the Registry Editor window and restart the computer.
2. Scan For Viruses
The virus in the system also plays a major role in throwing this error. These viruses tend to infect the core program files that Windows requires to run. Also, this causes the files to become unreadable. As a result, Windows will be unable to process the commands we need, leading to it showing the error.
So we suggest using any virus scanner to clean the Virus.
3. Clean Out The Registry
The registry is a central database that stores settings and information for the system. But this registry also can get corrupted. As a result, the system might slow down.
To fix this, we use ‘registry cleaner’ to scan through the registry and repair any of the damaged parts of it.
[Still, not able to fix Windows errors? – We are here to help you]
Conclusion
Today, we saw the solution our Support Engineers provide to resolve this error.
0 Comments