# Deploying the OneDrive client ## Install the sync app per-machine By default, the OneDrive sync app installs per-user, meaning that you'll need to install the app for each user on a machine. Other than where the sync app is installed, the behavior is the same.^[[Install the sync app per-machine (Windows) - SharePoint in Microsoft 365 | Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/per-machine-installation)] ### Deployment Instructions 1. Download OneDriveSetup.exe. 2. Run `OneDriveSetup.exe /allusers` # Configuring the OneDrive client ## OneDrive Policies You can configure OneDrive Client policies from Intune and Group Policy ### Intune 1. Create new Settings Catalog Profile. [Use OneDrive policies to control sync settings - SharePoint in Microsoft 365 | Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/use-group-policy) [Use administrative templates in Intune - SharePoint in Microsoft 365 | Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/configure-sync-intune) ## Silent Account Configuration Silently configure user accounts when deploying on [[Entra Join|Entra ID Joined]] devices.^[[Silently configure user accounts - SharePoint in Microsoft 365 | Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/use-silent-account-configuration)] ## SharePoint Automatic Site Syncing Specify SharePoint team site libraries to sync automatically the next time users sign in to the OneDrive sync app (OneDrive.exe), within an [[OneDrive Client#Auto Mount Timer|8-hour window]].^[[IT Admins - Use OneDrive policies to control sync settings - SharePoint in Microsoft 365 | Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/use-group-policy#configure-team-site-libraries-to-sync-automatically)] ### Using a URL to Sync SharePoint Sites You can create a URL that will start syncing the [[SharePoint]] site when opened.^[[Deploy OneDrive apps using Microsoft Endpoint Configuration Manager - SharePoint in Microsoft 365 | Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/deploy-on-windows#autoconfigure-sharepoint-site-synchronization)] For example, if you want to synchronize `https://contoso.sharepoint.com/sites/SalesTeam-01/ProjectX`, where "ProjectX" is the documents library to synchronize, to "%userprofile%\Contoso\Sales - Unicorn" folder, you need the following parameters to compose the odopen:// URL: - siteId: {ssssssss-ssss-ssss-ssss-ssssssssssss} - webId: {wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww} - webUrl: `https://contoso.sharepoint.com/sites/SalesTeam-01` - listId: {llllllll-llll-llll-llll-llllllllllll} - userEmail: [[email protected]](mailto:[email protected]) - webTitle: Sales (you would use _SalesTeam-01_ to mimic Sync button behavior instead) - listTitle: Unicorn (you would use _ProjectX_ to mimic Sync button behavior instead) The resulting odopen:// URL is: ``` odopen://sync/?siteId={ssssssss-ssss-ssss-ssss-ssssssssssss}&webId={wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww}&webUrl=https://contoso.sharepoint.com/sites/SalesTeam-01&listId={llllllll-llll-llll-llll-llllllllllll}&[email protected]&webTitle=Sales&listTitle=Unicorn ``` ### Auto Mount Timer `HKCU\Software\Microsoft\OneDrive\Accounts\Business1` Resources: https://call4cloud.nl/2020/07/once-upon-a-time-in-the-automount-of-onedrive-team-sites/ https://www.reddit.com/r/Intune/comments/udfpqb/onedrive_team_library_autosync_force_anyone_have/ ## OneDrive Reset Resetting Microsoft OneDrive resets all OneDrive settings. OneDrive will perform a full sync after the reset.^[[Reset OneDrive - Microsoft Support](https://support.microsoft.com/en-us/office/reset-onedrive-34701e00-bf7b-42db-b960-84905399050c#ID0EBH=Windows)] - Resetting OneDrive disconnects all your existing sync connections (including personal OneDrive and OneDrive for work or school if set up). You won't lose files or data by resetting OneDrive on your computer. - If you had chosen to sync only some folders before the reset, you will need to do that again once sync has completed. - You will need to complete this for your personal OneDrive and OneDrive for work or school. ## MacOS ### Remove Cached Credentials ``` /Applications/OneDrive.app/Contents/ResourcesRemoveOneDriveCreds.command` ``` ### Reset OneDrive App ``` /Applications/OneDrive.app/Contents/Resources/ResetOneDriveAppStandalone.command ```