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:

HK_CLASSES_ROOTAppID{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}RunAs

to

HK_CLASSES_ROOTAppID{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}_RunAs

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

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s