logo
search
OneDrive File Issues

Fix OneDrive File Extension Exclusion Not Working

Huda QurayshiHuda Qurayshi Sep 30, 2026 869 views

Question details

Users are experiencing an issue where OneDrive continues to synchronize excluded file types, such as .lnk shortcuts, ignoring configured exclusions.

Fix OneDrive File Extension Exclusion Not Working
Product
Microsoft OneDrive
Device & OS
Windows
Scenario
Configuring file extension exclusions via Group Policy or OneDrive settings to prevent specific files from syncing.
Observed behavior
OneDrive ignores exclusion rules and continues to sync excluded files, occasionally causing sync errors when those files are locked by other programs.
Before you start

Before manually editing configuration files, ensure that you have administrative privileges on your Windows PC and create a backup of your current ClientPolicy.ini file.

Solution 1Recommended

Edit ClientPolicy.ini to Manually Exclude File Extensions

Manually add the desired file extensions to the exclusion list within the OneDrive settings configuration file to bypass the sync bug.

Because the exclusion feature in OneDrive may contain a synchronization bug that ignores Group Policy—especially on personal accounts—manually updating the ClientPolicy.ini file is the most effective workaround.

1
Locate the OneDrive Settings Folder

Press the Windows key + R to open the Run dialog, type '%localappdata%\Microsoft\OneDrive\settings\Personal', and press Enter.

2
Open the ClientPolicy.ini File

In the folder that opens, locate the file named 'ClientPolicy.ini'. Right-click the file, select 'Open with', and choose Notepad.

3
Modify the Exclusion List

Find the 'FilenameExclusionList' parameter in the text file. Append the file extensions (like .lnk) or folder names you wish to exclude. Save the file and restart the OneDrive application.

Edit ClientPolicy.ini to Manually Exclude File Extensions
Business vs. Personal Accounts: Business accounts may correctly display a red 'X' when a file is blocked by an exclusion policy, whereas personal accounts might still attempt to sync the files due to this known limitation.
Free Microsoft Office alternative

Try WPS Office for Seamless File Management and Cloud Syncing

If you are tired of dealing with synchronization bugs in Microsoft OneDrive and Office, WPS Office offers a highly reliable, lightweight alternative. It features built-in WPS Cloud storage, providing effortless document syncing, easy collaboration, and complete compatibility with your existing Microsoft Office files.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
  2. 2. Open Your Documents: Launch WPS Office and open your existing Microsoft Word, Excel, or PowerPoint files without losing any formatting.
  3. 3. Enable WPS Cloud: Sign in to your WPS account and enable WPS Cloud to automatically and reliably sync your important files across devices.
Built-in, reliable WPS Cloud syncing to securely back up your documents without exclusion bugs.Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Lightweight design with a familiar interface for a seamless migration.Free to download and use for your daily productivity needs.
QA img-9

Frequently Asked Questions

Why does OneDrive still attempt to sync files locked by other programs?

When a program locks a file (such as a database or a temporary working file), OneDrive cannot read it, which causes a synchronization error. Although excluding these file types is supposed to prevent the error, a known sync bug causes OneDrive to ignore the exclusion and attempt to back them up anyway.

Does Group Policy work for excluding files in a OneDrive Personal account?

Group Policy configurations for OneDrive file exclusions are primarily designed for OneDrive for Business. Personal accounts frequently ignore these Group Policies, making it necessary to manually edit the ClientPolicy.ini file to enforce exclusions.

Will updating to a Windows Insider Preview build fix the OneDrive sync exclusion bug?

Not necessarily. Many users have reported that the file extension exclusion bug persists even when testing the latest Insider Preview builds of Windows and OneDrive. Manually modifying the ClientPolicy.ini file remains the most reliable workaround.