TechBuzzPro

Stop OneDrive Filling Your PC: Files On-Demand via Intune

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can stop OneDrive from filling a PC by enforcing Files On-Demand through Intune. Files On-Demand keeps cloud files as placeholders on the disk and downloads them only when opened, so local storage stays small. To do it centrally, create an Intune configuration profile that sets OneDrive to use Files On-Demand and prevents users from turning it off, then assign it to your device or user groups. This guide walks through the policy, the prerequisites, and the checks that confirm it is working.

What You'll Need

  • Microsoft Intune admin access (or an Intune role with permission to create and assign device configuration profiles).
  • Devices enrolled in Intune and running Windows 10 or Windows 11.
  • The OneDrive sync app installed on target devices (the modern OneDrive sync app, not the old groove.exe client).
  • Devices signed in to OneDrive with a work or school account, or a Microsoft account, depending on your environment.
  • A test device or small pilot group before broad rollout.

Menu labels in Intune and the OneDrive sync app can differ slightly by tenant version, device platform, and region. The steps below use the current Intune admin center layout; if a label looks different, look for the closest matching option in the same section.

Step-by-Step

  1. Open the Intune admin center. Sign in at the Microsoft Intune admin center with an admin account.
  2. Create a configuration profile. Go to Devices > Configuration > Create > New policy. Choose Windows 10 and later as the platform, then pick Templates and select the Administrative Templates template type. Click Create.
  3. Name the policy. Give it a clear name such as OneDrive – Enforce Files On-Demand and add a description so other admins know its purpose.
  4. Find the OneDrive settings. In the configuration settings, use the search box to find the OneDrive policy area (the administrative template category for OneDrive). The exact category name may appear as OneDrive or under Windows Components depending on the template version.
  5. Enable Files On-Demand. Locate the setting that controls Files On-Demand (often worded as “Use OneDrive Files On-Demand” or “Enable Files On-Demand”). Set it to Enabled. This turns the feature on for the device.
  6. Prevent users from disabling it. Find the related setting that stops users from turning off Files On-Demand (often worded as “Prevent users from turning off Files On-Demand” or “Disable Files On-Demand”). Set it to Enabled so the feature stays on. If you cannot find this second setting in the template, skip it and rely on the first setting plus user guidance.
  7. Assign the policy. Go to the Assignments tab and add the Entra ID group containing your pilot devices or users. Use a device group if you want the policy applied regardless of who signs in.
  8. Review and create. Check the settings summary and click Create. Intune will deploy the policy at the next device check-in.
  9. Force a sync on a test device. On the device, open Settings > Accounts > Access work or school, select the work account, and choose Info > Sync. Alternatively, open the Company Portal app and sync from there. You can also restart the device.
  10. Verify Files On-Demand is active. Open File Explorer, right-click the OneDrive folder in the navigation pane, and choose Properties or open OneDrive settings. Confirm Files On-Demand is enabled and that the option to turn it off is greyed out or unavailable. Files that have not been opened should show a cloud icon, meaning they are online-only placeholders.
  11. Confirm disk usage drops. Check free space on the system drive before and after. With Files On-Demand on, previously downloaded files can be made online-only, freeing space. Note that enabling the policy does not automatically dehydrate files that are already downloaded; users can right-click a folder and choose Free up space to convert them to online-only.

Common Mistakes

  • Assuming the policy shrinks existing data instantly. Enabling Files On-Demand does not delete or dehydrate files already on disk. Use Free up space on folders to reclaim room.
  • Assigning to the wrong group. If the policy targets a user group but the device is shared, the setting may not apply as expected. Match the assignment type to how the device is used.
  • Using the old OneDrive client. Files On-Demand requires the modern OneDrive sync app. Devices running the legacy client will not honor the setting.
  • Forgetting the “prevent users from turning it off” setting. Without it, users can disable Files On-Demand locally and fill the disk again.
  • Expecting the policy to apply immediately. Intune policies apply at device check-in, which can take time. Force a sync or restart to speed it up.
  • Confusing OneDrive with SharePoint shortcuts. Files On-Demand applies to synced OneDrive and SharePoint libraries; shortcuts to shared libraries also use placeholders, but the policy must still be applied to the device.

Tips

  • Pilot on a small group first and check disk usage before rolling out broadly.
  • Combine the policy with user communication: explain that cloud icons mean files are safe online and open on demand.
  • Use Intune reports to confirm the policy applied successfully to each device.
  • If users need offline access to specific folders, they can right-click and choose Always keep on this device; plan for that storage need.
  • Keep the OneDrive sync app updated via Intune or Windows Update so Files On-Demand behaves consistently.

Troubleshooting

If Files On-Demand does not turn on after the policy applies, work through these checks in order:

  1. Confirm the policy reached the device. In Intune, open the device and review its configuration profile status. Look for a success state; if it shows pending or error, check the assignment and the device check-in time.
  2. Force a policy sync. On the device, go to Settings > Accounts > Access work or school, select the account, and choose Info > Sync. Restart the device afterward.
  3. Check the OneDrive app version. Make sure the modern OneDrive sync app is installed and up to date. An outdated or legacy client will not support the setting.
  4. Verify the user is signed in. Files On-Demand requires an active OneDrive sign-in. If the user is signed out, the feature cannot function.
  5. Look for conflicting policies. Another configuration profile or Group Policy might override the OneDrive setting. Review other policies assigned to the same group.
  6. Recreate the profile if needed. If the setting is missing from the template or the policy fails repeatedly, delete and recreate the configuration profile, then reassign it.

If the policy applies but users can still turn Files On-Demand off, confirm the “prevent users from turning it off” setting is enabled and assigned to the same group. If disk space still fills up, remind users to use Free up space on large folders; the policy does not automatically dehydrate existing files.

Frequently Asked Questions

Does Files On-Demand delete my files from the cloud?

No. Files On-Demand only changes what is stored locally. Files remain in OneDrive and open normally when clicked.

Will enabling the policy free up space on PCs that are already full?

Not automatically. It prevents future downloads from filling the disk, but existing downloaded files must be made online-only using Free up space.

Can users still keep important folders offline?

Yes. Users can right-click a folder and choose Always keep on this device to keep it downloaded, as long as disk space allows.

Does this work on Windows 10 and Windows 11?

Yes, Files On-Demand is supported on both, provided the modern OneDrive sync app is installed and the device is enrolled in Intune.

What happens if a user turns off Files On-Demand manually?

If the “prevent users from turning it off” setting is enabled, the option is blocked. Without it, users can disable the feature locally.

Do I need a separate license for Files On-Demand?

No separate license is required beyond what you already use for OneDrive and Intune in your organization.