How to Disable Context Menu of File Explorer (and More)

In this post, you will see:

Let’s get started.

Disable Context Menu of File Explorer and Desktop

By default, you will see the context menu in the File Explorer and desktop when you right click on these.

You can do this task in two ways. Pick the one you want. Here I’m using Windows 10 build 21343.

Method #1

Type gpedit.msc in the Run and then press the Enter key.

Now go to User Configuration > Administrative Templates > Windows Components > File Explorer.

Double-click Remove File Explorer’s default context menu.

Select Enabled and click OK.

Restart your computer.

That’s all.

If you want to enable the context menu, then you need to follow the above steps but select Disabled or Not Configured.

Method #2

Open Registry Editor. I suggest that you back up the Registry before proceeding.

Navigate to HKEY_CURRENT_USER > Software > Microsoft > Windows > CurrentVersion > Policies > Explorer.

Now in the right pane, right-click on a blank space.

Select New > DWORD (32-bit) Value.

Provide the name as NoViewContextMenu and then press the Enter key.

Double-click it.

Provide 1 in the Value data field and press the OK button.

Restart your PC or File Explorer.

That’s all.

Note that you can enable the context menu by deleting the DWORD you’ve created above or changing the value from 1 to 0.

Disable Taskbar Right-Click Menu

By default, the right-click menu is enabled for the taskbar.

You can disable it. Remember that disabling it will also deactivate the context menu that you see when you right-click on the icon on the taskbar while pressing the Shift key.

You can do this task in two ways. Pick the one you want.

Here I’m using Windows 10 build 21337. Let’s get started.

Method #1

Type gpedit.msc in the Run and then press the Enter key.

Now go to User Configuration > Administrative Templates > Start Menu and Taskbar.

Double click “Remove access to the context menus for the taskbar.”

Select Enabled and click OK.

That’s all.

If you want to enable the context menu, follow the steps above but select Disabled or Not Configured.

Method #2

Open Registry Editor. I suggest that you back up the Registry before proceeding.

If you want to disable the right-click menu for the current user, navigate to:

HKEY_CURRENT_USER > Software > Microsoft > Windows > CurrentVersion > Policies > Explorer.

If you want to disable the right-click menu for all users, then navigate to:

HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion > Policies > Explorer.

Right-click on the right pane blank space.

Select New > DWORD (32-bit) Value.

Provide the name as NoTrayContextMenu and then press the Enter key.

Double-click it and then provide 1 in the Value data field.

Press the OK button.

Restart File Explorer or PC.

That’s all.

Note that you can enable the right-click menu and for that you need to delete the DWORD you’ve created above or change the value from 1 to 0.

Disable Context Menu of Start Menu

You can complete this task in two ways. Choose the one you like.

Method #1

Open the Registry Editor. I suggest that you back up the Registry before proceeding.

To disable the right-click menu for all users, navigate to the following keys:

HKEY_LOCAL_MACHINE > SOFTWARE > Policies > Microsoft > Windows.

To disable the right-click menu for the current user, navigate to the following keys:

HKEY_CURRENT_USER > SOFTWARE > Policies > Microsoft > Windows.

Here, I do this for the “current user,” but the steps are the same for “all users.”

Press the Explorer key. If you do not see this key, you need to create it.

Here’s how: Right-click on the Windows key, select New > Key, enter the name as Explorer and then press Enter.

In the right pane, right-click on a space.

Select New > DWORD (32-bit) Value.

Enter the name as DisableContextMenusInStart and then press Enter.

Double-click on it.

In the Value data field, provide 1 and then press the OK button.

That’s it.

From now on, you can no longer see the right-click menu in the Start menu.

Note that you can activate the right-click menu by deleting DisableContextMenusInStart DWORD or replacing 1 with 0.

Method #2

Type gpedit.msc in the Run command box and then press Enter.

If you want to disable the context menu for the current user, go to User Configuration > Administrative Templates > Start Menu and Taskbar.

If you want to disable the context menu for all users, go to Computer Configuration > Administrative Templates > Start Menu and Taskbar.

Here, I do this for the “current user,” but the steps are the same for “all users.”

In the right pane, you will see “Disable context menus in the Start Menu.” Double click on it.

Select Enabled and click OK.

That’s all.

From now on, you can no longer see the right-click menu in the Start menu.

Note: If you want to enable the right-click menu, follow the steps above, but choose Not Configured or Disabled.

Read: