
You need to have multiple users on your PC. You do this because you don't want to give them admin rights to install some shitty program on your PC. But what if you want to allow them to run a particular program as an administrator, but don't want to share the administrator password with them? Here is a detailed solution for the mentioned problem.
How to allow standard users to run a program as an administrator without knowing the password
Step 1:- First, make a note of your computer name and administrator username. To find out, right-click the My Computer or This Computer icon on your desktop and click Properties.
Now type in the name of your computer.
Now to know the username in case you are confused. Open Command Prompt and run the following command.
echo% username%
After making a note of the computer name and username, proceed to the next step.
Step 2: - Now, right click anywhere on the desktop or anywhere to create a shortcut.
3 pass: - Now go to the application for which you want to provide administrator rights.
4 phase: - Now add the following line given below before the element field position.
runas /user:ComputerNameUsername /Computername
Now let me add this line before my line.
Step 5: - Now save the link after giving it an appropriate name.
Step 6: - Now click on the link. It will ask for the password. Enter the administrator password once.
Now whenever someone clicks on the link, they will run as administrator without prompting for the password.