|
 |
|
How to Create an Elevated Program Shortcut Any User is able to Run in Vista, Windows 7, and Windows 8
Published by Brink
25 Oct 2011
|
 Published by |
|
How to Create an Elevated Program Shortcut Any User is able to Run in Vista, Windows 7, and Windows 8
 Information
This will show you how to create an elevated program shortcut that allows any user (ex: Standard user) to be able to run a program that runs as administrator without being prompted to enter the administator's password each time in Vista, Windows 7, and Windows 8.
 Note
If the user you want to have this shortcut has been restricted with Parental Controls in Windows 7 with it set as Standard Account can only use the programs I allow, then they will not be able to use the shortcut in this tutorial since they will not be allowed to use the runas.exe file used by this shortcut. Windows 7 will not allow runas.exe to be added to the allowed to run list.
If the user you want to have this shortcut has been restricted with Family Safety in Windows 8 with it set as (user) can only use the apps I allow, then they will not be able to use the shortcut in this tutorial since they will not be allowed to use the runas.exe file used by this shortcut. Windows 8 will not allow runas.exe to be added to the allowed to run list.
You will not be able to do this in Vista Starter, Vista Home Basic, Vista Home Premium, Windows 7 Home Basic, and Windows 7 Starter editions since the runas /savecred switch option is not available and will be ignored in them.
If you disable the built-in Administrator account, the elevated shortcut will stop working until you enable the built-in Administrator again. This is because the elevated shortcut uses the password of the built-in Administrator to approve running it.
 OPTION ONE 
To Create Elevated Shortcut for User using RunasSPC Program
1. Download the free RunasSPC program in a .zip file at the site below.
2. The link below can help show you how to use the program.Runas Spc guidance and examples

 OPTION TWO 
To Create Elevated Shortcut for User using runas Command
 Tip
This option uses the runas command included in Windows.
The Administrator's password (credential) used by the elevated shortcut is encrypted and stored in the Credential Manager ( Control Panel (icons view)) as an "interactive logon" entry under Windows Credentials for only that user account like below.
The Administrator account's password cannot be viewed.
If you like, you can Remove (delete) this credential at anytime in Credential Manager to strip the password from the elevated shortcut to make it ask for the password again when opened like in step 18 below.
 Warning
This elevated shortcut creates a security hole.
It would be best to only do this with a trusted user.
Once you have created the elevated shortcut, the user can use the built-in Administrator's saved credentials in Credential Manager along with the command below to run and access anything they want on the computer with the same rights as the built-in Administrator.
RUNAS /savecred /user:administrator "command to run"
1. If you have not already, enable the built-in elevated "Administrator" account, and create a password for it.
 Warning
You must use the actual built-in Administrator account, and not just another administrator type user account. If you don't the shortcut will not work.
2. Log in to the built-in Administrator account, right click or press and hold on an empty space on the desktop, and click/tap on New and Shortcut.
3. Type the location below into the location area, and click/tap on the Next button. (see screenshot below)
 Note
- You would substitute ComputerName in the command below with the actual computer name.
- If the Administrator account has been renamed, then you would also need to substitute Administrator in the command below with the new name.
- 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/tap on the Finish button. (see screenshot below)
4. Right click or press and hold on the new shortcut, click/tap on Properties, Shortcut tab, and on the Change Icon button. (see screenshot below)
5. Click/tap on OK. (see screenshot below)
6. Click/tap 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/tap on OK. (see screenshots below)

