How can I allow a standard user to run a program with admin rights without prompting for a password

Thanks to: http://social.technet.microsoft.com/


Basically, what you need to do is:
1) Move the Application to a folder outside "Program Files". E.g. make a folder named "User Apps" or something like this.
2) Select the app folder properties (by clicking with right mouse button on it), go to "security" tab and press "edit" to change its permissions.
3) Press "Add" and enter the name of the user you want to run the app. Press ok. 
4) In "Permissions for -user name-" box, mark the checkboxes to give him full control (or just "modify") rights. Press OK and OK. Now your users application has the nessesary permisions to write to its folders.
But the app may ask to write something in the systems registry. So, follow the next steps:
5) Go to start and run "regedit". Inside Registry Editor click "Computer" and make a search ("ctrl-F") with the app name (e.g. "quake.exe"). Wait to find it.
6) When you find some registry folder that is connected somehow with the app, press the right mouse button on it and select "permissions".
7) Here you have to add the user name once more and give him the full control permission. Now his app can write to system registry.
8)Go to the app shortcut you have created for the user, click properties and enable "always run as administrator".
9) Done! Your user can run the Application without having you to give him admin rights!
Other way:
Using Compatibility Mode

NOTE: This will allow you to always have the program run as an administrator when you open it.
1. Right click on the program shortcut or program .exe file, then click on Properties, and on the Compatibility tab. (See screenshots below)NOTE: If you are doing this while logged on as a standard user instead of an administrator, then you will need to also click on the Change settings for all users button and type in the administrator's password.
2. To Always Run this Program as an Administrator
A) Check the Run this program as an administrator box, and click on OK. (See screenshots above)
3. To Not Always Run this Program as an Administrator
A) Uncheck the Run this program as an administrator box, and click on OK. (See screenshots below step 1)
4. Open the program.
5. If prompted by
UAC, then click on Yes to apply permission to allow the program to run with full permission as an administrator.
NOTE: If you are doing this is while logged in as standard user instead of an administrator, then you will need to provide the administrator's password before the program will run as administrator.


Using Advanced Properties

NOTE: This will allow you to always have the program run as an administrator when you open it.
1. Right click on the shortcut of the program, then click on Properties.
2. Click on the Shortcut tab for a program shortcut, then cllick on the Advanced button. (See screenshot below)
3. To Always Run this Program as an Administrator
A) Check the Run as administrator box, and click on OK. (See screenshot below)
4. To Not Always Run this Program as an Administrator
A) Uncheck the Run as administrator box, and click on OK. (See screenshot above)
5. Click on OK. (See screenshot below step 2)
6. Open the program.
7. If prompted by
UAC, then click on Yes to apply permission to allow the program to run with full permission as an Administrator.
NOTE: If you are doing this is while logged in as standard user instead of an administrator, then you will need to provide the administrator's password before the program will run as administrator.

Comentarios

Entradas populares de este blog

Guía de herramientas básicas para estudiantes: 31 apps y webs imprescindibles para ayudarte con los estudios

Comando FOR para archivos BAT

How to Fix Failed to Connect a Hyper-V Standalone to Veeam Backup