Forum Discussion
"Add Shortcut to OneDrive" missing from SharePoint sites recently
- 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.
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?
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.
- mdcastorenaOct 17, 2023Brass ContributorAwesome! It just took some time. I now see the "Add Shortcut to OneDrive" option in our libraries. Thank you so much.