Where Is Share In New Windows Right Click?

Discussion in 'Software' started by techtitan, Sep 6, 2024.

  1. techtitan

    techtitan Specialist

    I recently found and followed this tutorial to remove the "Share" items from the Windows 11 context menu.

    After running the registry key, I have confirmed that "Share" has been removed from all folder's context menu. And it has even been removed from the classic "Show more options" context menu on files. However, the one I'm still needing to remove is the new Windows 11 context menu "Share" option on files.

    This is the version of "Share" I'm referring to, as it seems to be the built-in Windows one:
    DwECvvo.jpeg (500×666) (imgur.com)
    https://i.imgur.com/DwECvvo.jpeg

    And this is the only one left (the one listed as "Doesn't remove" in the ElevenForums image):
    AsidFsl.png (377×461) (imgur.com)
    https://i.imgur.com/AsidFsl.png

    I feel like I'm very close to getting this removed from all entries. Has anyone been able to zero on on where this last "Share" entry in the new Windows context menu for just files is located? It's the top menu when you first right-click. Again, I've already been able to remove the exact same entry for all folders.
     
  2. Maxwell

    Maxwell Folgers

    To remove the “Share” option from the new Windows 11 context menu for files, you can try the following steps using the Registry Editor:

    1. Open Registry Editor:
      • Press Win + R, type regedit, and hit Enter.
    2. Navigate to the following path:

      HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers

    3. Locate the ModernSharing subkey:
      • Right-click on ModernSharing and select Delete.
    4. Restart your computer:
      • This will apply the changes and remove the “Share” option from the context menu.
    This should remove the “Share” option from the new Windows 11 context menu for files
     
  3. techtitan

    techtitan Specialist

    Thanks Maxell, appreicate the assisit.

    So I should mentioned/clarify that I have tried that link you provided. It's where I started, and had a few other programs (like Winaero) to try and tweak/remove these. When I checked the HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers location, I don't have a "ModernSharing" key to delete. I assume that's because one of the steps I've completed thus far has already removed it. As I mentioned, I have had some success in removing "Share", just not 100%. So here is the rundown of everywhere I was able to remove it from, and the one location I'm still getting it (if you can tell me how to target that one):
    • Right click on FOLDERS (via new Windows 11 context menu, top level) = REMOVED
    • Right click on FOLDERS then clicking "Show more options" at the bottom (via classic Windows context menu) = REMOVED
    • Right click on FILES then clicking "Show more options" at the bottom (via classic Windows context menu) = REMOVED
    But...

    Right click on FILES (via new Windows 11 context menu, top level) = STILL DISPLAYED

    SCREENSHOT:

    https://i.imgur.com/rLBQPVD.png
    https://i.imgur.com/rLBQPVD.png
     
  4. Maxwell

    Maxwell Folgers

    It sounds like you've done a thorough job so far!

    Which variant of Windows 11 do you have?

    Also, why disable file sharing, is it to prevent accidental leak of files or information? In which case some sharing services could be disabled.

    Here are a few additional steps you can try or you may have already tried:

    1. Registry Editor:
    - Open the Registry Editor (`regedit`).
    - Navigate to `HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers`.
    - If the `ModernSharing` key is missing, check for any other keys here and elsewhere in the registry related to file sharing and remove them. Export the keys you plan to delete so that they can be re-imported if things go wrong.

    2. Group Policy Editor (for Windows Pro and Enterprise editions):
    - Open the Group Policy Editor (`gpedit.msc`).
    - Navigate to `User Configuration > Administrative Templates > Windows Components > File Explorer`.
    - Look for a setting related to removing the "Share" context menu and enable it.

    3. PowerShell Script:
    - You could use a PowerShell script to remove context menu entries, but the expectation is that is already doing what the manual edits to the registry have done. Here's a script that might help:

    $key = "HKCR\*\shellex\ContextMenuHandlers\ModernSharing"
    Remove-Item -Path $key -Force
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds