XPAND-APPS • FREE WINDOWS & PC UTILITIES HUB
Windows & PC Utility Tools
Lightweight, transparent, open-source scripts and mini utilities built to solve everyday Windows 10 & Windows 11 annoyances — zero installers, zero ads, and full source code inspection before you run anything.
WINDOWS 10 & WINDOWS 11 • BATCH SCRIPT (.BAT) • OPEN SOURCE
1. Remove Microsoft Edge (`remove_edge.bat`)
Uninstalls Microsoft Edge cleanly from Windows 10 and Windows 11, deletes leftover Edge update tasks/services and shortcuts, and blocks automatic reinstallation via Windows Update — while keeping Edge WebView2 Runtime intact so desktop apps keep working.
- Requires confirmation (type
YES) before making any change - Uses official Edge
setup.exe --uninstall+ Appx package cleanup - Adds
DoNotUpdateToEdgeWithChromiumpolicy to stop auto-reinstall

Inspect Full Source Code (`remove_edge.bat` — 130 Lines)
@echo off
title Remove Microsoft Edge and User Data (Windows 10)
:: 1. Ensure Administrator privileges
net session >nul 2>&1
if %errorLevel% neq 0 (
echo [ERROR] Administrator privileges are required.
echo Right-click this .bat file and select "Run as administrator".
pause
exit /b 1
)
echo ============================================================================
echo WARNING: This will uninstall Microsoft Edge and permanently delete all
echo Edge user data (bookmarks, passwords, history, cookies, and extensions).
echo Note: Edge WebView2 Runtime is preserved so desktop apps keep working.
echo ============================================================================
echo.
setlocal EnableDelayedExpansion
set "CONFIRM="
set /p "CONFIRM=Type YES to continue: "
if /i not "!CONFIRM!"=="YES" (
echo Operation cancelled.
pause
exit /b 0
)
endlocal
echo.
echo [1/6] Stopping Microsoft Edge processes and services...
for %%P in (
msedge.exe
MicrosoftEdgeUpdate.exe
elevation_service.exe
identity_helper.exe
msedge_pwa_launcher.exe
) do (
taskkill /f /im "%%P" >nul 2>&1
)
for %%S in (edgeupdate edgeupdatem MicrosoftEdgeElevationService) do (
sc stop "%%S" >nul 2>&1
sc delete "%%S" >nul 2>&1
)
echo [2/6] Running Edge uninstaller...
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f >nul 2>&1
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f >nul 2>&1
for %%D in (
"%ProgramFiles(x86)%\Microsoft\Edge\Application"
"%ProgramFiles%\Microsoft\Edge\Application"
"%LocalAppData%\Microsoft\Edge\Application"
) do (
if exist "%%~D" (
for /f "delims=" %%S in ('dir /b /s "%%~D\setup.exe" 2^>nul') do (
echo Running uninstaller: "%%S"
"%%S" --uninstall --msedge --system-level --verbose-logging --force-uninstall
"%%S" --uninstall --system-level --verbose-logging --force-uninstall
"%%S" --uninstall --user-level --verbose-logging --force-uninstall
)
)
)
:: Remove UWP/Appx Edge packages if present
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"Get-AppxPackage -AllUsers *Microsoft.MicrosoftEdge.Stable* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue; Get-AppxPackage *Microsoft.MicrosoftEdge* | Where-Object { $_.NonRemovable -eq $false } | Remove-AppxPackage -ErrorAction SilentlyContinue" >nul 2>&1
echo [3/6] Removing Edge Update scheduled tasks...
for /f "tokens=1 delims=," %%T in ('schtasks /query /fo csv /nh 2^>nul ^| findstr /i "MicrosoftEdgeUpdate"') do (
schtasks /delete /tn "%%~T" /f >nul 2>&1
)
echo [4/6] Deleting Edge program folders, user data, and shortcuts...
for %%F in (
"%ProgramFiles(x86)%\Microsoft\Edge"
"%ProgramFiles(x86)%\Microsoft\EdgeUpdate"
"%ProgramFiles(x86)%\Microsoft\Temp"
"%ProgramFiles%\Microsoft\Edge"
"%ProgramFiles%\Microsoft\EdgeUpdate"
"%ProgramData%\Microsoft\EdgeUpdate"
) do (
if exist "%%~F" (
takeown /f "%%~F" /r /d y >nul 2>&1
icacls "%%~F" /grant administrators:F /t /q >nul 2>&1
rd /s /q "%%~F" >nul 2>&1
)
)
:: Delete Edge profile data and shortcuts for all local users
for /d %%U in ("%SystemDrive%\Users\*") do (
for %%P in (
"%%~U\AppData\Local\Microsoft\Edge"
"%%~U\AppData\Local\Microsoft\EdgeUpdate"
"%%~U\AppData\Roaming\Microsoft\Edge"
) do (
if exist "%%~P" rd /s /q "%%~P" >nul 2>&1
)
del /f /q "%%~U\Desktop\Microsoft Edge.lnk" >nul 2>&1
del /f /q "%%~U\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Microsoft Edge.lnk" >nul 2>&1
del /f /q "%%~U\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" >nul 2>&1
)
del /f /q "%Public%\Desktop\Microsoft Edge.lnk" >nul 2>&1
del /f /q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" >nul 2>&1
echo [5/6] Cleaning Edge registry keys...
for %%K in (
"HKCU\Software\Microsoft\Edge"
"HKCU\Software\Microsoft\EdgeUpdate"
"HKLM\SOFTWARE\Microsoft\Edge"
"HKLM\SOFTWARE\WOW6432Node\Microsoft\Edge"
"HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate"
"HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge"
"HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update"
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge"
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update"
"HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{9459C573-B17A-45AE-9F64-1857B5D58CEE}"
) do (
reg delete "%%~K" /f >nul 2>&1
)
echo [6/6] Blocking automatic reinstallation via Windows Update...
reg add "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v "DoNotUpdateToEdgeWithChromium" /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate" /v "DoNotUpdateToEdgeWithChromium" /t REG_DWORD /d 1 /f >nul 2>&1
echo.
echo Done! Restart your computer to finish cleaning up any locked files.
pause
How to Run `remove_edge.bat` (4 Simple Steps)
- Export your bookmarks/passwords first (if you still need any data saved inside Edge).
- Click Download remove_edge.bat above and save it to your Downloads folder or Desktop.
- Right-click
remove_edge.batand select Run as administrator (if Windows Defender SmartScreen asks, click More info → Run anyway after reviewing the source code above). - Type
YESwhen prompted, press Enter, wait ~10 seconds for steps[1/6]–[6/6], and restart your computer.
More Mini PC Tools Coming Soon
This Windows & PC Tools hub will host more lightweight batch scripts and system utilities soon. Have a script request or need our Android apps? Visit Our Apps, Join Beta Testers, or contact shilmani.444@gmail.com.