Remove Run as administrator from Context menu in Windows

Channel:
Subscribers:
1,660
Published on ● Video Link: https://www.youtube.com/watch?v=QCJ_C9fmRnA



Duration: 1:30
1 views
0


Here's how to Remove Run as administrator from Context menu in Windows.

There are a few ways to remove the "Run as administrator" option from the context menu in Windows.

**Method 1: Using the Registry Editor**

1. Open the Registry Editor by pressing `Windows`+`R` and typing "regedit".
2. Navigate to the following key:

```
HKEY_CLASSES_ROOT\*\shell\runas
```

3. Right-click on the "runas" key and select "Delete".
4. Click "Yes" to confirm the deletion.

**Method 2: Using a Registry Editor Script**

You can also remove the "Run as administrator" option from the context menu by using a registry editor script. The following script will remove the option for all users:

```
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
"HasLUAShield"=dword:00000000
```

To use the script, save it as a .reg file and double-click on it.

**Method 3: Using Group Policy Editor**

If you are using Windows Pro or Enterprise, you can remove the "Run as administrator" option from the context menu using Group Policy Editor. To do this, follow these steps:

1. Open Group Policy Editor by pressing `Windows`+`R` and typing "gpedit.msc".
2. Navigate to the following setting:


Computer Configuration - Administrative Templates - Windows Components - File Explorer - Context Menus


3. Double-click on the "Show "Run as administrator" command on the context menu for all files and folders" setting.
4. Select the "Disabled" radio button and click "OK".

This will remove the "Run as administrator" option from the context menu for all users.

**Note:** If you are not an administrator, you will need to ask an administrator to make these changes for you.

i. You can remove the "Open command window here" and "Open command window as administrator" options from the context menu in Windows by following these steps:

1. Open the Registry Editor by pressing `Windows`+`R` and typing "regedit".
2. Navigate to the following key:

```
HKEY_CLASSES_ROOT\directory\shell\cmd
```

3. Right-click on the "cmd" key and select "Delete".
4. Click "Yes" to confirm the deletion.

Repeat steps 2-4 for the following key:

```
HKEY_CLASSES_ROOT\directory\shell\cmd\command
```

This will remove the "Open command window here" and "Open command window as administrator" options from the context menu for all files and folders.

**Note:** If you are not an administrator, you will need to ask an administrator to make these changes for you.

**Additional Information**

You can also remove the "Open command window here" and "Open command window as administrator" options from the context menu for specific files and folders by following these steps:

1. Right-click on the file or folder and select "Properties".
2. Click on the "Customize" tab.
3. In the "Context Menu" section, uncheck the boxes next to the "Open command window here" and "Open command window as administrator" options.
4. Click "OK" to save your changes.

This will remove the "Open command window here" and "Open command window as administrator" options from the context menu for the selected file or folder.

ii. To run an app as a different user in the context menu, follow these steps:

1. Right-click on the app's shortcut or pinned taskbar icon.
2. Press and hold the Shift key.
3. Click on "Show more options."
4. Click on "Run as different user."

A Windows Security window will appear. Enter the name and password of the user account under which you want to run the app, and then click on "OK."

The app will now open as the specified user account.

Here are some additional things to keep in mind:

* The "Run as different user" option is not available for all apps. It is only available for apps that are installed on the computer.
* If you are not an administrator, you may not be able to run an app as a different user.
* If you run an app as a different user, you will be logged out of your current user account.

iii. To get the Run as a different user permission, you need to be an administrator on the computer. If you are not an administrator, you can ask an administrator to grant you the permission.

To grant the Run as a different user permission to a user, follow these steps:

1. Open the Local Group Policy Editor.
2. Navigate to Computer Configuration - Windows Settings - Security Settings - Local Policies - User Rights Assignment.
3. Double-click on the "Log on as a batch job" setting.
4. In the "Select Users, Computer, or Groups" dialog box, type the name of the user or group that you want to grant the permission to.
5. Click on "OK" to save your changes.

Once you have granted the Run as a different user permission to a user, they will be able to run apps as a different user by right-clicking on the app's shortcut or pinned taskbar icon, pressing and holding the Shift key, and then clicking on "Run as different user."