Elevated Program Shortcut - Create for Standard User

Page 1 of 22 12311 ... LastLast

    How to Create an Elevated Program Shortcut Any User is able to Run in Vista, Windows 7, and Windows 8
    Published by
    Designer Media Ltd


    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.





    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.

    Elevated Program Shortcut - Create for Standard User-credential_manager.jpg

       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)
    Elevated Program Shortcut - Create for Standard User-step1.jpg
       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)
    Elevated Program Shortcut - Create for Standard User-step2.jpg
    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)
    Elevated Program Shortcut - Create for Standard User-step3.jpg
    5. Click/tap on OK. (see screenshot below)
    Elevated Program Shortcut - Create for Standard User-step4.jpg
    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)
    Elevated Program Shortcut - Create for Standard User-step5a.jpg

    Elevated Program Shortcut - Create for Standard User-step5b.jpg
    7. Click/tap on OK. (see screenshot below)
    Elevated Program Shortcut - Create for Standard User-step6.jpg
    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.
    Elevated Program Shortcut - Create for Standard User-desktop.jpg
    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)
    Elevated Program Shortcut - Create for Standard User-security-1.jpg
    11. Select the user account (ex: Test) that the elevated shortcut is for, and click/tap on the Disable inheritance button. (see screenshot below)
    Elevated Program Shortcut - Create for Standard User-security-2.jpg
    12. Click/tap on Convert inherited permissions into explicit permissions on this object. (see screenshot below)
    Elevated Program Shortcut - Create for Standard User-security-3.jpg
    13. Select the user account (ex: Test), and click/tap on the Edit button. (see screenshot below)
    Elevated Program Shortcut - Create for Standard User-security-4.jpg
    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.
    Elevated Program Shortcut - Create for Standard User-security-5.jpg
    15. Click/tap on OK. (see screenshot below)
    Elevated Program Shortcut - Create for Standard User-read_execute.jpg
    16. Click/tap on OK. (see screenshot below)
    Elevated Program Shortcut - Create for Standard User-security-7.jpg
    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.
    Elevated Program Shortcut - Create for Standard User-step7.jpg
    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





  1. Posts : 2
    Windows 7 Ultimate x64
       #1

    been waiting for this...
    thanks Brink!
      My Computer


  2. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    You're most welcome Sewordz. Yeah, it's been a bit of a wait. :)
      My Computer


  3. Posts : 925
    Windows 10 Pro
       #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 Computer


  4. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computer


  5. Posts : 925
    Windows 10 Pro
       #5

    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 Computer


  6. Posts : 5
    Windows 7 Ultimate x64
       #6

    JerometheGiraff said:
    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 Computer


  7. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    JerometheGiraff said:
    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 Computer


  8. Posts : 925
    Windows 10 Pro
       #8

    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.

    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>>
    Did you substitute the items in that command example with your actual "Computer Name", "account name", and "exe path"?
    Yes.

    Do you have any spaces in the account name or computer name?
    No.
      My Computer


  9. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computer


 
Page 1 of 22 12311 ... LastLast

  Related Discussions
Our Sites
Site Links
About 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 23:02.
Find Us