Windows系统更新&安全组件 一键禁用脚本.bat
作者:小编日期:2025-12-31浏览:4656分类:系统相关
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-15 NVIDIA图形驱动 v 621.24
- 11-15 鲁大师 v6.1026.4890.1112精简版
- 11-15 Windows 10 LTSC 2021 Build 19044.7850
- 11-15 Windows Server 2025 LTSC 26200.33828
- 11-15 LightC v2.18.3 C盘清理工具 系统瘦身 让电脑运行更流畅
- 11-14 开始菜单StartAllBack v3.9.28.5428
- 11-14 Windows 11 26H2 Build 26300.9974 RTM
- 11-14 Windows 11 LTSC 2024 Build 26300.9974
- 11-14 Microsoft Activation Scripts v3.14汉化版
- 11-13 Yamicsoft Windows Manager v2.4.5绿色版
- 11-13 微软NET框架运行库.NET10.0 v10.0.15
- 11-13 机房远程维护系统v1.3
取消回复欢迎你发表评论:
- 协助本站优化一下
- 最近发表
- 19998套精品ppt模板合集v
- 2小米全系列拍摄用预设包
- 3刷圈兔v10.2.0高级版 一键生成聊天记录 转账 红包和朋友圈动态...
- 4自购资源:800首可商用纯音乐背景bgm短视频配乐(公司宣传片游戏动画轻音乐剪辑)
- 5治愈系风景视频素材合集 空镜头vlog自媒体剪辑素材
- 6之前买的4k无版权素材 共300+套
- 7墨知v1.5.0 纯净本地阅读器 支持听书 无广告 离线也能看
- 8NVIDIA图形驱动 v 621.24
- 9IDA Pro v9.4.260714 汉化全插件美化版
- 10IDA Pro v9.5.261026 汉化完整版
- 11Adobe Premiere Pro 2027 v27.0.0.88
- 12Adobe Premiere Pro 2026 v26.5.3.7
- 13安装包制作工具v24.2.0绿色便携版
- 14Ai图片降噪Topaz Photo Pro v1.8.1.0高级版
- 15万兴全能格式转换器v18.0.5.80绿色版
Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图



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