How To Disable, Remove “Run As Administrator” On Windows

How To Disable Remove Run As Administrator On WindowsHow To Disable Remove Run As Administrator On Windows

Windows operating systems have different privilege levels that decide what changes a user can and can’t make to the system. While an administrator can make all sorts of changes, a standard user has limited access and rights. This access privilege is primarily there for security reasons.

That said, if a standard user knows the credentials to an administrative account, they could potentially run apps and programs with administrative privileges without having to log into the administrator account. This option is available in the app’s context menu as “Run as administrator.” Moreover, they could run questionable Registry files, batch scripts, and all sorts of code with elevated rights.

Additionally, some applications have trouble running with administrative rights. For example, in this report, a user is having issues with an app when it runs with elevated privileges.

Suppose you are sharing your PC with someone and do not want them to run anything with elevated privileges, or want to stop a specific app from running as an administrator. In that case, you’ll find the solution to disable it in this post. Here, we show you how to prevent an app from running with elevated privileges and remove the “Run as administrator” option from the context menu altogether.

How to disable program from Running as administrator

The programs that always run as an administrator usually have a shield displayed in their icon. In this section, we show you how to prevent an app or program from always running as an administrator automatically. Use the following steps to stop a program from running as an admin:

  1. Right-click on the app or program icon and click Properties.

    Open application properties
    Open application properties
  2. Switch to the Compatibility tab and click “Change settings for all users.”

    Change settings for all users
    Change settings for all users
  3. Uncheck the box next to “Run this program as an administrator.”

    Unselect run program as administrator
    Unselect run program as administrator
  4. Click Apply and Ok.

  5. Back on the Properties window, unselect “Run this program as an administrator” again.

    Unselect run program as administrator again
    Unselect run program as administrator again
  6. Click Apply and Ok again.

  7. At this point, you will still see the shield in the app’s icon. Restart the computer for the changes to take effect.

Once the computer restarts, you should be able to run the application without administrative privileges.

Note: You can also learn to run an app or program without privilege elevation and bypass the UAC prompt.

Remove Run as administrator from context menu

As the title suggests, this section shows you how to remove the option “Run as administrator” from the context menu on a Windows computer. This way, no standard user will be able to run any app, program, or script with elevated privileges.

You can use the following steps to remove the “Run as administrator” option from the context menu:

Note: This process involves making changes to the Windows Registry. Misconfiguration of critical values in the system’s registry could be fatal for your operating system. Therefore, we insist that you create a system restore point or a complete system image backup before proceeding forward with the process.

You can also use our top selection of disk imaging and backup software so you never lose your data or operating system again.

  1. Press the Windows Key + R to open the Run Command box.

  2. Type in “regedit” and press Enter to launch the Registry editor.

    Open the Registry editor
    Open the Registry editor
  3. Navigate to the following key from the left pane:

    Computer\HKEY_CLASSES_ROOT\exefile\shell\runas
  4. Right-click on the “Runas” key in the left pane and click Delete.

    Delete the Runas key inside exefile
    Delete the Runas key inside “exefile”
  5. When asked for confirmation, click Yes.

    Confirm action 1
    Confirm action
  6. Now repeat Steps 4 & 5 and delete the “Runas” keys in the following paths:

    Computer\HKEY_CLASSES_ROOT\cmdfile\shell\runas
    Computer\HKEY_CLASSES_ROOT\cplfile\shell\runas
    Computer\HKEY_CLASSES_ROOT\batfile\shell\runas
    Computer\HKEY_CLASSES_ROOT\mscfile\shell\Runas
  7. Once done, restart the computer.

When the computer restarts, you will notice that the “Run as administrator” option in the context menu is no longer available.

Run as administrator option has been removed
The “Run as administrator” option has been removed

Alternatively, if you do not wish to perform all of the steps above, simply use the Registry file given below. Click on the link to download it, extract the contents, and run the .REG file to remove the “Run as administrator” option from the context menu.

How To Disable, Remove "Run As Administrator" On Windows 1  Remove Run as administrator from context menu.zip (unknown, 207 hits)

In case you want to restore the “Run as administrator” option to the context menu in the future, you can use the following .REG file instead:

Note: You can also restore the option by making changes to the Windows Registry manually. However, since it involves a lot of steps, the chances of making a mistake are significant. Therefore, we recommend that you only use the file below to restore the option.

How To Disable, Remove "Run As Administrator" On Windows 1  Add Run as administrator to context menu.zip (unknown, 202 hits)

After running the file, restart the PC for the changes to take effect.

Closing words

The problem with running applications, programs, and scripts with elevated privileges has always been there. While some users prefer doing it, as it grants them more permissions, others avoid it for the sake of security.

In this article, you’ll find what you need to remove the “Run as administrator” option from the context menu for all users, as well as restore it. Additionally, you’ll also learn how to disable an app from running with elevated rights each time you launch it.

If you liked this post, Share it on:
Subhan Zafar is an established IT professional with interests in Windows and Server infrastructure testing and research, and is currently working with Itechtics as a research consultant. He has studied Electrical Engineering and is also certified by Huawei (HCNA & HCNP Routing and Switching).

Get Updates in Your Inbox

Sign up for the regular updates and be the first to know about the latest tech information

Talk to us now

Talk to us straight and get your questions answered right away

Tell Us About Your Project
Web Dev Service Contact Form (Popup)