卸载Windows Defender以及移除Windows Defender图标 批处理

这个玩意确实不好用 我们开始干掉他

卸载脚本

@echo off
cd /d “%~dp0”
echo Uninstalling …
CLS
install_wim_tweak.exe /o /l
install_wim_tweak.exe /o /c “Windows-Defender” /r
install_wim_tweak.exe /h /o /l
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v “SecurityHealth” /f
echo.
echo 请重启 Windows 10 以完成卸载。
echo.
pause

移除Windows Defender图标

rd /s /q “%windir%\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\microsoft.system.package.metadata\”
echo y|takeown /f “%windir%\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\resources.pri”
echo y|icacls “%windir%\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\resources.pri” /grant administrators:F
del “%windir%\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\resources.pri” /f
echo y|takeown /f “%ProgramFiles(x86)%\Windows Defender\*.*”
echo y|icacls “%ProgramFiles(x86)%\Windows Defender\*.*” /grant administrators:F
rd /s /q “%ProgramFiles(x86)%\Windows Defender\”
echo y|takeown /f “%ProgramFiles%\Windows Defender\*.*”
echo y|icacls “%ProgramFiles%\Windows Defender\*.*” /grant administrators:F
rd /s /q “%ProgramFiles%\Windows Defender\”
echo y|takeown /f “%ProgramFiles%\Windows Defender Advanced Threat Protection\*.*”
echo y|icacls “%ProgramFiles%\Windows Defender Advanced Threat Protection\*.*” /grant administrators:F
rd /s /q “%ProgramFiles%\Windows Defender Advanced Threat Protection\”
echo y|takeown /f “%ALLUSERSPROFILE%\Microsoft\Windows Defender\*.*”
echo y|icacls “%ALLUSERSPROFILE%\Microsoft\Windows Defender\*.*” /grant administrators:F
rd /s /q “%ALLUSERSPROFILE%\Microsoft\Windows Defender\”
echo y|takeown /f “%ALLUSERSPROFILE%\Microsoft\Windows Defender Advanced Threat Protection\*.*”
echo y|icacls “%ALLUSERSPROFILE%\Microsoft\Windows Defender Advanced Threat Protection\*.*” /grant administrators:F
rd /s /q “%ALLUSERSPROFILE%\Microsoft\Windows Defender Advanced Threat Protection\”
taskkill /im smartscreen.exe /f
echo y|takeown /f “%windir%\System32\smartscreen.exe”
echo y|icacls “%windir%\System32\smartscreen.exe” /grant administrators:F
del “%windir%\System32\smartscreen.exe” /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SecurityHealthService” /v Start /t reg_dword /d 00000004 /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService” /v Start /t reg_dword /d 00000004 /f
PAUSE

保存为BAT文件,以管理员身份运行

 

RIPRO主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
91网赚 » 卸载Windows Defender以及移除Windows Defender图标 批处理
已有 0 条评论

提供最优质的资源集合

立即查看 了解详情
//WordPress百度主动推送功能