Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable OneDrive sync #9

Open
wjk opened this issue Oct 23, 2023 · 11 comments
Open

Add option to disable OneDrive sync #9

wjk opened this issue Oct 23, 2023 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@wjk
Copy link

wjk commented Oct 23, 2023

First of all, thank God for people like you who make these scripts. I now have something to add to my Windows setup automation toolbox (which is annoying enough to use already, but that’s not your fault).

I am not certain if you have heard, but Microsoft has enshittified OneDrive via making it impossible to turn off Desktop and Documents folder sync, and have it stay off. The article I read (paywalled, unfortunately) says that there will be a Group Policy setting to handle this. I do not know what it is or if it has been released yet.

I just wanted to ensure that this is on your radar.

@Raphire
Copy link
Owner

Raphire commented Oct 23, 2023

Heya,

Thanks for bringing the OneDrive issue to my attention. It really is a shame how MS is ruining their OS by forcing features on people :/

Are you looking for a solution to disable/uninstall OneDrive completely, or just the folder syncing part?

@Raphire Raphire self-assigned this Oct 23, 2023
@wjk
Copy link
Author

wjk commented Oct 24, 2023

Both, honestly? 🤔 I would appreciate both a feature to disable OneDrive completely (to be put in the custom list) and to disable the folder syncing part (to be put in the default list).

@Raphire
Copy link
Owner

Raphire commented Oct 24, 2023

Fair enough!

I'll have to look into this more before I can implement this though, since it affects people's files, especially disabling syncing which moves the folder locations around.

@Raphire Raphire added the enhancement New feature or request label Oct 26, 2023
@reemoteg
Copy link

Sorry if this is a dumb question, but I'm new to Win11 and it's melting my brain... disabling the OneDrive nonsense would also disable the Windows Backup "feature," correct? BTW, thank you so much for your work.

@Raphire
Copy link
Owner

Raphire commented Oct 27, 2023

Sorry if this is a dumb question, but I'm new to Win11 and it's melting my brain... disabling the OneDrive nonsense would also disable the Windows Backup "feature," correct? BTW, thank you so much for your work.

This is true, but some people might want to use onedrive without using the folder backup feature. So giving the option to just disable the folder backup can be useful.

@reemoteg
Copy link

Agreed on having the option. Personally, I would disable both for office workstations, but I can see why someone might still want to have the option to use onedrive without the backup feature. Thank you again.

@ZaxLofful
Copy link

I agree with it being an option, but it should be strictly that "optional" and not part of the default config

@Raphire
Copy link
Owner

Raphire commented Feb 2, 2024

I agree with it being an option, but it should be strictly that "optional" and not part of the default config

This would definitely be an option, it will not be added to the default config.

@Raphire Raphire changed the title Add script to disable OneDrive nonsense? Add option to remove/disable OneDrive Feb 13, 2024
@Raphire
Copy link
Owner

Raphire commented Mar 12, 2024

Just a short update on this. I've been trying to find a good, consistent way to remove OneDrive, but unfortunately it seems to be quite a mess. Sure, there's plenty of articles with all kinds of solutions for this issue, but I haven't been able to find a method that works well and is suitable for this script.

Disabling OneDrive folder backups does look more promising, I'll be testing this soon and I'll update this issue if I have more info.

P.S. If you have a good way to uninstall OneDrive via powershell or any other way (apart from manually uninstalling it) please let me know :)

@Raphire
Copy link
Owner

Raphire commented Mar 18, 2024

Good news! I have just pushed an experimental update that adds the option to remove OneDrive via winget. I haven't fully tested it, but it seems to work well so far.

After removal any synced folders will still be inside the %USERPROFILE%/OneDrive folder, it doesn't return them to their default location in the user folder. This is a benefit in my book, as users won't 'lose' their files this way, knowledgeable users can manually move their files if they want to.

For the experimental ones among you, the experimental version can be found and downloaded here: https://github.com/Raphire/Win11Debloat/tree/experimental

To remove OneDrive select 'Custom mode' in the script menu, next open the App Selection UI by selecting option 3.

Raphire added a commit that referenced this issue Mar 29, 2024
…d more (#43)

* Added option to remove OneDrive and Edge via winget (#9)(#38)

* Added Microsoft Journal to Appslist.txt

* Added menu option for removing apps without making other changes

Other changes in this release:
- Apps are now properly removed for all users
- LastSettings file renamed to SavedSettings
- Minor changes to menus, prompts & comments
- Cleaned up & refactored script to improve readability
@Raphire
Copy link
Owner

Raphire commented Mar 29, 2024

The ability to uninstall OneDrive has been added in 0d7910e

@Raphire Raphire changed the title Add option to remove/disable OneDrive Add option to disable OneDrive sync Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants