How to get rid of this context menu entry for OneDrive

Page 3 of 3 FirstFirst 123

  1. Posts : 149
    Windows 11 Pro
    Thread Starter
       #21

    @Brink

    Oops the permissions trick still shows the OneDrive context menu on folder right click. It is hidden for files but not folder right click. I even tried your method in your guide but setting the permissions to the Everyone group. There must be another entry for folders
      My Computers


  2. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
       #22

    Ultra Male said:
    @Brink

    Oops the permissions trick still shows the OneDrive context menu on folder right click. It is hidden for files but not folder right click. I even tried your method in your guide but setting the permissions to the Everyone group. There must be another entry for folders
    Yep, there were more registry entries hiding. I've updated the tutorial to include all the ones I could find.

    Add or Remove Move to OneDrive Context Menu in Windows 10 | Tutorials
      My Computers


  3. Posts : 149
    Windows 11 Pro
    Thread Starter
       #23

    Brink said:
    Yep, there were more registry entries hiding. I've updated the tutorial to include all the ones I could find.

    Add or Remove Move to OneDrive Context Menu in Windows 10 | Tutorials
    Perfect chief! Worked like charm!!
      My Computers


  4. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
       #24



    You really got work at it now. LOL
      My Computers


  5. Posts : 149
    Windows 11 Pro
    Thread Starter
       #25

    Disable 'Move to OneDrive' Context Menu

    That is the update reg file which removes the new entries you mentioned. I don't know how to make one to readd them again though but hey, I tried.
      My Computers


  6. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
       #26

    Too bad that. reg file won't work though since you have to leave the registry key with the permission changes to keep it from being added back by OneDrive.

    The .reg file I have in Option 2 of the tutorial will add them back.
      My Computers


  7. Posts : 149
    Windows 11 Pro
    Thread Starter
       #27

    Brink said:
    Too bad that. reg file won't work though since you have to leave the registry key with the permission changes to keep it from being added back by OneDrive.

    The .reg file I have in Option 2 of the tutorial will add them back.
    Right, thank you. This was a challenging one.
      My Computers


  8. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
       #28

    Yeah it was. OneDrive didn't want to give up without a fight.
      My Computers


  9. Posts : 149
    Windows 11 Pro
    Thread Starter
       #29

    Brink said:
    Yeah it was. OneDrive didn't want to give up without a fight.
    Finally got the script from MDL Forum but I need to test it:

    To "automate" the process you would need to have SetACL in windows directory...(and Nsudo to restore key in case)
    then would be something like this:

    OneDriveBlock.bat

    Code:
    @echo off%windir%\system32\whoami.exe /USER | find /i "S-1-5-18" 1>nul && (
    goto :START
    ) || (
    NSudoG -U:T -P:E "%~dpnx0"& exit /b >NUL 2>&1
    )
    :START
    SetACL -on "HKCR\*\shellex\ContextMenuHandlers\ FileSyncEx" -ot reg -actn setprot -op "dacl:p_nc" -actn clear -clr "dacl" -actn setowner -ownr "n:Everyone" >NUL 2>&1
    SetACL -on "HKCR\Directory\Background\shellex\ContextMenuHandlers\ FileSyncEx" -ot reg -actn setprot -op "dacl:p_nc" -actn clear -clr "dacl" -actn setowner -ownr "n:Everyone" >NUL 2>&1
    SetACL -on "HKCR\IE.AssocFile.URL\shellex\ContextMenuHandlers\ FileSyncEx" -ot reg -actn setprot -op "dacl:p_nc" -actn clear -clr "dacl" -actn setowner -ownr "n:Everyone" >NUL 2>&1
    SetACL -on "HKCR\lnkfile\shellex\ContextMenuHandlers\ FileSyncEx" -ot reg -actn setprot -op "dacl:p_nc" -actn clear -clr "dacl" -actn setowner -ownr "n:Everyone" >NUL 2>&1
    
    exit /b


    OneDriveRestore.bat

    Code:
    @echo off%windir%\system32\whoami.exe /USER | find /i "S-1-5-18" 1>nul && (
    goto :START
    ) || (
    NSudoG -U:T -P:E "%~dpnx0"& exit /b >NUL 2>&1
    )
    :START
    SetACL -on "HKCR\*\shellex\ContextMenuHandlers\ FileSyncEx" -ot reg -actn setprot -op "dacl:np" -actn clear -clr "dacl" -actn rstchldrn -rst "dacl" >NUL 2>&1
    SetACL -on "HKCR\Directory\Background\shellex\ContextMenuHandlers\ FileSyncEx" -ot reg -actn setprot -op "dacl:np" -actn clear -clr "dacl" -actn rstchldrn -rst "dacl" >NUL 2>&1
    SetACL -on "HKCR\IE.AssocFile.URL\shellex\ContextMenuHandlers\ FileSyncEx" -ot reg -actn setprot -op "dacl:np" -actn clear -clr "dacl" -actn rstchldrn -rst "dacl" >NUL 2>&1
    SetACL -on "HKCR\lnkfile\shellex\ContextMenuHandlers\ FileSyncEx" -ot reg -actn setprot -op "dacl:np" -actn clear -clr "dacl" -actn rstchldrn -rst "dacl" >NUL 2>&1
    
    exit /b

      My Computers


  10. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
       #30

    Too bad you can't do it natively without 3rd party software.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:43.
Find Us




Windows 10 Forums