How to Configure OneDrive Location in Hybrid Environments with Intune


Configure OneDrive Location in Hybrid Environments Using Intune

Introduction

Many organizations still operate in a hybrid environment where both SharePoint Server 2019 (on-premises) and SharePoint Online are used. While this hybrid setup gives flexibility, it also introduces complexity when it comes to OneDrive for Business.

By default, the OneDrive sync client (OneDrive.exe) attempts to connect to the cloud first. This can cause issues for users who need to sync files from on-premises SharePoint document libraries or whose identities exist in both on-prem and cloud directories.

To solve this, Microsoft Intune provides a policy setting that lets administrators explicitly specify the OneDrive location in a hybrid setup. With the right configuration, you can control whether OneDrive connects first to SharePoint Online or to your on-premises SharePoint.


Why You Should Specify the OneDrive Location

Without a defined OneDrive location policy, users may encounter:

  • Repeated sync errors when the client tries to connect to the wrong environment.
  • File access delays when switching between cloud and on-premises storage.
  • User confusion because their files don’t appear where they expect them.
  • Increased helpdesk tickets from employees struggling with hybrid sync setups.

By applying the Intune policy, you:

  • Ensure the sync client consistently connects to the intended service.
  • Provide a smoother end-user experience.
  • Gain greater control over hybrid storage during your cloud migration journey.

Step-by-Step: Configure OneDrive Location in Intune

Step 1: Create a New Policy

  1. Sign in to the Intune admin center.
  2. Go to: Devices > Configuration profiles > Create profile.
  3. Select the following options:
    • Platform: Windows 10 and later
    • Profile type: Settings catalog

Step 2: Add the OneDrive Setting

  1. Under the Settings picker, search for OneDrive.
  2. Locate Specify the OneDrive location in a hybrid environment.
  3. Configure the option:
    • Enabled → OneDrive will connect first to SharePoint Online.
    • Disabled → OneDrive will connect first to SharePoint Server 2019 (on-premises).

👉 This flexibility lets you decide whether to prioritize the cloud or keep users tied to on-prem storage while you prepare migration plans.


Step 3: Assign the Policy

  • Target the policy to specific Azure AD groups (for example, hybrid users or departments still relying on on-premises SharePoint).
  • You can also use exclusions to prevent certain groups from receiving the policy.

This fine-tuned targeting avoids forcing settings on users who don’t need them.


Step 4: Review and Deploy

  • Review your configuration carefully.
  • Click Create to push the policy to devices.
  • Intune will now manage how the OneDrive sync client behaves across your hybrid environment.

How to Monitor Policy Deployment

In Intune

  • Go to Devices > Configuration profiles and check the deployment status.
  • Reports will show whether the policy succeeded or failed on assigned devices.

On a Windows Device

  • Open Event Viewer.
  • Navigate to:
    Applications and Services Logs > Microsoft > OneDrive > Admin.
  • Look for Event ID 814 → confirmation that the hybrid OneDrive location policy has applied successfully.

👉 This event is a quick way to verify whether the setting is live on an endpoint.


Managing the Policy After Deployment

  • If some users no longer require the setting, you can remove assigned groups.
  • To reset OneDrive to default behavior, you can delete the policy entirely from Intune.

This flexibility makes it easy to adapt policies as your organization shifts more workloads to the cloud.


Best Practices for Hybrid OneDrive Management

  • Pilot before rollout: Test the policy with a small group of hybrid users before broad deployment.
  • Document group assignments: Keep track of which users need cloud-first vs. on-prem-first sync.
  • Plan for migration: If your goal is to move entirely to SharePoint Online, use the policy as a temporary bridge rather than a permanent solution.
  • Educate users: Provide guidance on how OneDrive will behave depending on their policy assignment.

Conclusion

In hybrid environments, controlling the OneDrive sync client location is essential to avoid user frustration and sync errors. With Microsoft Intune, admins can quickly configure a policy that determines whether OneDrive connects first to SharePoint Online or SharePoint Server 2019.

By monitoring deployment, assigning the policy to the right groups, and adjusting settings as your cloud adoption matures, you can ensure a seamless experience for users while maintaining control over corporate data storage.