Forum Discussion
Remove "Add shortcut to OneDrive" from Sharepoint Sites
Go to your OneDrive online and delete the SharePoint shortcut folder , done
Best To all
- BishopstonITFeb 23, 2022Brass Contributor
this didn't work for me the first few times either. tried a week later and it worked....?
use the following:
Connect-SPOService "https://domain-admin.sharepoint.com"
Set-SPOTenant -DisableAddShortCutsToOneDrive $True
you can use "Get-SPOTenant" to see if it has worked - the parameter is actually listed as "DisableAddToOneDrive", but using this parameter doesn't work (you have to use the one listed above)
I wanted this disabled, as over the last year a couple of users have "somehow" deleted the whole sharepoint document library, and I'm pretty sure it's something to do with this shortcut (as discussed in below article)
https://answers.microsoft.com/en-us/msoffice/forum/all/deleting-a-sharepoint-shortcut-to-onedrive/c5cfc06b-a87b-48a8-bc83-cba045f93720