Fix OneDrive and Microsoft 365 File Corruption on Windows 11
Question details
The user is experiencing file sync anomalies and corruption of macro-enabled files after upgrading Windows 11, OneDrive, and Microsoft 365.

- Product
- Microsoft 365 and OneDrive
- Device & OS
- Windows 11
- Scenario
- Running OneDrive synchronization alongside Microsoft 365 applications after a recent Windows 11 system upgrade.
- Observed behavior
- Desktop icons move, local files convert to online links, trusted locations are unrecognized, and macro-enabled files become corrupted when OneDrive runs. The issues stop when OneDrive is disabled.
Before troubleshooting, temporarily pause OneDrive synchronization and move your critical macro-enabled files to a local folder outside of the OneDrive directory to prevent further file corruption.
Isolate Files and Adjust OneDrive Sync Settings
Temporarily disable problematic cloud sync features and isolate macro-enabled files to stop immediate corruption and layout changes.
These symptoms are often caused by aggressive background syncing, Known Folder Backup, or Files On-Demand features conflicting with local Microsoft 365 processes after an OS upgrade.
Click the OneDrive cloud icon in your Windows 11 taskbar, select the Help & Settings gear icon, and click 'Pause syncing' to halt all background changes temporarily.
Navigate to your OneDrive folder, locate your important macro-enabled files (like .xlsm or .docm), and move them to a local, non-synchronized directory such as C:\LocalDocuments.
Open OneDrive Settings, go to the 'Sync and backup' tab, and click 'Manage backup'. Toggle off the backup for your Desktop and Documents to prevent desktop icons from moving and local files from being forcibly redirected.
In OneDrive Settings under 'Sync and backup', expand 'Advanced settings'. Adjust the 'Files On-Demand' feature to ensure your local files are not automatically converted into online-only placeholder links.

Contact OneDrive Support and Submit Feedback
Engage official Microsoft Support to diagnose build-specific bugs causing file corruption.
Switch to WPS Office to Avoid Cloud Sync File Corruption
If OneDrive and Microsoft 365 synchronization bugs are corrupting your critical macro-enabled files or disrupting your workflow on Windows 11, consider using WPS Office. It provides robust local file management, native compatibility with Microsoft formats, and does not force unwanted cloud synchronization.
- 1. Download and Install: Visit the official WPS Office website and download the free installation package for Windows.
- 2. Open Files Locally: Launch WPS Office and open your documents directly from your local hard drive, bypassing cloud sync interference.
- 3. Edit Safely: Edit and save your macro-enabled and complex documents with peace of mind, knowing they won't be corrupted by background syncs.

Frequently Asked Questions
Why are my desktop icons moving after the Windows 11 upgrade?
This typically happens when OneDrive's 'Known Folder Backup' is enabled for your Desktop. OneDrive attempts to synchronize and reorganize your desktop shortcuts based on the cloud layout. You can disable this in OneDrive Settings under 'Manage backup'.
Why do my local Microsoft 365 files suddenly show up as online links?
The OneDrive 'Files On-Demand' feature automatically attempts to free up local disk space by replacing your downloaded files with cloud-only placeholder links. You can right-click the affected files or folders and select 'Always keep on this device' to restore them to local storage.
Can OneDrive background sync corrupt Excel files with macros (.xlsm)?
Yes. Occasionally, synchronization conflicts or aggressive background syncing can corrupt complex macro-enabled files while they are open, saving, or heavily modified. It is recommended to store these files in a non-synced local folder until Microsoft addresses the bug.




