Forum Discussion
RanchoJack
Jan 15, 2021Copper Contributor
Remove "Add shortcut to OneDrive" from Sharepoint Sites
We have our users want to use the 'Sync' and not the 'shortcut to OneDrive' for file on the Sharepoint sites. I was able to run from powershell: PS C:\WINDOWS\system32> Set-SPOTenant -DisableAddS...
KaRocks
Oct 06, 2021Copper Contributor
But it looks like the files are deleted that were synced and I'm afraid that the files will be deleted. Do we know if that is the case?
BishopstonIT
Feb 23, 2022Copper 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)