Windows系统更新&安全组件 一键禁用脚本.bat
作者:小编日期:2025-12-31浏览:4697分类:系统相关
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
需要多用管理员权限多执行几次
相关文章
- 11-28 AX文件管理器v2026.11.22高级版 文件管理+AI清理+压缩+保险箱等
- 11-25 windows软件安装包制作工具 packer_v1.0.0
- 11-21 U盘引导盘制作Rufus v4.16.2445
- 11-21 Windows 10 22H2 Build 19045.7850 RTM
- 11-21 WindowsServer 2022 官方版 26年11月
- 11-21 WindowsServer 2025 官方版 26年11月
- 11-21 Windows 11 26H2 官方版 2026年11月
- 11-20 mumu模拟器V6.8.11去广告补丁
- 11-18 布丁UI v2.2.8 超强车机导航系统 内置应用商店 自定义布局
- 11-18 FramePick 视频下载器:内置上千站点,B 站/抖音/快手/小红书通吃,Windows + Linux
- 11-18 optimizerDuck一款免费开源的 Windows 优化工具,主打性能提升、隐私保护与简洁
- 11-17 美观且高性能的windows任务管理器Argus v0.5
取消回复欢迎你发表评论:
- 协助本站优化一下
- 最近发表
- 1中国电信放福利!免费领取10亿Token价值999
- 2咸鱼殿下一款真人穿越体验游戏
- 3免费云端部署无限制生图/生视频:本地控制台 + 多账号 Colab 近乎无限算力
- 4支付宝阿宝1r喝蜜雪柠檬水
- 5美女,请别影响我学习
- 6🚀 多策略量化盯盘哨兵 v3.6.0 重磅发布!上班盯盘两不误,不怕错过股市大行情!
- 7设备管理系统【带源码】
- 8AX文件管理器v2026.11.22高级版 文件管理+AI清理+压缩+保险箱等
- 9恋漫V1.1.1 追番一次看过瘾
- 10ZZSPaceV0.4(内置安卓17的虚拟机)
- 11直播源助手 v1.0
- 12iOS控制中心v6.4.5 安卓仿苹果iOS风格控制中心 自定义快捷开关
- 13全套古人开麦AI唱歌短视频制作教程古风视频新手入门
- 14乐享快游 v7.5.9 去广纯净 需手机号登录
- 15GTA5 手机版(安卓+IOS)
Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图



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