Forum Discussion

RanchoJack's avatar
RanchoJack
Copper Contributor
Jan 15, 2021

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?

 

 

  • mgudites1's avatar
    mgudites1
    Brass 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.

      • mgudites1's avatar
        mgudites1
        Brass Contributor
        That Powershell command no longer works. I tried it, as did at least one other person on this thread. It's not working.
  • TechThatworks's avatar
    TechThatworks
    Copper Contributor

    RanchoJack 

     

    Hi
    I had the same problem that this command was not chancing anything. I resolved it by running:
    Update-Module -Name Microsoft.Online.SharePoint.PowerShell

    After that I run the command again: Set-SPOTenant -DisableAddShortcutsToOneDrive $True
    Now it worked within few seconds 🙂

    • Hillside126's avatar
      Hillside126
      Copper Contributor
      TechThatworks

      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.
  • I 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_Crouch's avatar
      Kevin_Crouch
      Brass Contributor

      MichaelDelpach 

      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! 

      • ssimard's avatar
        ssimard
        Copper Contributor
        This 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.
    • RonaldvdMeer's avatar
      RonaldvdMeer
      Iron Contributor

      Joe McGiven Corban 

       

      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 Jenner's avatar
        Richard Jenner
        Brass Contributor
        I 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 Paterson's avatar
    Scott Paterson
    Copper Contributor

    RanchoJack 

    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.

  • MavDovlat's avatar
    MavDovlat
    Copper Contributor
    Hello
    Go to your OneDrive online and delete the SharePoint shortcut folder , done
    Best To all
    • mgudites1's avatar
      mgudites1
      Brass 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.

    • KaRocks's avatar
      KaRocks
      Copper 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's avatar
        BishopstonIT
        Copper 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

         

  • 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. 

Resources