Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Run as Different User Shortcut - Create for Specified Program and User



Run as Different User Shortcut - Create for Specified Program and User

How to Create a Shortcut to Run a Program as a Specified User
Published by Brink
23 May 2011
Published by

How to Create a Shortcut to Run a Program as a Specified User


information   Information
This will show you how to create a Run as different user shortcut that will run a program specified by you as a specified user on the Windows 7 and Vista computer.

The user account that you want to run the program as must be password protected.

Note   Note
When you use the runas shortcut that you created below, you will be prompted to enter the user's password in a command prompt before the program will run as the specified user.


EXAMPLE: RUNAS command
NOTE: These are all of the different options available for the RUNAS command that you could also use with the command in step 2 below.
Name:  RUNAS.jpg
Views: 36992
Size:  159.7 KB
Here's How:


1. Right click on a empty area on desktop, and click on New and Shortcut.

2. Type either command below into the location area, and click on the Next button. (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.
(To have to enter credentials each time opened)

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"

OR

(To remember credentials after entered first time to automatically be entered afterwards)

runas /savecred /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 /savecred /user:test "C:\Windows\system32\notepad.exe"

Name:  Step1.jpg
Views: 35103
Size:  93.6 KB
3. Type in something like Program Name - Run as User for the name, and click on the Finish button. (see screenshot below)
NOTE: You can name this anything you would like though.
Name:  Step2.jpg
Views: 35483
Size:  71.5 KB
4. Right click on the new Program Name - Run as User shortcut on the Desktop and click on Properties.

5. Click on the Shortcut tab, then click on the Change Icon button. (see screenshot below)
Name:  Step3.jpg
Views: 35459
Size:  66.1 KB
6. Click on OK. (see screenshot below)
Name:  Step4.jpg
Views: 34708
Size:  24.3 KB
7. Click on Browse (see screenshot below step 8), navigate to the location of the EXE file (ex: notepad.exe) of the program, select it, and click on Open. (see screenshot below)
-step5.jpg
8. Select the program's icon, and click on OK. (see screenshot below)
Name:  Step6.jpg
Views: 34652
Size:  27.8 KB
9. Click on OK. (see screenshot below)
Name:  Step7.jpg
Views: 34832
Size:  64.6 KB
10. In Vista and Windows 7, you can now Pin to Taskbar (Windows 7 only) or Pin to Start Menu, add to Quick Launch, assign a keyboard shortcut to it, or move this shortcut to where you like for easy use.

11. In Windows 8, you can Pin to Taskbar on desktop, Pin to Start screen, add to Quick Launch, assign a keyboard shortcut to it, or move this shortcut to where you like for easy use.




That's it,
Shawn










Comment

 Run as Different User Shortcut - Create for Specified Program and User




Tutorial Tools



Similar help and support threads for2: Run as Different User Shortcut - Create for Specified Program and User
Windows 7 Tutorial Category
Elevated Program Shortcut - Create for Standard User Tutorials
Stored User Names and Passwords Shortcut - Create Tutorials
Switch User Shortcut - Create Tutorials
Backup User and System Files - Create Shortcut Tutorials
User Account Control Settings Shortcut - Create Tutorials
Advanced User Accounts Shortcut - Create Tutorials
User Accounts Shortcut - Create Tutorials

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:31 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App