Windows系统更新&安全组件 一键禁用脚本.bat
作者:小编日期:2025-12-31浏览:4477分类:系统相关
chcp 65001 >nul
echo ==============================================
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>&1
reg delete "HKLM\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1
reg 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 >nul
reg 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 >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nul
reg 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 >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray" /v HideSystray /t REG_DWORD /d 1 /f >nul
:: 6. 禁用SmartScreen
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f >nul
reg 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 >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUServer /t REG_SZ /d http://127.0.0.1 /f >nul
reg 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 >nul
sc config DoSvc start= disabled >nul
sc config SecurityHealthService start= disabled >nul
sc config Sense start= disabled >nul
sc config UsoSvc start= disabled >nul
sc config WaaSMedicSvc start= disabled >nul
sc config wscsvc start= disabled >nul
:: 10. 停止已运行的安全服务
net stop BITS /y >nul 2>&1
net stop DoSvc /y >nul 2>&1
net stop SecurityHealthService /y >nul 2>&1
net stop Sense /y >nul 2>&1
net stop UsoSvc /y >nul 2>&1
net stop WaaSMedicSvc /y >nul 2>&1
net stop wscsvc /y >nul 2>&1
echo.
echo 禁用操作完成!建议仅在测试环境使用,按任意键退出...
pause >nul
exit
echo.
pause
需要多用管理员权限多执行几次
相关文章
- 05-12 初心 Win11 ltsc2024 26100.8328 无更新 游戏精简
- 05-11 小白羊云盘 v4.0.6 Beta 中文绿色版
- 05-11 夸克网盘PC版客户端 v3.1.4.0 屏蔽更新中文绿色版
- 05-11 123云盘PC版客户端 v3.1.5.0 屏蔽更新中文绿色版
- 05-10 Windows 11 LTSC 2024 Build 26200.8328 RTM 集成更新镜像3合1
- 05-10 PhotoScape X Pro 图片编辑软件 v4.3.0 中文直装破解版及绿色版
- 05-09 ID 2026Adobe InDesign 2026 v21.3.0.60 直装破解版
- 05-09 Ae 2026 v26.2.1.2 直装破解版m0nkrus
- 05-09 Me 2026 v26.2.2.3 直装破解版m0nkrus
- 05-08 CoolReinstall 玩酷之家系统一键重装工具 v2.0 中文绿色版
- 05-08 玩酷之家PE启动U盘制作工具 v13.0 中文绿色版
- 05-08 Microsoft Activation Scripts MAS激活工具 v3.11 中文汉化版
取消回复欢迎你发表评论:
- 协助本站优化一下
- 最近发表
- 1鸭梨鸭梨V1.0.0 收录丰富动漫资源
- 2【落攻阁影视】6.5.1 影视剧集高清秒播无广告
- 3笔趣书阁V5.0.2 沉浸阅读体验的免费小说应用
- 4【双子星动漫】6.4.5 热门题材免费高清无广告
- 5VN视频剪辑app v2.14.0 破解Pro专业版
- 6扫描全能王app v7.16.5.2604220000 破解版
- 7新追剧达人app v2.1.1 去广告纯净版
- 8Photo Lab 照片编辑换脸 v3.13.96 破解版
- 9 【眼福最新】网红可可裸拍舞蹈小庚网专属福利来了 前10送实物福利
- 10 【眼福】网红小希裸拍刀马刀马 没穿哦~~小庚网专属福利
- 11Photo Editor 照片编辑器app v13.1 解锁高级版
- 12初心 Win11 ltsc2024 26100.8328 无更新 游戏精简
- 13卡密领取系统源码 每天限制领取次数
- 14全新UI随机美女短视频管理系统源码 带后台运营版
- 15视频号黑科技短视频带货,新手也能单月到手1W+,一刀不用剪,零投资
Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图












暂无评论,来添加一个吧。