Windows系统更新&安全组件 一键禁用脚本.bat

Windows系统更新&安全组件 一键禁用脚本.bat

技术教程傲轩小编2025-12-31 10:50:251.13 KA+A-
chcp 65001 >nulecho ==============================================echo 正在禁用Windows Defender、自动更新及安全功能...echo 警告:此操作会大幅降低系统安全性!echo ==============================================pause:: 1. 关闭UAC(可选,如需保留可注释)reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f >nul:: 2. 删除EPP右键菜单扩展reg delete "HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1reg delete "HKLM\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1reg delete "HKLM\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1:: 3. 禁用Windows Defender核心功能reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f >nul:: 4. 禁用Defender实时防护reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScanOnRealtimeEnable /t REG_DWORD /d 1 /f >nul:: 5. 禁用Defender通知和托盘reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications" /v DisableNotifications /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray" /v HideSystray /t REG_DWORD /d 1 /f >nul:: 6. 禁用SmartScreenreg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v EnableSmartScreen /t REG_DWORD /d 0 /f >nul:: 7. 禁用Windows自动更新reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d 1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUServer /t REG_SZ /d http://127.0.0.1 /f >nulreg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUStatusServer /t REG_SZ /d http://127.0.0.1 /f >nul:: 8. 隐藏更新/Defender设置页reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v SettingsPageVisibility /t REG_SZ /d "Hide:windowsupdate;windowsupdate-action;windowsdefender" /f >nul:: 9. 禁用安全相关服务sc config BITS start= disabled >nulsc config DoSvc start= disabled >nulsc config SecurityHealthService start= disabled >nulsc config Sense start= disabled >nulsc config UsoSvc start= disabled >nulsc config WaaSMedicSvc start= disabled >nulsc config wscsvc start= disabled >nul:: 10. 停止已运行的安全服务net stop BITS /y >nul 2>&1net stop DoSvc /y >nul 2>&1net stop SecurityHealthService /y >nul 2>&1net stop Sense /y >nul 2>&1net stop UsoSvc /y >nul 2>&1net stop WaaSMedicSvc /y >nul 2>&1net stop wscsvc /y >nul 2>&1echo.echo 禁用操作完成!建议仅在测试环境使用,按任意键退出...pause >nulexit               echo.pause复制代码
需要多用管理员权限多执行几次

Windows系统更新&安全组件 一键禁用脚本.bat Windows系统更新&安全组件 一键禁用脚本.bat
下载地址:https://xiaok.lanzoum.com/iV9uk3evg0oj


点击这里复制本文地址 以上内容由铁柱网整理呈现,请务必在转载分享时注明本文地址!如对内容有疑问,请联系我们,谢谢!


扫码关注“铁柱网”微信公众号
更多精彩,等你来撩

有好的文章或资源希望【铁柱网】帮助分享推广,猛戳这里我要投稿

支持Ctrl+Enter提交
qrcode

铁柱资源网 © All Rights Reserved.  

嘿,欢迎咨询