How to Stop Programs from Saving or Installing in OneDrive
Question details
Users want to prevent applications and installers from automatically saving user data or installing files into the OneDrive directory.

- Product
- Microsoft OneDrive / Windows
- Device & OS
- Windows
- Scenario
- Installing new software or saving application data when OneDrive is active on the PC.
- Observed behavior
- Programs default to paths like C:\Users\<username>\OneDrive\Desktop. The OneDrive folder recreates itself even after unlinking or uninstalling the app, often causing storage full errors during installation.
Before making changes to your OneDrive folder settings, ensure you have backed up your important local files and cloud data to an external drive to prevent accidental data loss during folder redirection.
Disable OneDrive Folder Backup and Restore Default Paths
This is the most effective method. It stops Windows from redirecting your special user folders (Desktop, Documents, Pictures) to OneDrive.
Unlinking or uninstalling OneDrive does not fix the issue because the Windows registry still points to the OneDrive folder paths. You must reconnect OneDrive temporarily to disable the backup feature.
Launch the OneDrive application and sign in to your Microsoft account so you can access the synchronization settings.
Click the OneDrive cloud icon in your system tray (taskbar), click the gear icon, and select 'Settings'.
Navigate to the 'Sync and back up' tab and click on the 'Manage backups' button.
Toggle off the backup switches for 'Desktop', 'Documents', and 'Pictures'. Confirm any prompts asking if you want to stop backing up.
Go to the 'Account' tab, click 'Unlink this PC', and then restart your computer. Verify that your folders now point to your normal local user directory.

Change Default Save Locations in Windows
Use this method if Windows itself is configured to save new apps and content to OneDrive.
Modify the Application's Specific Installation Path
Use this solution for installers that default to the Desktop or Documents folder instead of Program Files.
Save Your Documents Locally with WPS Office
If you are frustrated with Microsoft Office and Windows forcing your files into OneDrive, switch to WPS Office. It provides full control over your default save locations, operates reliably on your local storage, and offers seamless compatibility with Microsoft Word, Excel, and PowerPoint without the forced cloud synchronization.
- 1. Download WPS Office: Get the free installer from the official WPS website.
- 2. Install Locally: Follow the setup instructions to install WPS Office directly on your local hard drive.
- 3. Set Default Save Path: Open WPS Settings and specify your preferred local folder for saving all future documents.

Frequently Asked Questions
Why does my desktop folder have OneDrive in the file path?
Windows automatically redirects your Desktop, Documents, and Pictures folders to OneDrive when the OneDrive Folder Backup feature is enabled. This alters the default path to include the OneDrive directory.
Can I just uninstall OneDrive to fix the folder redirection?
No. If you uninstall OneDrive without turning off the folder backup settings first, the Windows registry will continue to look for the OneDrive paths. You must disable the backup in the OneDrive settings before unlinking or uninstalling.
How do I change the default save location for my older programs?
Many older programs are hard-coded to save user data to your default 'Documents' folder. By disabling OneDrive folder backup as outlined in the recommended solution, your Documents folder will revert to the local PC path, automatically resolving the issue for these programs.




