Bobcares

System error 5 has occurred Access is denied – How we deal with it

by | Jan 19, 2021

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.

System error 5 has occurred Access is denied

 

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.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF