找回密码
 立即注册

QQ登录

只需一步,快速开始

[系统相关] Windows一键禁用系统更新安全组件

[复制链接]
xiaojia 发表于 2 小时前 | 显示全部楼层 |阅读模式
020857qju8sujklkvj37ww.webp


  1. @echo off
  2. chcp 65001 >nul
  3. echo ==============================================
  4. echo 正在禁用Windows Defender、自动更新及安全功能...
  5. echo 警告:此操作会大幅降低系统安全性!
  6. echo ==============================================
  7. pause
  8. :: 1. 关闭UAC(可选,如需保留可注释)
  9. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f >nul
  10. :: 2. 删除EPP右键菜单扩展
  11. reg delete "HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1
  12. reg delete "HKLM\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1
  13. reg delete "HKLM\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1
  14. :: 3. 禁用Windows Defender核心功能
  15. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nul
  16. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f >nul
  17. :: 4. 禁用Defender实时防护
  18. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f >nul
  19. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f >nul
  20. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f >nul
  21. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nul
  22. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScanOnRealtimeEnable /t REG_DWORD /d 1 /f >nul
  23. :: 5. 禁用Defender通知和托盘
  24. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications" /v DisableNotifications /t REG_DWORD /d 1 /f >nul
  25. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray" /v HideSystray /t REG_DWORD /d 1 /f >nul
  26. :: 6. 禁用SmartScreen
  27. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f >nul
  28. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v EnableSmartScreen /t REG_DWORD /d 0 /f >nul
  29. :: 7. 禁用Windows自动更新
  30. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 1 /f >nul
  31. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f >nul
  32. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d 1 /f >nul
  33. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUServer /t REG_SZ /d http://127.0.0.1 /f >nul
  34. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUStatusServer /t REG_SZ /d http://127.0.0.1 /f >nul
  35. :: 8. 隐藏更新/Defender设置页
  36. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v SettingsPageVisibility /t REG_SZ /d "Hide:windowsupdate;windowsupdate-action;windowsdefender" /f >nul
  37. :: 9. 禁用安全相关服务
  38. sc config BITS start= disabled >nul
  39. sc config DoSvc start= disabled >nul
  40. sc config SecurityHealthService start= disabled >nul
  41. sc config Sense start= disabled >nul
  42. sc config UsoSvc start= disabled >nul
  43. sc config WaaSMedicSvc start= disabled >nul
  44. sc config wscsvc start= disabled >nul
  45. :: 10. 停止已运行的安全服务
  46. net stop BITS /y >nul 2>&1
  47. net stop DoSvc /y >nul 2>&1
  48. net stop SecurityHealthService /y >nul 2>&1
  49. net stop Sense /y >nul 2>&1
  50. net stop UsoSvc /y >nul 2>&1
  51. net stop WaaSMedicSvc /y >nul 2>&1
  52. net stop wscsvc /y >nul 2>&1
  53. echo.
  54. echo 禁用操作完成!建议仅在测试环境使用,按任意键退出...
  55. pause >nul
  56. exit
复制代码


二佳资源网 - 免责声明

本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序,请支持正版,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。敬请谅解!

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋| 二佳资源网 |网站地图

GMT+8, 2026-4-9 04:18 Powered by Discuz! X3.5