Windows系统更新&安全组件 一键禁用脚本.bat
作者:小编日期:2025-12-31浏览:4614分类:系统相关
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
需要多用管理员权限多执行几次
相关文章
- 09-16 摸鱼助手V1.0(PC与安卓之间音频/投屏/传输文件/老板键/粘贴板同步)
- 09-15 ExeSimplePackager 简易程序打包器 v1.0
- 09-14 文本转语音工具edge-tts-gui v0.16.2
- 09-12 PDF文件编辑软件Acrobat Pro DC2026.002.21900官方完整注册版2026年最新版
- 09-09 在线配置接口源汇总贴:TVbox配置地址接口、uz影视接口、电影天堂接口、直播M3u/txt
- 09-01 视频编辑工具 OpenShot v4.0.0
- 08-31 小米(澎湃OS)系统内置应用卸载工具 v1.0 - 免Root精简小米系统与广告卸载神器
- 08-29 有手就会-Windows系统重装工具LetRecoveryv2026.08.27
- 08-28 微信图片下载与 Word 排版工具
- 08-27 Pavise v2.1.1.0Windows 游戏性能工具
- 08-27 闲鱼超级管家 V1.0
- 08-25 AI原生远程桌面 QuickDesk v4.2.0.0
取消回复欢迎你发表评论:
- 协助本站优化一下
- 最近发表
- 1重生了还逼我恋爱?/重生了还要我谈恋爱?
- 2摸鱼助手V1.0(PC与安卓之间音频/投屏/传输文件/老板键/粘贴板同步)
- 3影视飓风 AI实战课:零基础也能做AI视频
- 4AIGC影视大师课,AI视频全流程实战指南
- 5【激活码】win10/win11专业版
- 6ExeSimplePackager 简易程序打包器 v1.0
- 7利用 openclaw-weixin 做一个通知系统
- 8《动物酒馆:毫无人性》中文版
- 9《污痕圣杯:阿瓦隆的陨落》中文联机版
- 10京东0.98-1元衣架/花洒/胶带等
- 11京东百亿补贴米家冰箱券后699元
- 12百丽联名女童运动鞋2026秋款上新
- 13《深度求财:挖打撤》中文版
- 14比亚迪博物馆免费预约攻略
- 15有了AI,程序员的路该何去何从
Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图










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