Wednesday, October 21, 2009

Executing programs with administrators rights without switching users

There is a simple way in executing programs using administrator rights without switching from the current login user to the administrator account. There's a powerful utility called runas that will allow you to do just that.

To open up a command prompt (example) using administrator rights, just do the following:
  1. Goto Start > Run
  2. Type runas /user:"mydomain\admin" "cmd"

Just type in the password for the account used in the "/user" field and that's it. You have opened up a command shell using the administrator account. You can replace cmd in the above example with any other command/program that you would want to execute.

Hope this is useful.

No comments:

Visit Rhinestic's Knick Knacks @ Etsy for handmade goods and supplies!

Related Posts Plugin for WordPress, Blogger...