• 23,071
  • +966
  • 2,619
How to Add User With Administrator Rights Using Command Prompt

How to Add User With Administrator Rights Using Command Prompt


Type : Tips and Trick

Level : Easy

Today actually I just finished my exam… Chinese exam was absolutely very hard mate, because you need to know and read the characters πŸ™‚

Okay just forget about my exam, today I just want to share a simple tips and trick for today, about "How to Add User With Administrator Rights Using Command Prompt". If you follow this tips and trick, maybe it will not exceed 1 minute, even for some of you can do it in less than 30 second πŸ˜›

Ah I also just want to inform you that in next 2 articles(just wait for the update), I will post a tips and trick and also hacking tutorial about Remote Desktop (for some of you who don’t familiar with console, you will love it πŸ™‚ )

Subscribe Now To Get The Update for Remote Desktop Hacking

This tips and trick will add a user with administrative rights, you will need it when you owned a system to add a user there.

Okay lets start it.

Requirement :

1. Command Prompt [or] shell you got from a compromised system

Step by Step :

1. Open your command prompt and type this command :

net user /add v4L 12345

The command above will add user name v4L with password 12345. If you just add until this step, you just add user with limited privilege.

2. The next step, we continue to add another command :

net localgroup administrators v4L /add

Now in this 2nd step, we add our user v4L to administrators group. Now this user already has an administrative rights.

3. We move again to the last 3rd step, now lets type again another command :

net share concfg*C:\/grant:v4L,full


net share SHARE_NAME=c:\ /grant:v4L,full

The command above will grant user name v4L will full grant, that’s mean v4L can do everything on the system including see other users file πŸ™‚

Hope it useful m8 πŸ™‚

Update: 5 Steps to disable or enable administrator role using command prompt

Share this article if you found this post was useful:

Blogger at hacking-tutorial.com. Love PHP, offensive security and web. Contact him at me[-at-]vishnuvalentino.com

See all posts by || Visit Website : http://www.vishnuvalentino.com

  • Neutron_Kaos

    Do you need to already have admin privileges to do this?

    • v4L

      Yes you need it, you also can use this method while successfully compromise a system(you can view my other hacking tutorial how to make it)

      • john laptops

        everything working fine with 1 single exception,my problem is about How
        to set”Password never expires”?I use this command ” /expires:never
        ”, and when i check i see that the ”User/general/Password never
        exprires” ,small square is not checked

  • Joseph

    Which tutorial is it?

  • Silentmjrt

    Hello Vishnu

    firstly, I’d like to show my appreciation for the tutorials you publish here, they are a useful guide in my attempts to master control of my computer.

    I would like to ask a question regarding the 3rd line in the step by step…
    the first two complete with no issue, the 3rd always takes me to a help list for syntax correction.
    maybe I’m the only one encountering this problem, but it is frustrating nonetheless.

    • v4L

      hmm…when I add that script from backtrack it’s okay without error..
      maybe you can give a try to escalate your privilege to system

      • Silentmjrt

        maybe the fact i’m attempting this on windows 7 is the cause of the last line giving an error.

        The first two lines add the account and enables administrator title. due to the error of the resulting error on last line I felt it incomplete.

        • Anonomus

          Look at the cacls command, It can give a user access to files in the computer.

  • Pingback: Habilitando Remote Desktop da vitima pelo metasploit | Mundo TecnolΓ³gico()

  • Access denied ?

    • v4L



  • Ty

    System error 5 has occured

    Access is denied

    • v4L


      you need to do this from administrator or system privilege

  • Badre Alam

    Thank,s for give me this step

  • Pingback: How to grant privileges to user by command line win « Peter Flimel - PC servis()

  • alexial

    whats the command to remove admin privileges

    • v4L


      view here: http://www./tips-and-trick/5-steps-to-disable-or-enable-administrator-using-command-prompt/

  • Ali

    Nice post.very informative blog…. πŸ™‚
    actually i recently installed Backtrack5 r2 and windows 8 (dual boot) in my Laptop.there is a key on keyboard that indicates the wi-fi is ON or OFF.And it does work on Windows 8 and i use wi fi but in Backtrack wi fi signals is not detected and keyboard hot key always shows it is OFF(Red light).
    i spent a lot of time on searching but i couldn’t find out the solution.
    I need your help….. : (

    • v4L


      you need to find your wi-fi driver, most hotkey not work on linux(only some types of laptop can work). If the manufacturer release application to make the hotkey work for linux, then you can use it, but if not, you can download the driver and use the wi-fi manually without hotkey.

  • sheraz

    Dear all,

    i want to hack a computer its remote access is active but i have not user name and password please tell me how i hack it.

  • sheraz

    Dear v4L
    I want to hack a computer its remote access is active but i have not user name and password please tell me how i hack it.

    • v4L


      only if the target is vulnerable. you must do assessment

      • sheaz

        He is my friend. Some days ago he have hack my system.

  • Hacking_Hacker_From_Hackersville

    When i followed the steps that u described and its not letting me give v4l full administrative access. Any help?

    • v4L


      to run the command you must have administrator role.

  • Sly

    Thank You it works.


  • TheMic

    This is an excellent tool! What if you want to add a group on a domain? Say GROUP_NAMEABCWORK?


    System error 5
    Access is denied
    how do i do this if i dont have the right privaleges

    • harikrishna

      rum command prompt (run as administrator)

    • Carr7

      If you have no admin on your system, try to download a 32bit version of any linux, like ubuntu, backtrack or Kali_Linux and when you have the ISO file then you can put on a usb(format it to FAT32) with a pendrive software, or burn it directly to a DVD. After that, put it in the pc and boot from THAT medium (that usb/dvd that includes linux) and once booted up, go to the C: drive (might take you a while to know what your harddrive is…) and when you get to the folder C:windowssystem32 then you rename the file ‘ sethc.exe ‘ with the name ‘ sethc1.exe ‘ then you copy the cmd file (cmd.exe), and rename the copied file (in the same folder) ‘ sethc.exe ‘ once rebooted into windows, press 5x SHIFT, and there you go, you now have ‘system32 privileges’ BEFORE you are logged in.

  • jithin

    thanks dear

  • brett stehouwer

    run command prompt in administrator mode

    • john laptops

      wich is best method to hide a USER from Computer Management

  • Dat beast

    access denied and I cant run as administrator help

  • Harm

    Guys, unplug computer and start safe mode with command prompt. Instant admin!

  • Arjun Chandran

    A ton of Thanks man! You saved my day πŸ™

  • Luis Arce

    The last lines in step 3 sre not working. Just a heads up for future users. I am troubleshooting it now.