Windows系统更新&安全组件 一键禁用脚本.bat
作者:小编日期:2025-12-31浏览:4453分类:系统相关
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
需要多用管理员权限多执行几次
相关文章
- 03-18 网页编辑工具 Bluefish v2.4.0
- 03-13 车来了 v7.0.4 实时公交查询神器 去广告版
- 02-27 烟雨OTA工具箱一款安卓刷机/救砖/调试工具
- 02-15 百度地图汽车版V21.13.1
- 02-06 Linux服务器工具箱 ServerBox v1.0.1316
- 02-03 直播录制工具 StreamCap v1.0.2
- 01-28 一个拥有自主学习功能的ai下棋
- 01-28 全新小白网络验证2.6.3 永久免费版 支持X32,X64,X86任意exe一键加密
- 01-25 Wondershare Repairit(万兴视频修复软件) v6.6.2.12 最新版
- 01-19 3D圆球效果,年会抽奖神器
- 01-17 某音评论区获取助手
- 01-16 Xshell 自动巡检交换机vbs脚本
取消回复欢迎你发表评论:
- 协助本站优化一下
- 最近发表
- 1限时开放微信福利群聊 定时发放实物等福利
- 2小白连点器V1.4 解放双手自动连点
- 3白云视频V3.2.0 海量视频免费看无广告体验
- 4新浪微博 v16.3.0 内置微博猪手2.5.2-341模块
- 5【漫漫漫画】5.2.53 海量正版漫画 实时更新 免费看
- 6【小苹果影视大全】1.01 海量优质影视资源免费看
- 7网页编辑工具 Bluefish v2.4.0
- 8未来五年好好活下去
- 9【眼福】网红小希裸拍鸳鸯戏舞蹈小庚网专属福利
- 10 【眼福】网红可可裸拍舞蹈小庚网专属福利 前10送实物福利
- 112026全新UI解析计费系统源码 附教程
- 12汽修单管理系统源码
- 13动漫共和国 v1.0.0.8 去广告
- 14橘子视频 v4.2.6 去广告
- 1526小红书虚拟新规落地后新玩法,把握新风向轻松日入600+
Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图












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