Removing mapped SharePoint shortcuts from OneDrive automatically without end user involvement‎

Copper Contributor

I'm looking for a way to remove mapped SharePoint shortcuts from OneDrive for each user in my tenant without getting the end user involved.

 

I have found a way to disable the add OneDrive shortcut optionality in SharePoint so users can't add it moving forward:
Set-SPOTenant -DisableAddShortCutsToOneDrive $True

But that option doesn't remove the already mapped shortcuts user have in their file explorers.
The files in the SharePoint need to remain, just the users ability to access them via file explorer needs to be removed.
I'm looking for any insight, PowerShell commands, or something i have missed.

1 Reply

@SDoof you could use OneDrive sync setting. This won’t remove shortcut but will ensure files aren’t stored locally on a device.