Advertisement
Computer

System Error 5 “Access Denied” in Windows: How to Fix It?

System error 5 means a command lacks rights. Open the console as administrator, check the account, then handle network shares and services.

Updated 6 min read

Laptop, padlock and key showing blocked access to unlock in Windows
Table of contents
  1. Common symptoms and causes of system error 5 access denied
  2. Before you start
  3. Solution 1: open the console as administrator
  4. Solution 2: change the account type
  5. Solution 3: fix net use error 5 on a network share
  6. Solution 4: net stop or sc says access denied on a service
  7. Solution 5: allow a local administrator account remotely
  8. If nothing works
  9. Protect your data before changing Windows: our selection
  10. Frequently asked questions
    1. What does system error 5 mean?
    2. How do you open the command prompt as administrator?
    3. Why does net use say access denied?
    4. Should you turn off User Account Control?

Updated on November 1, 2026

This article contains affiliate links: if you buy through them, Wanda-techs earns a commission at no extra cost to you.

Advertisement

System error 5 access denied appears when a command asks for rights your session does not have. The likely cause is a console opened without administrator rights, even on an administrator account. Allow about 15 minutes to try the solutions.

Common symptoms and causes of system error 5 access denied

  • The message “System error 5 has occurred. Access is denied.” appears after net use, net stop, net start, net user or sc.
  • The console is not opened as administrator, even on an administrator account.
  • On a network share: wrong credentials, insufficient permissions, or remote filtering of local accounts.

None of the official pages we checked covers net stop or sc in detail: the link with missing rights remains a general explanation.

Before you start

You need Windows 10 or Windows 11, and an administrator account or its password. For a network share, also note the server name, the share name and a valid account on that server.

Warning: Solution 5 edits the Registry, the database of Windows settings. Back it up first, as Microsoft asks: a mistake there can wipe out settings. This change also lowers the PC’s protection against remote attacks.

Warning: stopping a service can lose the unsaved data of the programs that use it. Save your work first.

Good to know: the old advice to turn off your antivirus or use compatibility mode has no official source. Leave the antivirus running.

Advertisement

Solution 1: open the console as administrator

Try this first, whichever command is mentioned above. It is the most likely case.

  1. Right-click the Windows Terminal icon.
  2. Right-click the Windows Terminal title in the menu that appears.
  3. Click Run as administrator.
  4. Type your command again in this new window.

Expected result: the command runs without error 5. If Windows asks for an administrator password, enter it to continue.

refresh-199998-1-1024x576 System Error 5 "Access Denied" in Windows: How to Fix It?
Type the command again in a console launched as administrator.

Another way: press Win + X, then choose the Windows Terminal entry marked as administrator, whose exact label may vary. Users also report that you can type cmd in the Start menu search, then choose Run as administrator.

Tip: a single Terminal window does not mix normal tabs and administrator tabs. Open a dedicated window for your administration commands.

Solution 2: change the account type

Without an administrator account, Solution 1 fails. This change of type is made from an account that is already an administrator. The Settings route replaces the old Control Panel path here, which we could not check against an official page.

  1. Sign in with an administrator account.
  2. Open Settings > Accounts > Other users.
  3. Open the (…) menu of the account concerned.
  4. Click Account options.
  5. Click Change account type.
  6. Choose the Administrator type.
  7. Confirm with OK.

Expected result: this account can open a console as administrator and run the command.

Advertisement

Tip: the ms-settings:otherusers shortcut leads to the same page. Microsoft advises keeping few administrator accounts: reserve this type for the people who need it.

Missing the administrator password? See our guide to reset a forgotten Windows 11 password.

Solution 3: fix net use error 5 on a network share

net use links a drive letter to a shared folder. A disconnection fails if the share is in use. Close the files open on it first.

  1. Type net use to list the current connections.
  2. Remove the connection concerned with net use X: /delete, replacing X: with its drive letter.
  3. Type net use X: \\server\share /user:domain\user * with a valid account on the server (* prompts for the password without showing it).
  4. Type net use again to check the list.

Expected result: the X: drive appears in the list of connections.

Tip: put quotation marks around a name that contains spaces. Without a domain, give only the user name.

Users report that an open connection to the same server with other credentials can block the new one. Hence the first two steps.

The same sources point to two levels of rights that can deny access: share permissions and NTFS permissions, those of the file system. If the error persists, ask whoever manages the server to check both.

