Using RUNAS command to gain Admin access when logged on as limited user

You can temporarily logon as an Administrator without having to logoff or switch user.

From command prompt use the following command:

C:WINDOWSsystem32runas.exe /user:yourdomainyouradminuser “cmd.exe /k cd C: && color 0e && title ***** Admin console ***** && CLS”

I like to put this in a batch file and then create a shortcut to it on my desktop.

Once run you will be prompted for the admin users password.

Once entered you will get a Yellow C: prompt – you now have admin privileges and can run programmes as an admin user e.g. type Explorer to run Windows Explorer.

Of course you can create batch files to open specific programmes:

runas /user:yourdomainyouradminuser “regedit”

Would prompt you for password and then open the registry editor as admin user.

You may find that this appears to work but you still do not have admin rights. In this case edit the registry as follows:




You will need to be properly logged on as admin user to achieve this registry change.

Author: James

IT Manager - Network, Web coding, MS SQL and Online Mapping expert

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: