Raphire / Win11Debloat

A simple, easy to use PowerShell script to remove pre-installed apps from Windows, disable telemetry, remove Bing from Windows search as well as perform various other changes to declutter and improve your Windows experience. This script works for both Windows 10 and Windows 11.
MIT License
12.88k stars 546 forks source link

Force remove microsoft edge regardless of region/country. #64

Closed loadstring1 closed 2 months ago

loadstring1 commented 4 months ago

Tested and works on my windows 11 home 22h2 it wiped microsoft edge out of my system. I used closed-source programs to help myself with writing this feature.

Please let me know if i should also consider force uninstalling edge webview and edge update because for now this is just edge uninstaller

fixes this issue: 38

loadstring1 commented 4 months ago

v 1.1 microsoft edge update is now removed alongside with microsoft edge fixed Test-Path and Remove-Item spam. (aka made the script look cuter)

it doesn't uninstall edge webview because you can manually uninstall it so automatic script is not really needed for that also edge webview is required for roblox studio to work so its a big adventage for people who play roblox (like me)

:)

loadstring1 commented 4 months ago

@Raphire please review when you have time to do so thx

loadstring1 commented 4 months ago

one more thing if you are wondering how to test if it works correctly and you don't have edge installed

then download edge and install it from here or just install ms edge with winget: https://www.microsoft.com/en-us/edge/download?form=MA13FJ

zoicware commented 4 months ago

I have modified an existing script from @AveYo to completely uninstall edge (webview hard locked cant uninstall anymore) OG Script: https://github.com/AveYo/fox/blob/main/Edge_Removal.bat) My edited script (Notice making a folder and exe fixes it from being unable to be uninstalled): EdgeRemove.zip

loadstring1 commented 4 months ago

I have modified an existing script from @AveYo to completely uninstall edge (webview hard locked cant uninstall anymore) OG Script: https://github.com/AveYo/fox/blob/main/Edge_Removal.bat) My edited script (Notice making a folder and exe fixes it from being unable to be uninstalled): EdgeRemove.zip

your script looks way more advanced than mine maybe make seperate pull request for that?

zoicware commented 4 months ago

I have modified an existing script from @AveYo to completely uninstall edge (webview hard locked cant uninstall anymore) OG Script: https://github.com/AveYo/fox/blob/main/Edge_Removal.bat) My edited script (Notice making a folder and exe fixes it from being unable to be uninstalled): EdgeRemove.zip

your script looks way more advanced than mine maybe make seperate pull request for that?

https://github.com/Raphire/Win11Debloat/pull/66 went ahead and replaced onedrive removal as well

loadstring1 commented 4 months ago

66 went ahead and replaced onedrive removal as well

onedrive actually uninstalls without refusing to do that so you don't have to force uninstall it

edit: thanks to your pull request i learned about -ErrorAction SilentlyContinue and i'll add this to my pull request too because why not

Raphire commented 4 months ago

I will have a look at this soon. Although I'm not sure how I feel about manually removing everything related to edge like this. It can become a pain if anything related to registry or location of stored files changes in the future.

loadstring1 commented 4 months ago

I will have a look at this soon. Although I'm not sure how I feel about manually removing everything related to edge like this. It can become a pain if anything related to registry or location of stored files changes in the future.

You can't just only rely on registry to disable windows features (such as recall) because those features waste disk space and deleting them from C drive solves that issue

about Microsoft Edge: A) It's piece of bloatware wasting around 700 MB of disk space B) There is no way of removing microsoft edge with control panel or settings but you can still force kill all of its processes and delete it from Program Files x86 and auto start C) uninstall.exe method got patched and it doesn't uninstall itself anymore you really need to forcefully uninstall it like that (aka it ignores anything that tries to uninstall msedge that way)

or finally just wait until microsoft actually allows you to uninstall msedge without refusing to do that (obviously they won't allow you to uninstall their "best browser" just because of this github repo)

What i learned is MSedge reinstalls itself by relying on edge update "service" booting on start-up in task scheduler and registry auto start so my pull request targets both microsoft edge and edge update so it doesn't reinstall itself

I still can't disagree this script looks pretty messy and it requires constant updating when microsoft moves their browser somewhere else (for example migration from program files x86 to program files you get what i mean)

Registry key removal is pretty messy and maybe i'll try fixing that mess

loadstring1 commented 3 months ago

Registry key removal is pretty messy and maybe i'll try fixing that mess

loadstring1 commented 3 months ago

keeping this up-to-date so you can merge it without conflicts in the future

Raphire commented 3 months ago

@loadstring1 I like the way you implemented this, but the method recently mentioned in #38 is a bit cleaner and utilizes the installer to do most of the heavy lifting.

I have adapted this method and included some of your tricks aswell here: https://github.com/Raphire/Win11Debloat/commit/91bd5c52255cdf5564c57ca90c20c27e1318e4b3 (This is pushed to an experimental branch)

P.S. I opted not to remove EdgeCore and EdgeUpdate. Removing EdgeCore seems to break Widgets, and may also break other OS functionality. Removing EdgeUpdate may cause Webview2 to not update anymore at all, which could pose security issues and/or cause certain apps that require Webview2 to not work at all.

loadstring1 commented 3 months ago

@loadstring1 I like the way you implemented this, but the method recently mentioned in #38 is a bit cleaner and utilizes the installer to do most of the heavy lifting.

Thank you

P.S. I opted not to remove EdgeCore and EdgeUpdate. Removing EdgeCore seems to break Widgets, and may also break other OS functionality. Removing EdgeUpdate may cause Webview2 to not update anymore at all, which could pose security issues and/or cause certain apps that require Webview2 to not work at all.

My script deletes those two because i don't really care about widgets i don't use that feature myself

but good catch i didn't notice anything because i don't use widgets at all

and for webview2: it doesn't need updates to work inside roblox so that also made me notice nothing (and its the only reason why i didnt delete webview2 its because roblox uses that for prompts such as logging into roblox account in studio)

Raphire commented 2 months ago

Closing PR (See: https://github.com/Raphire/Win11Debloat/pull/64#issuecomment-2190121090)