How to fix ‘System error 5 has occurred.’

Windows restricts privileged commands to be executed only from elevated administrator command prompt. Even if you are an administrator on the PC, you may run into the error ‘System error 5 has occurred. Access is denied’.

C:\>net user techblogger /add
System error 5 has occurred.
Access is denied.

To fix the issue, open elevated command prompt and run the same command.

Advertisement

How to open elevated administrator command prompt

Now the command would run fine.

C:\Windows\system32>net user techblogger /add
The command completed successfully.
C:\Windows\system32>

There could be other cases where one runs into this error. If you have got this error, let us know what was the instance and how you could fix it.

22 thoughts on “How to fix ‘System error 5 has occurred.’”

  1. i dont remember the admin password and i tried to access it from the guest account ………..net user administrator …..and it says system error 5 occured what should i do

    Reply
  2. On win 7 (and others), this needs to be run under a elevated privs command prompt. You could right click and Run as administrator or open a command prompt in this way (run as..)
    Sometimes, even if you run it as admin, Windows will still prompt you with the error. You might need to log-in as admin or edit your account to have administrative privilege.
    https://www.errorsolutions.tech/error/system-error-5-has-occurred/
    Solution 1. Log-in as Administrator

    Reply
    • Am also facing issue in windows 10; any resolution you got even after running with privileged admin prompt

  3. I am trying to create a mapped drive on Windows 10 using following command

    mkdir “D:\ABC\
    Net Share ABC=D:\ABC /GRANT:Everyone,Full
    net use M: \\%ComputerName%\ABC

    I get : System error 5 has occurred. Access is denied

    My CMD is already in elevated mode as suggested by you. But when I launch CMD in normal mode the drive gets created and mapped properly.
    Facing this issue only on Windows 10 with CMD running as administrator

    Please help.

    Reply
  4. i need to stop windows updates service wuauserv and i keep getting access denied even with the elevated cmd any suggestions ????

    Reply
  5. Hi SRINI, you forget first to run CMD Command prompt as Administrator,
    Start>All Programes>Accessories> then Right-Click on Command Prompt> Run as administrator.

    Reply
  6. I have installed tacacs server in win10 .

    When tried to start service using powershell as below:
    net start tacacs.net

    getting below error:

    net : System error 5 has occurred.
    At line:1 char:1
    + net start tacacs.net
    + ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (System error 5 has occurred.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

    Access is denied.

    Reply
  7. Windows 10 fix for this error.
    Right click on the Task bar along the bottom and open Task Manager
    Click File, Run new task
    Type powershell and tick the box for Admin privs
    Run the command in the powershell window.

    Reply
    • I can’t access Task master, any ideas on what to do? I also can’t run as administrator bc I don’t know the password

  8. I was already in elevated command prompt. I was trying to create a mapped network drive but I get access denied in my computer screen.

    Reply

Leave a Comment