Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

how can I run command prompt as administrator from a standard user account? The "run as" does not appear to work, neither does the CTRL-SHIFT-ENTER trick. I think it is because I am logged in as a standard privilaged account. Is it possoible to "run as administrator" from this type of a restricted account? I have the administrator password, I just need to be prompted somehow.

share|improve this question
    
Which version of Windows? –  user3463 Sep 14 '09 at 18:47
    
one of the tags was Vista, so I assume that –  Phoshi Sep 14 '09 at 18:48
    
Are you connected to a work domain or is it just a standalone computer? –  Kez Sep 14 '09 at 18:51
add comment

6 Answers

up vote 0 down vote accepted

I figured out that the reason it was not prompting me for the password was because I had all of the other administrator accounts deactivated... so I just had to activate one of the administrator accounts using net user admin /active:yes

share|improve this answer
add comment

Maybe UAC is turned off, had it on a W7 pc. Take a look at RunasSpc (www.robotronic.de) if you want a limited user run a program/installer with adminrights without him/her knowing the password. Works for me fabulous with Ninite installer (ninite.com) on XP and W7

share|improve this answer
add comment

If you type

cmd

into the search box after clickining on the Windows Orb, right click on the program and select

Run as Administrator

It will prompt you for the admin password and then start the command processor as admin and in the c:\windows\system32 directory

share|improve this answer
    
Actually I figured out that the reason it was not prompting me for the password was because I had all of the other administrator accounts deactivated... so I just had to activate one of the administrator accounts using net user admin /active:yes –  7wp Sep 15 '09 at 3:11
add comment

If you are using Windows XP/2000, then check whether "Run As" or "Secondary Logon" services are started in your system. See this page for more info:
http://support.microsoft.com/kb/294676

If you are using Windows Vista and if "Run As" does not seem to work, then you can try an app called "ShellRunas":
http://technet.microsoft.com/en-us/sysinternals/cc300361.aspx

share|improve this answer
add comment

If you right-click on the command prompt icon in windows the second item in the right-click-menu is "Run as.." Its easier than doing it from the command line as the previous answer suggests.

share|improve this answer
add comment

I don't know why it isn't there, but I have not used that feature since XP so not sure if that is an error or on purpose.

If I was you, I would do the following:

  1. Open Notepad
  2. Paste the following:

    runas /user:administrator cmd
    
  3. Save this is on your desktop as anything with the extension of .cmd or .bat

  4. Run this and you should be able to start command prompt as the user, after typing the password.

(assuming user Administrator, change to whatever name you need!)

share|improve this answer
    
The /profile switch can be added if the user profile needs to impersonated as well. Check this link: support.microsoft.com/default.aspx?scid=kb;EN-US;Q254094 –  swatkat Sep 14 '09 at 18:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.