7. Click/tap on OK. (see screenshot below)
8. While still logged in to the "Administrator" account, copy the shortcut to the desktop folder of the user account (ex: Test) that you would like to be able to run this elevated program without getting a UAC prompt or having to provide the administrator's password for it.
9. Right click or swipe down on the shortcut on the user's desktop that you just copied to, and click/tap on Properties. (see screenshot above)
10. Click/tap on the Security tab, and Advanced button. (see screenshot below)
11. Select the user account (ex: Test) that the elevated shortcut is for, and click/tap on the Disable inheritance button. (see screenshot below)
12. Click/tap on Convert inherited permissions into explicit permissions on this object. (see screenshot below)
13. Select the user account (ex: Test), and click/tap on the Edit button. (see screenshot below)
14. Make sure that only the Read & execute and Read "Allow" permissions are checked, and click/tap on OK. (see screenshot below)
NOTE: This will prevent the user (ex: Test) from being able to change the target of the elevated shortcut, and only be able to run the program the elevated shortcut was created to run.
15. Click/tap on OK. (see screenshot below)
16. Click/tap on OK. (see screenshot below)
17. Log on to the user account (ex: Test) that you made a copy of this shortcut to, and run the shortcut.
18. 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 the user account (ex: Test). Afterwards, it will be remembered and entered automatically for the user when they run it without anyone being able to see the password.
19. In Vista and Windows 7, the user 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.
20. In Windows 8 and 8.1, the user 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
|
|
|
26 Oct 2011
|
#1
|
|
been waiting for this...
thanks Brink!
|
My System Specs |
|
System Manufacturer/Model Number Asus
OS Windows 7 Ultimate x64
CPU Asus
Motherboard Asus
26 Oct 2011
|
#2
|
|
You're most welcome Sewordz. Yeah, it's been a bit of a wait. :)
|
My System Specs |
|
Computer type PC/Desktop
System Manufacturer/Model Number Self built custom
OS 64-bit Windows 10 Pro
CPU Intel i7-8700K OC'd to 5 GHz
Motherboard ASUS ROG Maximus XI Formula Z390
Memory 16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
Graphics Card ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card Integrated
Monitor(s) Displays 3 x 27" Asus VE278Q
Screen Resolution 1920x1080
Keyboard Logitech wireless K800
Mouse Logitech MX Master
PSU Seasonic Prime Titanium 850W
Case Thermaltake Core P3
Cooling Corsair Hydro H115i
Hard Drives 250GB Samsung 960 EVO M.2
256GB OCZ Vector
6TB WD Black WD6001FZWX
Internet Speed 1 Gb/s Download and 35 Mb/s Upload
Antivirus Malwarebyte Anti-Malware Premium
Browser Google Chrome
Other Info Logitech Z625 speaker system
* Creative F200 webcam
* Lite-On iHBS212 12x BD Writer
* Samsung CLX-3175FW Printer
* Linksys EA9500 Router
* Arris SB8200 Cable Modem
* APC SMART-UPS RT 1000 XL
07 Nov 2011
|
#3
|
|
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 Specs |
|
Computer type PC/Desktop
System Manufacturer/Model Number Custom Built
OS Windows 10 Pro
CPU Core2Quad (2.6 Ghz)
Motherboard nVidia 775
Memory 8 Gigs DDR2
Graphics Card Geforce Titan Black
Sound Card Motherboard Audio
Monitor(s) Displays 25" Asus LCD
Screen Resolution 1680x1050
Keyboard Logitech
Mouse Logitech - I love logitech mouses
PSU 850 Watts
Case Mid-Size
Hard Drives 120 Gig SSD
60 Gig SSD
750 Gig HDD
Internet Speed DSL 25Mbps - Although extremely expensive
Antivirus Microsoft Anti-Virus
Browser FireFox 36.x
07 Nov 2011
|
#4
|
|
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 Specs |
|
Computer type PC/Desktop
System Manufacturer/Model Number Self built custom
OS 64-bit Windows 10 Pro
CPU Intel i7-8700K OC'd to 5 GHz
Motherboard ASUS ROG Maximus XI Formula Z390
Memory 16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
Graphics Card ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card Integrated
Monitor(s) Displays 3 x 27" Asus VE278Q
Screen Resolution 1920x1080
Keyboard Logitech wireless K800
Mouse Logitech MX Master
PSU Seasonic Prime Titanium 850W
Case Thermaltake Core P3
Cooling Corsair Hydro H115i
Hard Drives 250GB Samsung 960 EVO M.2
256GB OCZ Vector
6TB WD Black WD6001FZWX
Internet Speed 1 Gb/s Download and 35 Mb/s Upload
Antivirus Malwarebyte Anti-Malware Premium
Browser Google Chrome
Other Info Logitech Z625 speaker system
* Creative F200 webcam
* Lite-On iHBS212 12x BD Writer
* Samsung CLX-3175FW Printer
* Linksys EA9500 Router
* Arris SB8200 Cable Modem
* APC SMART-UPS RT 1000 XL
08 Nov 2011
|
#5
|
|
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 Specs |
|
Computer type PC/Desktop
System Manufacturer/Model Number Custom Built
OS Windows 10 Pro
CPU Core2Quad (2.6 Ghz)
Motherboard nVidia 775
Memory 8 Gigs DDR2
Graphics Card Geforce Titan Black
Sound Card Motherboard Audio
Monitor(s) Displays 25" Asus LCD
Screen Resolution 1680x1050
Keyboard Logitech
Mouse Logitech - I love logitech mouses
PSU 850 Watts
Case Mid-Size
Hard Drives 120 Gig SSD
60 Gig SSD
750 Gig HDD
Internet Speed DSL 25Mbps - Although extremely expensive
Antivirus Microsoft Anti-Virus
Browser FireFox 36.x
08 Nov 2011
|
#6
|
|

