Forum Discussion
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 -DisableAddShortcutsToOneDrive $True
WARNING: Users in your organization will no longer be able to add new shortcuts to their OneDrive while the feature is in Public Preview. However, existing shortcuts will remain functional.
Which is exactly what we want but... It persists.
Any help on removing this from the sites?
- mgudites1Brass Contributor
This feature is completely pointless and the inability to turn it off is causing big problems for us. Users don't understand what the feature is for, they click it to see what it does, and then the OneDrive "Sync" connection they already have set up stops working. I don't see why the two things have to be mutually exclusive in the first place, but if it's one or the other, we need a way to turn the "Add a shortcut" thing OFF.
I upvoted the associated request on UserVoice; now I suppose it's just a matter of sit-and-wait for six years for Microsoft to do something about it, like everything else that ends up on UserVoice.
- RonaldvdMeerIron Contributor
Have you read my comments. It is possible disable shortcuts
- mgudites1Brass ContributorThat Powershell command no longer works. I tried it, as did at least one other person on this thread. It's not working.
- TechThatworksCopper Contributor
Hi
I had the same problem that this command was not chancing anything. I resolved it by running:
Update-Module -Name Microsoft.Online.SharePoint.PowerShellAfter that I run the command again: Set-SPOTenant -DisableAddShortcutsToOneDrive $True
Now it worked within few seconds 🙂- Hillside126Copper ContributorTechThatworks
Hello!
I had a question that hopefully you can help me answer. After removing this function from your SharePoint Online Tenant, do you know if this also removed the function from OneDrive to "Add a shortcut to my files" for folders that are Shared from one OneDrive to another?
I do not believe that this function should be removed, but I haven't been able to find anything online about it. This is the last thing we need to figure out before we can move forward with removing "Add a shortcut to OneDrive" from SharePoint.
- MichaelDelpachBrass ContributorI have totally gone 180 on this. Add Shortcut to OneDrive has the following benefits over Sync which took me a while to realise:
Deleting shortcuts from your OneDrive does not delete shared files within Teams channels or SharePoint Online sites so all shared files are safe.
You can keep all your Teams channels and SharePoint Online sites in one place using File Explorer.
Moving to another PC will only require you to sign-in to your OneDrive account and all your shortcuts will be intact.- Kevin_CrouchBrass Contributor
I agree that the experience is better IF they only every try to sync that one location.
The problem comes in that they don't understand that syncing Folder C from folder A > B > C means that they now can't sync B or A.What would be ideal (to my mind) would be something like folder
C added as shortcut, and try to add folder B or A, and so the client just moves everything and includes the NEW whole filepath requested - and B (and C) or A (and B>C are all synced at the highest requested folder level synced.Right now, if you add Shortcuts to the OneDrive, it also prevents SharePoint sites showing up as separate entries, which I feel is a MUCH cleaner experience for the users to FIND the files and understand where they are saved into.
For Example last week I had users who didn't understand why everything was saved "into their OneDrive" but "copies" were "also saved in" the SharePoint sites.
They were trying to CLEAN UP the "Extra" OneDrive copies!
These of course weren't ACTUALLY copies or extra, but they had SHORTCUTS INTO the SharePoint sites, and were actively deleting important files and causing chaos in their organization.
The versioning systems let us restore things fine, but they had no idea the shortcuts were linking things.
Cleared out the shortcuts, and set them up with separately synced libraries and now it was obvious WHERE things were stored!- ssimardCopper ContributorThis is so true. I'm very often seeing people with shortcuts in their OneDrive and they don't even know how it got there. And like someone else said in the thread, when you try to delete that shortcut, sometimes the "Delete shortcut" in Explorer does nothing, and other times deleting the shortcut deletes everything that shortcut leads to. It happened to me at least twice where I had to restore a whole Team from the bin.
I am currently in the process of disabling Teams sync for all my clients (keeping just their OneDrive). So far so good, but I now need to remove both the Sync and Add shortcut to OneDrive buttons. Microsoft sure ain't making it easy for people who want to go 100% cloud only with no sync.
- balajinarniCopper Contributor
RanchoJack I am having the same issue, by any chance did you get a solution for this?
- Joe McGiven CorbanBrass Contributor
There is a UserVoice about this - have a look here and vote for it too.
Best bet is to test that Powershell, and if it doesn't work, then raise a ticket to MS to get this resolved. This new feature isn't wanted by us either, and we want it turned off too.
- RonaldvdMeerIron Contributor
Removing the add shortcut to Onedrive from sharepoint Sites is working again.
Update your sharepoint powershell module and run the command to disable the shortcut
Shortcut is now gone in my Tenant.
- Richard JennerBrass ContributorI just ran this and 15 minutes later it is removed from my tenant. 🙂
When i run get-spotenant i don't see a listing for that setting though.....
- Scott PatersonCopper Contributor
I have logged a call with Microsoft this morning as this command was not working for me. They have replied to inform me that this command no longer works. I did express concern that it is important that customers have the ability to switch this feature off as it is confusing and has some potential for users to misinterpret what they are seeing and make potentially dangerous changes/deletions to shared libraries.
The agent confirmed that he had heard similar concerns and suggested that I request this feature be re-instated. I will do but not holding much hope for it to re-appear any time soon.
- MavDovlatCopper ContributorHello
Go to your OneDrive online and delete the SharePoint shortcut folder , done
Best To all- mgudites1Brass Contributor
MavDovlat Riiiiiiiiight, but that doesn't stop users from creating the shortcuts in the first place. It breaks the existing "Sync" between SharePoint and their OneDrive desktop clients, the data stops syncing, and then other people on the team aren't seeing the user's changes to the SharePoint library because the user doesn't understand it's not actually syncing anymore.. That's the problem.
- KaRocksCopper ContributorBut 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?
- BishopstonITCopper 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)
- MichaelDelpachBrass Contributor
RanchoJack totally agree. This "Add shortcut to OneDrive" is a deadly feature as it stops syncing already synced SharePoint Onlines sites without users knowing. I cannot believe Microsoft would roll out some out like this. I had a few users who kept working in their local copy of SharePoint Online site thinking they are connected, but they had inadvertently also added a folder or two from SharePoint Online to their OneDrive using this "Add shortcut to OneDrive" button. When you later find this out, and try to sync the SharePoint Online library, you cannot do that either because OneDrive app would say: cannot sync.