Trick to create shortcut to run application under Admin rights

If needed, you can create a shortcut with admin rights to allow standard users to run programs that require admin rights.

In Windows, you can create custom shortcuts for almost any file, folder, or program. Generally, shortcuts do not give you any administrative rights. But there are situations where you need to allow other users on your system to run programs that require administrative rights. In these cases, you do not need to provide an admin password. Instead, you can create a custom shortcut with admin rights to allow standard users to run the program as an administrator.

Alternatively, if you don't want to see UAC prompts, you can avoid them altogether by creating a shortcut with admin mode. Here are the simple steps to create a shortcut with admin rights and let standard users run the program as administrator.

Note : Before moving on, find the computer name, username, and password of the admin account. You will need this information in the following steps.

1. Activate Admin account

By default Admin account is disabled, so you have to enable Admin account.

To activate the Admin account, follow the steps below:

Step 1:

  • Windows 7/8 : In the Search Start Menu box, type the keyword Command Prompt, then right-click on the Command Prompt shortcut and select Run as administrator.
  • Windows 10/11: Click on the Search icon, type the keyword command... , then on the right side of the App Command Prompt properties, select Run as administrator > click Yes if asked for confirmation.

Trick to create shortcut to run application under Admin rights

Step 2 : Enter the following command into the Command Prompt window to activate the Admin account:

net user administrator /active:yes

Trick to create shortcut to run application under Admin rights

Step 3 : The Admin account has been activated, but the account does not have a password protection.

To set the Admin account password, open Control Panel then select Accounts and Family Safety => User Accounts .

On the User Account window, click Manage another account .

Trick to create shortcut to run application under Admin rights

Select Administrator account, then select Create a password and then create a password for the Admin account.

Trick to create shortcut to run application under Admin rights

2. Steps to create shortcut with admin rights

Creating an admin shortcut for a program that allows a standard user to run it as admin is easier than you think. The best thing about the method below is that you don’t have to give out an admin password and the admin rights are limited to the program only. Just follow the steps below.

Step 1:

Just like any custom shortcut, you can create it directly on the desktop. Just right-click on the desktop and select New > Shortcut .

Trick to create shortcut to run application under Admin rights
Select New > Shortcut

Step 2:

In the blank field, copy and paste the code below. Replace ComputerName with the actual computer name, Username with the actual user name, and example file path with the actual path of the exe file for the target program.

runas /user:ComputerName\Username /savecred "C:\dummy\path\to\file.exe"

Step 3:  Click the Next button.

Step 4: In this window, name the shortcut. You can name the shortcut anything you want. Then, click the Finish button.

Trick to create shortcut to run application under Admin rights
Click the Finish button

Step 5:  After creating the shortcut, double-click on it. The first time, you will be prompted for the admin password. Enter the password and press Enter.

Trick to create shortcut to run application under Admin rights
Double click the shortcut
Trick to create shortcut to run application under Admin rights
Enter password

Step 6:  If the username and password are correct, the shortcut will be executed and the program will be launched with admin rights.

Trick to create shortcut to run application under Admin rights
If the username and password are correct, the shortcut will be executed.

The username and password are automatically saved in Windows Credential Manager. So other users don't have to type in the password. Instead, Windows automatically extracts the password from Credential Manager and launches the application.

If you no longer need users to launch the application as admin, delete the shortcut.

3. Create a shortcut to open the application with admin rights manually in Task Scheduler

Step 1: Press Win + R  keys to open Run dialog box , type taskchd.msc into Run and press OK to open Task Scheduler .

Step 2:  Click Task Scheduler Library on the left side of Task Scheduler and click Create Task in the Actions section on the right.

Trick to create shortcut to run application under Admin rights
Click Create Task in Actions on the right

Step 3: In the General tab , enter the name (for example, "Elevated command prompt") you want for this task and enter an optional description of the task.

Trick to create shortcut to run application under Admin rights
Enter a name and description for the task.

Make a note of this task name. You will need it in step 8 and when you create a shortcut for this task in step 13 below.

Step 4:  In the General tab , select the Run with highest privileges box .

Step 5:  In the General tab , select Windows  10 in the Configure for drop-down menu .

Step 6:  Click on the Actions tab and select New.

Step 7:  Type cmd.exe in the Program/script field.

Trick to create shortcut to run application under Admin rights
Enter cmd.exe in the Program/script field

This is what is being used to open the shortcut with admin rights, so it cannot be changed to anything else.

Step 8:  Enter the command below in the Add arguments field and press OK.

/c start "Task Name" "Full path of application file"

Replace Task Name in the above command with the task name (e.g. "Elevated command prompt") you used in step 3 above.

Replace Full path of application file in the above command with the actual full path of the application file you want to run with admin rights.

For example:

/c start "Elevated command prompt" "%windir%\System32\cmd.exe"
Trick to create shortcut to run application under Admin rights
Enter the command in the Add arguments field

Step 9:  Now, you will see this new action listed.

Step 10: Click the Conditions tab , uncheck the Start the task only if the computer is on AC power box and click OK.

Step 11:  Now, you will see this new task listed in the Task Scheduler Library. You can now close the Task Scheduler if you want.

Step 12: Right-click or press and hold on the desktop, select New and click Shortcut.

Step 13:  Enter the command below in the location field and select Next.

schtasks /run /tn "Task Name"

Replace Task Name in the above command with the task name you used in step 3 above.

For example:

schtasks /run /tn "Elevated command prompt"
Trick to create shortcut to run application under Admin rights
Enter the command in the location field

Step 14:  Enter the name you want for this task shortcut and click Finish.

Step 15: Right-click or tap and hold on the new shortcut on the desktop and select Properties.

Step 16: Click the Change Icon button in the Shortcut tab.

Step 17: Click OK.

Step 18:  Click Browse , navigate to and select the application file (e.g. "%windir%\System32\cmd.exe" ) you want to run with admin rights, click Open , select the icon you want for the shortcut and press OK.

You can use any icon you want for this shortcut.

Trick to create shortcut to run application under Admin rights
Select the icon you want for the shortcut

Step 19:  Click OK.

Step 20:  You can run on startup, pin to taskbar, Start menu, add to All apps, Quick Launch , assign shortcut key or move this shortcut to where you like for easy use.

Good luck!

Sign up and earn $1000 a day ⋙

Leave a Comment

Top 5 best automatic home coffee makers

Top 5 best automatic home coffee makers

The automatic home coffee maker is a modern and professional product, bringing you and your family delicious cups of coffee with just a few quick steps.

Difference between regular TV and Smart TV

Difference between regular TV and Smart TV

Smart TVs have really taken the world by storm. With so many great features and the ability to connect to the Internet, technology has changed the way we watch TV.

Why doesnt the freezer have a light but the refrigerator does?

Why doesnt the freezer have a light but the refrigerator does?

Refrigerators are familiar appliances in families. Refrigerators usually have 2 compartments, the cool compartment is spacious and has a light that automatically turns on every time the user opens it, while the freezer compartment is narrow and has no light.

2 Ways to Fix Network Congestion That Slows Down Wi-Fi

2 Ways to Fix Network Congestion That Slows Down Wi-Fi

Wi-Fi networks are affected by many factors beyond routers, bandwidth, and interference, but there are some smart ways to boost your network.

How to Downgrade from iOS 17 to iOS 16 without Losing Data using Tenorshare Reiboot

How to Downgrade from iOS 17 to iOS 16 without Losing Data using Tenorshare Reiboot

If you want to go back to stable iOS 16 on your phone, here is the basic guide to uninstall iOS 17 and downgrade from iOS 17 to 16.

What happens to the body when you eat yogurt every day?

What happens to the body when you eat yogurt every day?

Yogurt is a great food. Is it good to eat yogurt every day? What will happen to your body when you eat yogurt every day? Let's find out together!

Which type of rice is best for health?

Which type of rice is best for health?

This article discusses the most nutritious types of rice and how to maximize the health benefits of whichever rice you choose.

How to wake up on time in the morning

How to wake up on time in the morning

Establishing a sleep schedule and bedtime routine, changing your alarm clock, and adjusting your diet are some of the measures that can help you sleep better and wake up on time in the morning.

Rent Please! Landlord Sim Tips for Beginners

Rent Please! Landlord Sim Tips for Beginners

Rent Please! Landlord Sim is a simulation mobile game on iOS and Android. You will play as a landlord of an apartment complex and start renting out an apartment with the goal of upgrading the interior of your apartments and getting them ready for rent.

Latest Bathroom Tower Defense Codes and How to Enter Codes

Latest Bathroom Tower Defense Codes and How to Enter Codes

Get Bathroom Tower Defense Roblox game codes and redeem them for exciting rewards. They will help you upgrade or unlock towers with higher damage.

Structure, symbols and operating principles of transformers

Structure, symbols and operating principles of transformers

Let's learn about the structure, symbols and operating principles of transformers in the most accurate way.

4 Ways AI Is Making Smart TVs Better

4 Ways AI Is Making Smart TVs Better

From better picture and sound quality to voice control and more, these AI-powered features are making smart TVs so much better!

Why ChatGPT is better than DeepSeek

Why ChatGPT is better than DeepSeek

DeepSeek initially had high hopes. As an AI chatbot marketed as a strong competitor to ChatGPT, it promised intelligent conversational capabilities and experiences.

Meet Fireflies.ai: The Free AI Secretary That Saves You Hours of Work

Meet Fireflies.ai: The Free AI Secretary That Saves You Hours of Work

It's easy to miss important details when you're jotting down other essentials, and trying to take notes while chatting can be distracting. Fireflies.ai is the solution.

How to raise Axolotl Minecraft, tame Minecraft Salamander

How to raise Axolotl Minecraft, tame Minecraft Salamander

Axolot Minecraft will be a great assistant for players when operating underwater if they know how to use them.