taskkill /f /im msedge.exe >nul 2>&1
taskkill /f /im MicrosoftEdge.exe >nul 2>&1
taskkill /f /im MicrosoftEdgeCP.exe >nul 2>&1
taskkill /f /im MicrosoftEdgeUpdate.exe >nul 2>&1
net stop MicrosoftEdgeElevationService >nul 2>&1
net stop edgeupdate >nul 2>&1
net stop edgeupdatem >nul 2>&1

sc delete MicrosoftEdgeElevationService >nul 2>&1
sc delete edgeupdate >nul 2>&1
sc delete edgeupdatem >nul 2>&1

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /f /va
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /f /va
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Microsoft Edge" /f /va
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Edge" /f /va
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Edge" /f /va
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate" /f /va
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{c9abcf16-8dc2-4a95-bae3-24fd98f2ed29}" /f /va
REG DELETE "HKCR\microsoft-edge" /F 2>nul
REG DELETE "HKCR\MSEdgeHTM" /F 2>nul
REG DELETE "HKCR\Microsoft Edge" /F 2>nul
REG DELETE "HKCR\ms-edge" /F 2>nul
REG DELETE "HKCR\microsoft-edge-holographic" /F 2>nul
REG DELETE "HKLM\SOFTWARE\RegisteredApplications" /V "Microsoft Edge" /F 2>nul
REG DELETE "HKCU\SOFTWARE\RegisteredApplications" /V "Microsoft Edge" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone\NonPackaged\C:#Program Files (x86)#Microsoft#Edge#Application#msedge.exe" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam\NonPackaged\C:#Program Files (x86)#Microsoft#Edge#Application#msedge.exe" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge" /F 2>nul
REG DELETE "HKCU\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe" /F 2>nul
REG DELETE "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msedge.exe" /F 2>nul
REG DELETE "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msedge.exe" /F 2>nul
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\EdgeUpdate" /v "DisableAutoUpdateChecks" /t REG_DWORD /d 1 /f

DEL /F /Q "%PUBLIC%\Desktop\Microsoft Edge.lnk" 2>nul
DEL /F /Q "%USERPROFILE%\Desktop\Microsoft Edge.lnk" 2>nul
DEL /F /Q "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 2>nul
DEL /F /Q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 2>nul

IF EXIST "%ProgramFiles(x86)%\Microsoft\Edge" (((TAKEOWN /R /A /F "%ProgramFiles(x86)%\Microsoft\Edge" /D Y)&(ICACLS "\\?\%ProgramFiles(x86)%\Microsoft\Edge" /RESET /T /C /L /Q)) >nul 2>&1)
IF EXIST "%ProgramFiles%\Microsoft\EdgeUpdater" (((TAKEOWN /R /A /F "%ProgramFiles%\Microsoft\EdgeUpdater" /D Y)&(ICACLS "\\?\%ProgramFiles%\Microsoft\EdgeUpdater" /RESET /T /C /L /Q)) >nul 2>&1)
IF EXIST "%ProgramFiles(x86)%\Microsoft\EdgeUpdate" (((TAKEOWN /R /A /F "%ProgramFiles(x86)%\Microsoft\EdgeUpdate" /D Y)&(ICACLS "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate" /RESET /T /C /L /Q)) >nul 2>&1)
IF EXIST "%ProgramData%\Microsoft\EdgeUpdate" (((TAKEOWN /R /A /F "%ProgramData%\Microsoft\EdgeUpdate" /D Y)&(ICACLS "\\?\%ProgramData%\Microsoft\EdgeUpdate" /RESET /T /C /L /Q)) >nul 2>&1)
((IF EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" %SDEL_EXT_% -ACCEPTEULA -Q -R -S -NOBANNER "\\?\%ProgramFiles(x86)%\Microsoft\Edge")&(IF NOT EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" RMDIR /S /Q "\\?\%ProgramFiles(x86)%\Microsoft\Edge" 2> nul))
((IF EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" %SDEL_EXT_% -ACCEPTEULA -Q -R -S -NOBANNER "\\?\%ProgramFiles%\Microsoft\EdgeUpdater")&(IF NOT EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" RMDIR /S /Q "\\?\%ProgramFiles%\Microsoft\EdgeUpdater" 2> nul))
((IF EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" %SDEL_EXT_% -ACCEPTEULA -Q -R -S -NOBANNER "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate")&(IF NOT EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" RMDIR /S /Q "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate" 2> nul))
((IF EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" %SDEL_EXT_% -ACCEPTEULA -Q -R -S -NOBANNER "\\?\%ProgramData%\Microsoft\EdgeUpdate")&(IF NOT EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" RMDIR /S /Q "\\?\%ProgramData%\Microsoft\EdgeUpdate" 2> nul))