OneDrive File Issues

How to Enable Always Keep on This Device for OneDrive via Group Policy

Huma Ashraf ChHuma Ashraf Ch Oct 26, 2026 869 views

Question details

Administrators need to configure OneDrive to automatically download all files to local storage instead of using the default Files On-Demand feature.

How to Enable Always Keep on This Device for OneDrive Using Group Policy
Product
Microsoft OneDrive
Device & OS
Windows
Scenario
Deploying administrative settings across an organization to ensure local availability of OneDrive files, which is critical when internet or cellular connections are unreliable.
Observed behavior
By default, OneDrive utilizes Files On-Demand, keeping files in the cloud and requiring users to manually download them before offline access is possible.
Before you start

Ensure you have administrative privileges on the target Windows devices or access to your domain's Group Policy Management console. If modifying the registry manually, it is highly recommended to back it up first to prevent unintended system issues.

Solution 1Recommended

Disable OneDrive Files On-Demand via Registry Editor

Modifying the Windows Registry directly forces OneDrive to download all synced files locally by turning off the Files On-Demand feature.

This method applies a machine-level policy that overrides user preferences, ensuring all OneDrive contents are stored locally.

1
Open the Registry Editor

Press Windows Key + R to open the Run dialog. Type 'regedit' and press Enter to launch the Registry Editor. Confirm the UAC prompt if it appears.

2
Navigate to the OneDrive Policies Key

Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive. If the 'OneDrive' key does not exist under Microsoft, right-click the Microsoft folder, select New > Key, and name it 'OneDrive'.

3
Create the FilesOnDemandEnabled Value

Right-click in the empty space on the right pane, select New > DWORD (32-bit) Value, and name the new value exactly 'FilesOnDemandEnabled'.

4
Modify the Value Data

Double-click 'FilesOnDemandEnabled' and set the Value data to '0'. Click OK to save the changes.

5
Restart OneDrive

Close the Registry Editor and restart the computer, or fully exit and restart the OneDrive sync client to apply the new policy.

Disable OneDrive Files On-Demand via Registry Editor
Storage Caution: Setting this registry value to 0 forces OneDrive to download a complete copy of all synced files. Ensure the target device has sufficient local disk space before applying this change.
Free Microsoft Office alternative

Manage and Edit Your Local Documents Seamlessly with WPS Office

If you are configuring OneDrive files to be available offline, you need a fast and reliable office suite to edit those files without an internet connection. WPS Office provides full compatibility with Microsoft Office formats without the heavy subscription fees, making offline document processing incredibly smooth.

  1. 1. Download the Installer: Visit the official WPS Office website to download the free, lightweight installer.
  2. 2. Install WPS Office: Run the downloaded file and follow the quick setup wizard to complete the installation in minutes.
  3. 3. Edit Offline Documents: Open your local OneDrive folder and double-click any Word, Excel, or PowerPoint file to start editing offline instantly.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx) saved locally via OneDrive.Lightweight installation leaves more local disk space for your downloaded OneDrive files.Free to use with a familiar user interface, requiring zero learning curve.Seamless offline editing capabilities, perfect for traveling or working with unstable internet.
microsoft office alternative - wps office

Frequently Asked Questions

Why is OneDrive still showing cloud icons after modifying the registry?

The policy change requires a restart of the OneDrive sync client to take effect. If cloud icons persist, restart your computer. Additionally, ensure there are no conflicting user-level policies overriding the local machine settings.

Will disabling Files On-Demand consume more hard drive space?

Yes. Disabling Files On-Demand forces OneDrive to download a complete local copy of every file and folder in your synced cloud storage. Make sure your local hard drive has enough capacity to handle the full size of your OneDrive contents.

Can I enable 'Always Keep on This Device' for specific folders only?

Group Policy and registry changes apply to the entire OneDrive sync client. If you only want specific folders stored locally, you should leave Files On-Demand enabled. Then, simply right-click the desired folders in File Explorer and manually select 'Always keep on this device'.

How do I revert this policy if my computer runs out of storage?

To restore the default Files On-Demand behavior, either delete the 'FilesOnDemandEnabled' registry key, change its value from '0' to '1', or set the corresponding Group Policy back to 'Not Configured'.