≡ Menu

How to open elevated command window

Below is the procedure to open elevated administrator command window on a Vista or Windows 7 machine.

  • Click on Start button
  • Search for command program by typing cmd.exe in the search box.
  • Right click on the cmd.exe entry shown under the Programs in start menu
  • Select ‘Run as administrator’
  • Click on ‘continue’ if user account control asks for confirmation.

The above steps will open a command prompt wvith elevated privileges.

{ 8 comments… add one }
  • lil dome August 15, 2011, 4:25 pm

    so how would you create an administrative account though prompt command if your doing it though a user that isnt under administrative privileges is there any way around putting or be asked for administrators password on windows vista ofcourse

  • Nat February 22, 2013, 3:49 pm

    I accidentally deleted my admin account and I’m trying to follow the instructions above, as well as the runas command (to which I get the error 1327: Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.)
    When I try to “run as administrator,” I am not given the option to select “continue,” thus I cannot open a command prompt with elevated privileges. The window that opens looks like it has a Norton Anti-Virus shield and says “User Account Control.” It says to enter the Admin password- but there is no area to put it in, and the only available option is “cancel.”
    Help?

  • Leo January 19, 2014, 7:46 pm

    So i accedently deleted my administrator account, and since my guest account was the only other one avaiable it became the administrator. Since I don’t have all administrator privileges in this account I am trying to create a new one and make it administrator using the elevated command window (because if I restore to a previous point in my sytem i will loose severall valuable files) but, although i right click on “cmd.exe” and then click “run as administrator” and click continue successfully, when i create my user account with the command “net user username password /ADD” it still gives me this message: “System error 5 ocurred.”, wich means i don’t have the priveleges to execute this command altough I (supposedly) am running it in the elevated command window.
    Can anyone help me with this?

    • Alex August 15, 2014, 3:21 am

      Restart computer ant pres F8. Run with CMD prompt line.

      Type this 2 commands
      net user username password /ADD
      net localgroup administrators username /ADD

      good luck

  • Divin August 31, 2014, 6:40 am

    Hello,
    I accidentally deleted my administrator account. Is there any other way to get it back than resetting my whole computer.
    Thanks

  • ronald December 6, 2015, 7:54 pm

    hi i recently deleted my admin account and i had no back up account like guest…so when my laptop turn off i was denied access…what should i do

  • InFoNation March 14, 2016, 3:21 pm

    Restart PC, when it says: start windows normally, Press Ctrl+alt+del and repeat this until you get the message: Your PC did not start, do you wish to run Startup repair? Press “yes or enter” and wait, (You do not want to repair with SYSTEM RESTORE ‘Press cancel when this pops up’) Once STARTUP REPAIR is finished, press details, scroll down and open the .txt document, then you go into the C: Drive (LocalDisc) and find Windows>System32> sethc (Rename Sethc to anything EG:seth(1)) then find a file labeled Cmd and change this to sethc, now press cancel, finish, and restart, you can now Press Shift 5 times and instead of opening sticky keys, it will open an elevated command prompt, you can add yourself as an admin and enable / disable the Default admin acc if you wish. Have fun 😀

Leave a Comment