System Error 5 Access Denied: How to Fix It in Windows
In this article
System error 5 means Windows blocked an action because your account or the program lacks the required permission. The fastest fix is to run the tool or command as administrator: right-click the app or Command Prompt and choose Run as administrator. If that does not clear it, the cause is usually a permissions problem on a folder, a service that is not running, or security software interfering. Work through the steps below in order.
What You'll Need
- An account on the PC that is a member of the Administrators group (a standard user account cannot approve elevation).
- Administrator approval or the password for an admin account if you are signed in as a standard user.
- The exact name of the command or program that produced the error, so you can target the fix.
- Patience: most fixes are quick, but permission changes can take a restart to apply.
Step-by-Step
- Note what triggered the error. Write down the program, command, or action (for example, a service start, a network command, or saving to a folder). The fix depends on the context, and knowing the trigger stops you from changing the wrong permissions.
- Run the tool as administrator. Right-click the app shortcut or the Command Prompt icon and select Run as administrator. Approve the User Account Control prompt. If the error disappears, the program simply needed elevation and you are done.
- Open an elevated Command Prompt for commands. Press the Start button, type cmd, right-click Command Prompt, and choose Run as administrator. Run the command again in that window. A normal Command Prompt cannot perform actions that need admin rights, which is the most common cause of error 5.
- Check the folder or file permissions. Right-click the folder or file involved, choose Properties, open the Security tab, and select your user account. If Full control is not allowed, click Edit, select your account, tick Full control under Allow, and click OK. If Windows refuses to save the change, you are not the owner: click Advanced, check the Owner line, and use Change to take ownership if you are an administrator.
- Confirm the service is running. If the error came from starting or stopping a service, press the Start button, type services, and open Services. Find the service in the list, right-click it, and choose Start or Restart. If it is greyed out or refuses, open its Properties and check the Startup type and Log On tab.
- Check your account type. Open Settings > Accounts and look at the account type. If it says Standard user, sign in with an administrator account or ask the administrator to promote your account. Standard accounts cannot approve elevation, so error 5 will keep returning.
- Restart the PC. A restart clears pending permission changes and releases files locked by another process. Try the original action again before changing anything else.
- Temporarily check security software. If a third-party antivirus or anti-malware tool is running, its real-time protection can block writes and commands. Disable it briefly, retry the action, and turn it back on. If that fixes it, add an exclusion for the folder or program in the security app rather than leaving protection off.
- Run the built-in troubleshooters. Open Settings > System > Troubleshoot > Other troubleshooters and run the relevant one, such as Program Compatibility Troubleshooter for an app that will not run. Labels vary slightly by Windows version and region.
- Repair the affected app. Open Settings > Apps > Installed apps, find the program, open its menu, and choose Modify or Repair if offered. If not, uninstall it and reinstall from the official source. Reinstalling resets the app's own files but leaves your documents alone.
Common Mistakes
- Using a normal Command Prompt. Most error 5 reports come from running commands in a non-elevated window. Always open Command Prompt as administrator first.
- Giving Full control to Everyone. This weakens security for every account on the PC. Grant permissions only to the specific account or group that needs them.
- Changing permissions on the whole drive. Editing the root of C: or a system folder can break Windows. Target only the folder named in the error.
- Ignoring the account type. If you are signed in as a standard user, no amount of right-clicking will let you approve elevation. Switch accounts first.
- Leaving antivirus disabled. Turning protection off to test is fine; forgetting to turn it back on is not. Add an exclusion instead.
Tips
- Read the full error text. Error 5 often appears with the exact path or service name, which tells you where to look.
- Keep a note of any permission change you make so you can undo it if something else breaks.
- If the error appears only in one app, suspect that app's install or its own settings before changing Windows permissions.
- Use an administrator account for setup tasks, then return to your normal account for daily use.
- Keep Windows and your apps updated through Settings > Windows Update; updates occasionally fix permission-related bugs.
Troubleshooting
If running as administrator does not help, check whether the folder is on a network drive or a synced cloud folder. Those locations can be controlled by another account or by the sync service, so local permission changes may not apply. Open the folder through its own app or sign in with the account that owns it.
If the error mentions a specific service, open Services, right-click the service, and check Properties > Log On. A service set to log on as a restricted account may fail to start. Changing that setting affects how the service runs, so note the original value before altering it.
If the problem started after a Windows update or a new security tool, use Settings > System > Recovery to check for rollback options, and review what changed recently. If the error affects a work PC, contact your IT administrator before changing permissions; group policy may override your edits.
If nothing works, create a new administrator account, sign in with it, and repeat the action. If it succeeds there, the original account's profile is the problem, and you can copy your files across rather than fighting the permissions.
Frequently Asked Questions
What does system error 5 actually mean?
It is Windows' access-denied message: the action was blocked because the account or program does not have the permission it needs. It is a permissions issue, not a sign of a damaged PC.
Is error 5 dangerous?
No. It is a protective response. The risk comes from fixing it badly, such as granting Full control to Everyone or disabling security software permanently.
Why does error 5 appear only in Command Prompt?
Because the window was opened without administrator rights. Close it, reopen Command Prompt with Run as administrator, and retry the command.
Can a standard user fix error 5 alone?
Not for actions that require elevation. A standard account needs an administrator to approve the change or to promote the account.
Will reinstalling Windows fix it?
It usually is not necessary. Try elevation, permissions, account type, and app repair first; a reset is a last resort because it removes apps and settings.
Does error 5 affect files or data?
No. The blocked action simply did not happen. Nothing is deleted by the error itself, though a failed write may leave a partial file you should check.