How to Remove “Add shortcut to OneDrive” in SharePoint Online?

The “Add Shortcut to OneDrive” is a handy new feature in SharePoint Online to add any Library, Folder, or File shortcuts to a user’s OneDrive, so that you can visit them later.

How the “Add Shortcut to OneDrive” Feature works?

The “Add shortcut to OneDrive” feature is a great new way to keep track of all the frequent libraries, folders, and documents you use on a regular basis. Upon clicking the link, it creates a shortcut link in your OneDrive for Business under the “My files” view, So that you can use OneDrive for Business to assemble links for SharePoint Online.

remove add shortcut to onedrive from sharepoint sites

How to remove “Add shortcut to OneDrive”?

Problem: When users add SharePoint libraries as shortcuts, OneDrive client on the user’s machine will attempt to sync everything (including all the files/folders in those shortcut libraries) and when the total size of the synced libraries exceeds their storage space this immediately fills out the user’s disk space! While “Files on-Demand” settings can mitigate this issue, that’s not the case with most of the users!

So, Here is the PowerShell script to disable add shortcut to OneDrive. Once you run this PowerShell Shell cmdlet, the Add shortcut to OneDrive option is removed from SharePoint Online document libraries. However, existing shortcuts remain in place on OneDrive.

Connect-SPOService "https://crescent-admin.sharepoint.com"

Set-SPOTenant -DisableAddShortCutsToOneDrive $True

It took about 15 minutes to propagate on all sites in my tenant, and the “Add shortcut to OneDrive” is totally removed on all sites. Please note, this PowerShell disables the “Add Shortcut to OneDrive” from all sites in the tenant (Not on specific sites). To turn ON add a shortcut to OneDrive back, use:

Set-SPOTenant -DisableAddShortCutsToOneDrive $False

Here is the script in action: Add Shortcut to OneDrive buttons removed!

how to remove add shortcut to onedrive

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

2 thoughts on “How to Remove “Add shortcut to OneDrive” in SharePoint Online?

  • September 14, 2021 at 7:40 PM

    The other problem shows up when a user adds the shortcut of folder in a library they also have synced to the same PC. The synced library stops syncing without a lot of explanation to the user, and chaos ensues.

    Thanks for sharing this, we may need to use this to prevent these issues.

    Reply
  • September 9, 2021 at 8:40 PM

    Thank you for sharing this! 🙂

    Reply

Leave a Reply