"run as administrator" in standard user account

2

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.

7wp

Posted 2009-09-14T18:42:50.800

Reputation: 1 410

Which version of Windows? – None – 2009-09-14T18:47:47.110

one of the tags was Vista, so I assume that – Phoshi – 2009-09-14T18:48:19.010

Are you connected to a work domain or is it just a standalone computer? – Kez – 2009-09-14T18:51:05.027

Answers

0

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

Posted 2009-09-14T18:42:50.800

Reputation: 1 410

4

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

Chris Thompson

Posted 2009-09-14T18:42:50.800

Reputation: 433

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 – 2009-09-15T03:11:20.283

2

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

swatkat

Posted 2009-09-14T18:42:50.800

Reputation: 549

0

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!)

William Hilsum

Posted 2009-09-14T18:42:50.800

Reputation: 111 572

The /profile switch can be added if the user profile needs to impersonated as well. Check this link: http://support.microsoft.com/default.aspx?scid=kb%3BEN-US%3BQ254094

– swatkat – 2009-09-14T18:53:40.810

0

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.

djangofan

Posted 2009-09-14T18:42:50.800

Reputation: 2 459

-1

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

Jan

Posted 2009-09-14T18:42:50.800

Reputation: 1