Good to know: /persistent:yes restores the connection and /savecred stores the credentials. This syntax comes from an archived Microsoft page written for Windows 7, Windows 8 and Windows Server 2012: we could not compare it with the current page.

Solution 4: net stop or sc says access denied on a service

Users report that net stop, sc stop and sc config require a console opened as administrator. The Services graphical tool offers another route.

Warning: the next step stops a service. Save your work, because unsaved data in the programs concerned may be lost.

  1. Open the console as administrator, as in Solution 1.
  2. Type net stop ServiceName, replacing ServiceName with the name of the service.
  3. If the error persists, open the Windows Services tool.
  4. Stop or start the service from that tool.

Expected result: the service changes state and error 5 no longer appears.

Solution 5: allow a local administrator account remotely

This specific case affects a local administrator account, created on the PC and not in a domain, that connects to an administrative share (net use \\pc\share$). Windows then gives it a filtered token, meaning reduced rights, with no administration tasks possible. A domain administrator receives a full token and is not affected.

Microsoft documents this setting on a page written for Windows Vista. Move to this solution only if the previous ones have failed.

Warning: the next step edits the Registry and lowers the PC’s protection against remote attacks. Back it up first. A wrong change can wipe out settings.

  1. Back up the Registry of the PC that hosts the share.
  2. Open regedit on that PC.
  3. Go to the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
  4. Create or open the DWORD value LocalAccountTokenFilterPolicy.
  5. Set it to 1.
refresh-199998-2-1024x576 System Error 5 "Access Denied" in Windows: How to Fix It?
This Registry setting lowers the PC's protection against remote attacks.

Expected result: the local account receives an elevated token and the connection to the administrative share succeeds. The value 0, the default, restores the filtering.

If nothing works

Stop if the PC is managed by a company or a school. Policies there may block these commands, and only the administrator can lift them: contact the IT department.

The same goes if you have no administrator rights or password: ask the PC’s administrator. In other cases, post your question on Microsoft Q&A, Microsoft’s community help forum.

Have ready the Windows version, the exact command, the full message, the type of account used and, for a share, the server name. If the PC no longer starts after an update, the problem is different: see our guide on a PC stuck at startup after a Windows 11 update.

Protect your data before changing Windows: our selection

A backup on an external drive and a security key keep your files and accounts safe before you change permissions or the Registry.

  • SanDisk Ultra Dual Drive Go 128 GB, USB-C and USB-A flash driveUSB key with two connectors, for a computer or a phone. Handy for carrying files or a software update.AmazonSee at Amazon
  • 71qjKjVpV1L._AC_SL1500_-300x291 System Error 5 "Access Denied" in Windows: How to Fix It?Samsung T7 1 TB external SSDFast, rugged pocket SSD to keep an offline copy of your site files and database at home. Unplugged, it is out of an attacker's reach.AmazonSee at Amazon
  • 41jQHgsF69L._AC_SL1000_-205x300 System Error 5 "Access Denied" in Windows: How to Fix It?WD Elements 4 TB external hard driveStores a full copy of your files and settings before a risky operation such as a network reset or a system update. Connects by USB with no extra power supply.AmazonSee at Amazon
  • 41T0zUwiOcL._AC_SL1000_-254x300 System Error 5 "Access Denied" in Windows: How to Fix It?Yubico YubiKey 5 NFC, security keyPhysical key that confirms a sign-in to your Google account over NFC or USB. Protects the account that synchronises your contacts.AmazonSee at Amazon

Frequently asked questions

What does system error 5 mean?

It means access is denied: the command needs rights your session does not have. An administrator account can hit it if its console is not opened as administrator.

How do you open the command prompt as administrator?

Right-click the Windows Terminal icon, then its title, and choose Run as administrator. Users report that searching for cmd in the Start menu offers the same option.

Why does net use say access denied?

The account used probably lacks the required rights on the share. Check the credentials with /user:, then the share and NTFS permissions. For a local administrator account reaching an administrative share, see Solution 5 as well.

Should you turn off User Account Control?

No. Microsoft advises against the Never notify level for security reasons. User Account Control (UAC) keeps running: it approves administrators’ elevations without asking and refuses those of standard accounts. This setting therefore does not fix the error, and turning UAC off completely can break some applications.

Share this content:

Leave a Reply

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