[Windows Tip] Remove “Share With” Option from Context Menu

[Windows Tip] Remove “Share With” Option from Context Menu

In previous tutorial, we told you how to remove “Restore Previous Versions” option from right-click context menu and “Previous Versions” tab from properties window:

[Windows Tip] Remove “Restore Previous Versions” Option from Context Menu

Today in this tutorial, we’ll cover another context menu option called “Share with“. In Windows 7, Windows 8/8.1 or Windows 10, when you right-click on a folder or a drive, you get “Share with” option in the context menu which contains various sub-options such as Nobody, Homegroup (Read), Homegroup (Read/Write), Specific people or Advanced Sharing depending upon the installed operating system.

Share_With_Context_Menu_Option.png

If you right-click on a folder or drive and select Properties option, you also get the “Sharing” tab present in its properties window.

Sharing_Tab_Properties_Window.png

If you don’t use this feature and want to remove “Share with” option from context menu and “Sharing” tab from properties window, this tutorial will help you.

You can get rid of these things by using following simple steps:

1. Press “WIN+R” key combination to launch RUN dialog box then type regedit and press Enter. It’ll open Registry Editor.

To Remove “Share With” Option from Context Menu:

2. Go to following keys one by one:

HKEY_CLASSES_ROOT*shellexContextMenuHandlers

HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlers

HKEY_CLASSES_ROOTDirectoryshellexContextMenuHandlers

HKEY_CLASSES_ROOTDriveshellexContextMenuHandlers

HKEY_CLASSES_ROOTLibraryFolderbackgroundshellexContextMenuHandlers

HKEY_CLASSES_ROOTUserLibraryFoldershellexContextMenuHandlers

3. Under “ContextMenuHandlers” key, you’ll get “Sharing” key.

Remove_Share_With_Option_Context_Menu.png

Delete this key and it’ll immediately remove “Share with” option from context menu of drives and folders.

To Remove “Sharing” Tab from Properties Window:

4. Go to following keys one by one:

HKEY_CLASSES_ROOTDirectoryshellexPropertySheetHandlers

HKEY_CLASSES_ROOTDriveshellexPropertySheetHandlers

5. Under “PropertySheetHandlers” key, you’ll get “Sharing” key.

Remove_Sharing_Tab_Properties_Window.png

Delete this key and it’ll immediately remove “Sharing” tab from properties window of drives and folders.

NOTE: If you are not familiar with Registry editing and want a ready-made Registry script to do the task automatically, download following ZIP file, extract it and run the extracted REG file. It’ll ask for confirmation, accept it:

Download Registry Script to Remove “Share With” Option and Tab

The ZIP file also contains a restore registry script to restore the context menu option and properties window tab.

Source

No tags for this post.

Leave a Reply