How to Run Files as Administrator: 8 Quick Methods

A lot of programs require admin privileges to function properly. Running a file as an admin can also be an easy solution to many application errors.

The most common approach is to right-click the .exe file and select the Run as administrator option. But there are numerous other ways to accomplish the same thing such as keyboard shortcuts, task manager, command prompt, and more.

So, without further ado, here are all the possible ways to run files as an administrator.

9 Quick Ways on How To Run Files As an Administrator

Using Contextual (Right-Click) Menu

The usual way most users run a file as an administrator is by right-clicking its executable (.exe) file and selecting Run as Administrator.

Additionally, if you hold Shift and then right-click, you can select the Run as different user option. With this, you can enter the credentials for another admin account to run the file as an administrator.

run-as-administrator-run-as-different-user

You will need to confirm that you want to run the file with administrator privileges before it opens. This also applies to most other methods in this guide.

It’s possible to bypass this prompt if you want. Check the FAQ section for more on that.

Using File Explorer Ribbon

In the file explorer, select your file and open the Application tools tab. You can Run as Administrator or troubleshoot compatibility directly from here.

file-explorer-ribbon-run-as-admin

In the search Window, you can press the option on the right or use the keyboard shortcut CTRL + Shift + Enter to run a file as an administrator.

search-bar-run-as-admin

Through Run

If you type a run command (cmd for instance) and press CTRL + Shift + Enter, you can directly launch it in Administrator Mode.

See also  How to Fix 'Reboot and Select Proper Boot Device' Error: Effective Fixes

Using Start Menu

In the Start Menu, you can right-click any program and press More > Run as administrator.

Alternatively, you can also hold CTRL + Shift and left-click a program to run it as an administrator.

start-menu-run-as-admin

From Task Bar

You can hold CTRL + Shift and left-click any program to run it as an administrator directly from the taskbar.

Using Task Manager

Very few users know about this but it is actually possible to run a file as an administrator using the Task Manager. This can come in handy in certain situations, such as when the file explorer is not responding for instance.

1- Press CTRL + Shift + Esc to launch the Task Manager.

2- Press the More Details button to change to advanced view.

3- Click on File and select Run new task.

4- Use the Browse option to locate and select your file.

5- Enable the Create this task with Administrative privileges option.


task-manager-create-task-with-admin-privileges

6- Press OK to run the file as an administrator.

With Task Scheduler

If you want to set a program to launch at a specified time, Task Scheduler is the perfect Windows tool for this. To run the program as an administrator in such cases, follow the steps below:

1- Press Windows + S to bring up the search window.

2- Type task scheduler and press Enter.

3- From the top-left, select Action > Create Task.

4- Once you create your task, select Run whether user is logged in or not.

5- Enable Run with highest privileges and press OK to apply the changes.

See also  How To Fix “Access Is Denied” When Executing Bootrec /Fixboot (2024)

Using Command Prompt

For users who prefer the command-line approach, the runas command can be used to run a file as an administrator. To do so:

1- Press Windows + R to launch Run.

2- Type cmd and press CTRL + Shift + Enter to launch Elevated Command Prompt.

3- Type the following command, replace ComputerNameAdminName, and FilePath with the appropriate values as shown in the picture below, and press Enter:
runas /user:“ComputerName\AdminName” “FilePath”


command-prompt-runas

Things To NoteComputer Name –Your Device Name. Press Windows + S, type Device Name and press Enter to find it if you don’t already know it.Admin Name –The username of any administrator account on your computer.File Path –The explorer file path of the file you’re trying to run as administrator.

If you get a system cannot find the file specified error, the file path is incorrect. Make sure you got the spaces correct as well.

When prompted to enter the admin password, type it and press Enter. The password won’t be shown on the screen, so you needn’t worry.

How to Run Files as Administrator by Default?

If you want to open any file or app as an administrator every time, you can do so from Properties.

1- Select the file and press CTRL + Alt + Enter to open properties. Alternatively, simply right-click and select properties.

2- In the compatibility tab, enable Run this program as an administrator.


compatibility-run-as-admin

3- In the case of shortcuts, enable it from Shortcut > Advanced > Run as administrator instead.

Mohamed SAKHRI
Mohamed SAKHRI

I'm the creator and editor-in-chief of Tech To Geek. Through this little blog, I share with you my passion for technology. I specialize in various operating systems such as Windows, Linux, macOS, and Android, focusing on providing practical and valuable guides.

Articles: 1273

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *