How to Run Program as a Different User in Windows 7 and Windows 8
Information
This will show you how to run a program as if it was running from a different user account on your computer while you are still logged on to your user account in Windows 7 and Windows 8.
Note
This will only affect this instance of the program running, so you can open multiple instances of this progam as a different user per instance. Closing the program will end that program's instance running for that user.
Warning
- The user account that you want to run the program as must be password protected.
- The Secondary Logon service needs to be set to Manual and not be disabled. By default, it is set to Manual unless changed.
OPTION ONE
To "Run as different user" using Context Menu
1. Press and hold the
Shift key and right click on the program's shortcut or BAT, CMD, EXE, MSC, or MSI file, then click/tap on
Run as different user. (See screenshot below)
2. Type in the
user name and
password of the user account that you want to run this program as. (see screenshot below)
NOTE: If the user account is on a domain, then you would use UserName@Domain or Domain\UserName for the user name instead.
3. If prompted by UAC, then click/tap on
Yes.
4. The program will now be running as that user.
5. When done, simply close the program to stop it from running as that user.
OPTION TWO
To "Run as different user" from Start Application Bar
NOTE: This option is only for Windows 8.
OPTION THREE
To "Run as different user" using RUNAS Command in Command Prompt
1. Open a
command prompt.
2. In the command prompt, type the command below, and press Enter. (see screenshot below)
NOTE: You would substitute USER-NAME in the command with the actual name of the user account that you want to run the program as. If the user account is on a domain, then you would use UserName@Domain or Domain\UserName for the user name instead.
runas /user:USER-NAME "C:\full\path\of\Program.exe"
For example, if I wanted to run Notepad as the
test user, I would type this command below.
runas /user:test "C:\Windows\system32\notepad.exe"
3. Type in the
password of the user account that you want to run this program as. (see screenshot above)
4. If prompted by UAC, then click/tap on
Yes.
5. The program will now be running as that user.
6. When done, simply close the program to stop it from running as that user.
Tip
To Create a RunAs Shortcut for the Program
OR
- Open Notepad.
- Type the command from step 2 above in Notepad.
- Click on File (menu bar) and Save as in Notepad.
- Navigate to your desktop.
- Type in name-you-want.bat, and click on the Save button.
You will now be able to just run this
shortcut or
.bat file to have the program runas the user you want.
That's it,
Shawn