【个人笔记-防丢】批处理一键卸载EDGE浏览器

@echo off
setlocal enabledelayedexpansion
set "FileName="C:\Program Files (x86)\Microsoft\Edge\Application\""
for /f "tokens=* delims=, " %%a in ('dir /a /s /b %FileName%\setup.exe ') do (
echo "%%a"
call "%%a" --uninstall --system-level --verbose-logging --force-uninstall
)
del "C:\Program Files (x86)\Microsoft\" /f /s /q
rd "C:\Program Files (x86)\Microsoft\" /s /q

@echo 在注册表中关闭资讯和兴趣功能
@reg add HKLM\Software\Policies\Microsoft\Windows\Windows Feeds /v "EnableFeeds" /t REG_DWORD /f /d 0
@reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Feeds /v "ShellFeedsTaskbarViewMode" /t REG_DWORD /f /d 2
exit

可用于一键卸载win10和win11系统内置EDGE浏览器


版权声明:本文为yakeyun原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。