Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Elevated Program Shortcut - Create for Standard User

 

Elevated Program Shortcut - Create for Standard User

How to Create a Elevated Program Shortcut a Standard User is able to Run in Windows 7
Published by Brink
10-25-2011
Default Elevated Program Shortcut - Create for Standard User

How to Create a Elevated Program Shortcut a Standard User is able to Run in Windows 7

information   Information
This will show you the administrator how to create a elevated program shortcut that allows a standard user or any user account to be able to run a program that runs as administrator without being prompted to enter the administator's password each time in Windows 7.

Note   Note
Thank you to our member Onikuro for pointing out this option in his post here.

warning   Warning
You will not be able to do this in Windows 7 Home Basic and Starter editions since they do not support the runas /savecred switch option.




Here's How:
1. If you have not already, enable the built-in "Administrator" account, and create a password for it.
NOTE: You must use the actual built-in Adminstrator account, and not just another administrator type user account. If you don't the shortcut will now work.

2. Log in to the built-in Administrator account, right click on a empty space on the desktop, and click on New and Shortcut.

3. Type the location below into the location area, and click on the Next button. (see screenshot below)
Elevated Program Shortcut - Create for Standard User-step1.jpg
Note   Note
  • You would substitute ComputerName in the command below with the actual computer name.
  • The default user account name of the built-in Administrator account is Administrator unless manually changed. If it was changed, then you would also need to change the Administrator name in the location below as well.
  • You would substitute Full path to program's exe file in the command below with the actual full path of the elevated program's exe file within quotes that you want to have the standard user be able to run.

Code:
runas /user:ComputerName\Administrator /savecred "Full path to program's exe file"
For example: I would like to have a standard user to be able to run CCleaner without me or them having to enter the Administrator's account password each time. For this, I would type this:
Code:
runas /user:Brink-PC\Administrator /savecred "C:\Program Files\CCleaner\CCleaner.exe"

3. Type in the name of the program (ex: CCleaner), and click on the Finish button. (see screenshot below)
Elevated Program Shortcut - Create for Standard User-step2.jpg
4. Right click on the new shortcut, click on Properties, Shortcut tab, and on the Change Icon button. (see screenshot below)
Elevated Program Shortcut - Create for Standard User-step3.jpg
5. Click on OK. (see screenshot below)
Elevated Program Shortcut - Create for Standard User-step4.jpg
6. Click on the Browse button, navigate to the location of the program's (ex: CCleaner) exe file, click on Open, select the program's icon, and click on OK. (see screenshots below)
Elevated Program Shortcut - Create for Standard User-step5a.jpgElevated Program Shortcut - Create for Standard User-step5b.jpg
7. Click on OK. (see screenshot below)
Elevated Program Shortcut - Create for Standard User-step6.jpg
8. Make copies of the shortcut to the desktop of any user account (ex: standard user) that you would like to be able to run a elevated program without getting a UAC prompt or having to provide the administrator's password.

9. Log on to any user account that you made a copy of the shortcut to, and run the shortcut.

10. In the command prompt that opened, type in your built-in Administrator account's password and press Enter. You will not see the password while you are typing it in. (see screenshot below)
NOTE: You will only have to enter the Administrator's password for only the first time that this shortcut is ran in a user's account. Afterwards, it will be remembered and entered automatically for the user when they run it without anyone being able to see the password.
Elevated Program Shortcut - Create for Standard User-step7.jpg
11. The user can now Pin to Taskbar or Pin to Start Menu this shortcut, assign a keyboard shortcut to it, or move it where they like for easy use in their user account.
That's it,
Shawn






Published by
Brink's Avatar
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 37,304

Tutorial Tools
10-26-2011   #1
sewordz


Windows 7 Ultimate x64
 
 


been waiting for this...
thanks Brink!

My System SpecsSystem Spec
10-26-2011   #2
Brink


Windows 7 Ultimate x64 SP1
 
 


You're most welcome Sewordz. Yeah, it's been a bit of a wait.
My System SpecsSystem Spec
11-07-2011   #3
JerometheGiraff


Windows7
 
 


I got to Step 8 then things grinned to a halt. When I run the short cut that is suppose to load up a command prompt in which to enter in the Admin password. Instead a command prompt loads and as soon as it loads, disappears.
My System SpecsSystem Spec
.


11-07-2011   #4
Brink


Windows 7 Ultimate x64 SP1
 
 


Hello Jerome,

Double check to see if you may have made any mistakes or typos.

Could you post the command that you used?
My System SpecsSystem Spec
11-08-2011   #5
JerometheGiraff


Windows7
 
 


Quote:
runas /user:ComputerName\AdministratorAccountName /savecred "Full path to program's exe file"
That was the command I use. If I created any spelling mistakes the short-cut wouldn't work.
My System SpecsSystem Spec
11-08-2011   #6
patronanejo


Windows 7 Ultimate x64
 
 


Quote   Quote: Originally Posted by JerometheGiraff View Post
Quote:
runas /user:ComputerName\AdministratorAccountName /savecred "Full path to program's exe file"
That was the command I use. If I created any spelling mistakes the short-cut wouldn't work.
Windows will often give you a clue when things go awry--you just have to keep the CLI open. Try creating a batch file that looks like:

runas /user:ComputerName\AdministratorAccountName /savecred "Full path to program's exe file"

pause
My System SpecsSystem Spec
11-08-2011   #7
Brink


Windows 7 Ultimate x64 SP1
 
 


Quote   Quote: Originally Posted by JerometheGiraff View Post
Quote:
runas /user:ComputerName\AdministratorAccountName /savecred "Full path to program's exe file"
That was the command I use. If I created any spelling mistakes the short-cut wouldn't work.
Doing what Patronanejo posted above will allow the command prompt to stay open to see what if any error message that you are getting to help ID what the problem may be.

Did you substitute the items in that command example with your actual "Computer Name", "account name", and "exe path"?

Do you have any spaces in the account name or computer name?
My System SpecsSystem Spec
11-08-2011   #8
JerometheGiraff


Windows7
 
 


Quote:
Windows will often give you a clue when things go awry--you just have to keep the CLI open. Try creating a batch file that looks like:

runas /user:ComputerName\AdministratorAccountName /savecred "Full path to program's exe file"

pause
Here is the results from the batch file.

Quote:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\<AccountName>>C:\Users\<AccountName>\Desktop\programadmin.bat

C:\Users\<AccountName>>C:\Windows\System32\runas.exe /user: <AccountName>-PC\<account name>
er_Admin /savecred "C:\SpaceSn
RUNAS USAGE:

RUNAS [ [/noprofile | /profile] [/env] [/savecred | /netonly] ]
/user:<UserName> program

RUNAS [ [/noprofile | /profile] [/env] [/savecred] ]
/smartcard [/user:<UserName>] program

RUNAS /trustlevel:<TrustLevel> program

/noprofile specifies that the user's profile should not be loaded.
This causes the application to load more quickly, but
can cause some applications to malfunction.
/profile specifies that the user's profile should be loaded.
This is the default.
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote
access only.
/savecred to use credentials previously saved by the user.
This option is not available on Windows 7 Home or Windows 7
Starter Editions
and will be ignored.
/smartcard use if the credentials are to be supplied from a
smartcard.
/user <UserName> should be in form USER@DOMAIN or DOMAIN\USER
/showtrustlevels displays the trust levels that can be used as arguments
to /trustlevel.
/trustlevel <Level> should be one of levels enumerated
in /showtrustlevels.
program command line for EXE. See below for examples

Examples:
> runas /noprofile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""

NOTE: Enter user's password only when prompted.
NOTE: /profile is not compatible with /netonly.
NOTE: /savecred is not compatible with /smartcard.

C:\Users\<AccountName>>
Quote:
Did you substitute the items in that command example with your actual "Computer Name", "account name", and "exe path"?
Yes.

Quote:
Do you have any spaces in the account name or computer name?
No.
My System SpecsSystem Spec
11-08-2011   #9
Brink


Windows 7 Ultimate x64 SP1
 
 


Code:
runas.exe /user: <AccountName>-PC\<account name> er_Admin /savecred "C:\SpaceSn
If that is what you used at step 2, then that is the cause. It should be like this instead. The program you wanted to run needs to be the full path and include it's file extention within quotes.

Code:
runas.exe /user:<computer name>\<account name> /savecred "C:\SpaceSn.exe"
My System SpecsSystem Spec
Comment

 Elevated Program Shortcut - Create for Standard User problems?



Tutorial Tools



Similar Threads for: Elevated Program Shortcut - Create for Standard User
Windows 7 Tutorial Category
Elevated Program Shortcut without UAC Prompt - Create Tutorials
elevated task scheduler shortcut for standard user General Discussion
Run as Different User Shortcut - Create for Specified Program and User Tutorials
Solved Question on "How to Create a Elevated Program Shortcut ..." System Security
How to run a program elevated at startup in a standard account System Security


All times are GMT -5. The time now is 01:40 AM.



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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30