Quote: Originally Posted by JerometheGiraff
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 Specs |
|
OS Windows 7 Ultimate x64
08 Nov 2011
|
#7
|
|

Quote: Originally Posted by JerometheGiraff
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 Specs |
|
Computer type PC/Desktop
System Manufacturer/Model Number Self built custom
OS 64-bit Windows 10 Pro
CPU Intel i7-8700K OC'd to 5 GHz
Motherboard ASUS ROG Maximus XI Formula Z390
Memory 16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
Graphics Card ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card Integrated
Monitor(s) Displays 3 x 27" Asus VE278Q
Screen Resolution 1920x1080
Keyboard Logitech wireless K800
Mouse Logitech MX Master
PSU Seasonic Prime Titanium 850W
Case Thermaltake Core P3
Cooling Corsair Hydro H115i
Hard Drives 250GB Samsung 960 EVO M.2
256GB OCZ Vector
6TB WD Black WD6001FZWX
Internet Speed 1 Gb/s Download and 35 Mb/s Upload
Antivirus Malwarebyte Anti-Malware Premium
Browser Google Chrome
Other Info Logitech Z625 speaker system
* Creative F200 webcam
* Lite-On iHBS212 12x BD Writer
* Samsung CLX-3175FW Printer
* Linksys EA9500 Router
* Arris SB8200 Cable Modem
* APC SMART-UPS RT 1000 XL
08 Nov 2011
|
#8
|
|
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 Specs |
|
Computer type PC/Desktop
System Manufacturer/Model Number Custom Built
OS Windows 10 Pro
CPU Core2Quad (2.6 Ghz)
Motherboard nVidia 775
Memory 8 Gigs DDR2
Graphics Card Geforce Titan Black
Sound Card Motherboard Audio
Monitor(s) Displays 25" Asus LCD
Screen Resolution 1680x1050
Keyboard Logitech
Mouse Logitech - I love logitech mouses
PSU 850 Watts
Case Mid-Size
Hard Drives 120 Gig SSD
60 Gig SSD
750 Gig HDD
Internet Speed DSL 25Mbps - Although extremely expensive
Antivirus Microsoft Anti-Virus
Browser FireFox 36.x
08 Nov 2011
|
#9
|
|
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 Specs |
|
Computer type PC/Desktop
System Manufacturer/Model Number Self built custom
OS 64-bit Windows 10 Pro
CPU Intel i7-8700K OC'd to 5 GHz
Motherboard ASUS ROG Maximus XI Formula Z390
Memory 16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
Graphics Card ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card Integrated
Monitor(s) Displays 3 x 27" Asus VE278Q
Screen Resolution 1920x1080
Keyboard Logitech wireless K800
Mouse Logitech MX Master
PSU Seasonic Prime Titanium 850W
Case Thermaltake Core P3
Cooling Corsair Hydro H115i
Hard Drives 250GB Samsung 960 EVO M.2
256GB OCZ Vector
6TB WD Black WD6001FZWX
Internet Speed 1 Gb/s Download and 35 Mb/s Upload
Antivirus Malwarebyte Anti-Malware Premium
Browser Google Chrome
Other Info Logitech Z625 speaker system
* Creative F200 webcam
* Lite-On iHBS212 12x BD Writer
* Samsung CLX-3175FW Printer
* Linksys EA9500 Router
* Arris SB8200 Cable Modem
* APC SMART-UPS RT 1000 XL
|
|