Forum Discussion
mdcastorena
Oct 11, 2023Brass Contributor
"Add Shortcut to OneDrive" missing from SharePoint sites recently
Hi all, I noticed today that the "Add Shortcut to OneDrive" button is no longer appearing as an option on top of document libraries - even from ones I have existing OneDrive shortcuts to... Did somet...
- Oct 17, 2023
mdcastorena The PowerShell commands I provided in above response are not related to SPO PowerShell Module. You can run those using PnP PowerShell module after installation as given here: Installing PnP PowerShell
However, if you want to use SPO module only, try using this:
Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential email address removed for privacy reasons Set-SPOTenant -DisableAddShortcutsToOneDrive $false
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
ganeshsanap
Oct 12, 2023MVP
I just checked on our SharePoint tenant and I am able to see this option for document libraries.
- Is this missing in all document libraries in a single SharePoint site?
- Is this missing in all document libraries from all sites in the tenant?
Maybe this was disabled by tenant administrator for your SharePoint tenant. You can enable it using PnP PowerShell commands like:
Connect-PnPOnline -Url "https://contoso-admin.sharepoint.com/" -Interactive
Set-PnPTenant -DisableAddToOneDrive $false
Note: You need to run these commands using SharePoint tenant administrator account.
Documentation: Set-PnPTenant
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
mdcastorena
Oct 17, 2023Brass Contributor
Hi ganeshsanap - thank you for the reply!
I wasn't having luck authenticating to the SPO Module with your first command, but did finally get authenticated with one of the last commands in my screenshot. However, I am getting a syntax error for your second command. Any suggestions?
- ganeshsanapOct 17, 2023MVP
mdcastorena The PowerShell commands I provided in above response are not related to SPO PowerShell Module. You can run those using PnP PowerShell module after installation as given here: Installing PnP PowerShell
However, if you want to use SPO module only, try using this:
Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential email address removed for privacy reasons Set-SPOTenant -DisableAddShortcutsToOneDrive $false
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- mdcastorenaOct 17, 2023Brass ContributorAh, thank you. So I tried the SPO way and the command completed successfully; however, the "Add Shortcut to OneDrive" option did not appear on a site I know it should. Is there a delay?
I tried the PnP way, but still having trouble getting authenticated correctly.- ganeshsanapOct 17, 2023MVP
Wait for sometime and try refreshing the document library page or try opening the document library in private browser window and see if it works.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.