Meh, I don't care for Edge, but it's not a deal breaker or anything. I expected that to make it into the next LTS version.
Just a few lines of code (original from @abbodi1406): Code: @setlocal DisableDelayedExpansion @echo off if defined PROCESSOR_ARCHITEW6432 start %SystemRoot%\Sysnative\cmd.exe /c "%0 " &exit reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || (echo Run the script as administrator&goto :TheEnd) set "u_path=%LocalAppData%\Microsoft" set "s_path=%ProgramFiles(x86)%\Microsoft" if /i %PROCESSOR_ARCHITECTURE%==x86 (if not defined PROCESSOR_ARCHITEW6432 ( set "s_path=%ProgramFiles%\Microsoft" ) ) @cls if /I $%1==$FORCE goto autoyes echo. choice /C YN /N /M "Microsoft Edge Chromium will be uninstalled. Continue? [y/n]: " if errorlevel 2 exit :autoyes sc.exe config EdgeUpdate start= disabled 2>nul sc.exe config edgeupdatem start= disabled 2>nul taskkill.exe /IM MSEdgeUpdate.exe /T /F 2>nul taskkill.exe /IM MSEdge.exe /T /F 2>nul sc.exe delete EdgeUpdate 2>nul sc.exe delete edgeupdatem 2>nul reg.exe delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul reg.exe delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul reg.exe delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul reg.exe delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul echo. for /D %%i in ("%u_path%\Edge SxS\Application\*") do if exist "%%i\installer\setup.exe" ( echo Canary... start "" /w "%%i\installer\setup.exe" --uninstall --msedge-sxs --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%u_path%\Edge Internal\Application\*") do if exist "%%i\installer\setup.exe" ( echo Internal... start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%u_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" ( echo Dev... start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%u_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" ( echo Beta... start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%u_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" ( echo Stable... start "" /w "%%i\installer\setup.exe" --uninstall --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%u_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" ( echo WebView2 Runtime... start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%s_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" ( echo WebView2 Runtime... start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%s_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" ( echo Stable... start "" /w "%%i\installer\setup.exe" --uninstall --system-level --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%s_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" ( echo Beta... start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --system-level --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%s_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" ( echo Dev... start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --system-level --verbose-logging --force-uninstall --delete-profile ) for /D %%i in ("%s_path%\Edge Internal\Application\*") do if exist "%%i\installer\setup.exe" ( echo Internal... start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --system-level --verbose-logging --force-uninstall --delete-profile ) if exist "\\?\%ProgramFiles(x86)%\Microsoft\Edge\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\Edge" if exist "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate" if exist "\\?\%ProgramFiles(x86)%\Microsoft\Temp\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\Temp" if exist "\\?\%ProgramFiles%\Microsoft\Edge\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\Edge" if exist "\\?\%ProgramFiles%\Microsoft\EdgeUpdate\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\EdgeUpdate" if exist "\\?\%ProgramFiles%\Microsoft\Temp\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\Temp" if exist "\\?\%AppData%\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" del /f /q "\\?\%AppData%\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" if exist "\\?\%SystemRoot%\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" del /f /q "\\?\%SystemRoot%\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" if exist "\\?\%UserProfile%\Desktop\Microsoft Edge.lnk" del /f /q "\\?\%UserProfile%\Desktop\Microsoft Edge.lnk" if exist "\\?\%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" del /f /q "\\?\%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /f 2>nul reg.exe add "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v DoNotUpdateToEdgeWithChromium /t REG_DWORD /d 1 /f 2>nul if /I $%1==$FORCE exit :TheEnd echo. echo Press any key to exit. pause >nul exit
Yes there are already several tools that remove Edge, the most difficult is to keep it removed because if you install a cumulative update it is reinstalled.
first of all these are not "few" lines second this code is garbage. it relies on rmdir deletion of directories do you know why? cause edgeupdate.exe /uninstall native command does not work do you know why? cause edge uwp is still present in the system so those are "few" lines of BS
see that doesn’t make sense to me. why bother uninstalling edge? any programs that use an embedded browser for, say, a sign in screen will no longer work. i’m fine with having components installed, as long as they aren’t running in the background. especially components like edge that can come close to privacy browsing options like firefox (though it still needs some work). edge is better than ie ltsc is the only version that allows disabling any and everything. you don’t need to uninstall it. you’ll obliterate ur windows instances this way
The code I posted is from @abbodi1406. There are only a few things changed. 1. "Force" option. Call the script with "force" (case insensitive) as parameter, it will not ask for confirmation and auto-exit. Using this with a startup task. 2. Configuring the two services, killing the processes and finally deleting them. Uninstallation does not work if the processes are still running. 3. Added the deletion of a few leftover Uninstall strings. Trying to cleanup the shortcuts as best as possible. 4. Changed the paths in rmdir commands (for removing leftover files and directories) to direct filesystem calls (starting with \\?\). Had a few issues with not everything getting deleted completely. Probably not necessary, but can work around the 260 character limit in paths. Also using EdgeDeflector, so, any URLs that would try to call Edge and error out now open in the default browser.
I'll quote myself. You can use the known key to modify a known working GitHub project to apply a HWID. Look here behind the "SPOILER: HWID ACTIVATION" to get a visual of one of many posted examples seen on the reconstruction thread.