Net User administrator active:yes command not working

Problem: Setting up a new image for a computer for a client, I attempted to reinstate the administrator user by using the “net user administrator active:yes” command.   Instead of the command completing successfully, I got the following error:

“System error 5 has occurred.  Access Denied”


Solution:  Turns out I forgot to enter into the command prompt as administrator.  Once I did that the command completed successfully.

Leave a comment

Your email address will not be published.