August 27, 2006

Run exe file under other user in windows

by @ 7:43 pm. Filed under Uncategorized, Blogging, Micfo Web Hosting

Hello,

If you want to do some operation in OS windows under other user then you can use following steps..

  1. When logged in as a non-privileged user, browse to your system folder, usually C:\windows\
  2. Shift-right-click on any exe file for example click on “explorer.exe”.
  3. Select “Run As” and provide the credentials for the local admin account.
  4. A dialog box will pop-up asking you for a valid username and password. Enter one of a user that has the required administrative privileges to run and manage that program.
  5. If you give a wrong username or password an error will pop-up:
  6. If you gave a valid username and password then Explorer will open giving you the full permissions to manage it and any programs you run from within that window will run with admin privileges.

If you want to do that from the command prompt then do that by using following command
runas /user:computername\Administrator commandWhere computername is the name of your computer

username is the name of the user you’re trying to run the command as (e.g. Administrator). command is the command you’re trying to run (e.g. a batch file, an .exe file ).

For example:

C:\>runas /user:pro1\Administrator “explorer.exe”
Enter the password for pro1\Administrator:
Attempting to start explorer.exe as user “pro1\Administrator” …

Thats it no need to logout from current login and login with other user…

Enjoy…

Leave a Reply

You must be logged in to post a comment.

RESELLER HOSTING | DEDICATED SERVER | PREMIUM HOSTING | VPS HOSTING

Micfo Hosting

Micfo International LLC Leading the hosting Industry with Cheap and Affordable Linux Web Hosting Packages.

internal links:

categories:

archives:

Services:

Micfo Hosting

Micfo, delivering the best cpanel web hosting with maximum reliability is our exclusive focus.
Micfo International LLC

search blog:

TOP 10 POSTS:

Pages:

General Links:

Syndicate

other:

33 queries. 0.100 seconds