小庚资源网 · 免费提供绿色软件、活动线报以及其他网络资源,好货不私藏!
当前位置:网站首页 > 软件仓库 > 系统相关 >正文

Windows系统更新&安全组件 一键禁用脚本.bat

作者:小编日期:2025-12-31浏览:4298分类:系统相关

  1. chcp 65001 >nul

  2. echo ==============================================

  3. echo 正在禁用Windows Defender、自动更新及安全功能...

  4. echo 警告:此操作会大幅降低系统安全性!

  5. echo ==============================================

  6. pause


  7. :: 1. 关闭UAC(可选,如需保留可注释)

  8. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f >nul


  9. :: 2. 删除EPP右键菜单扩展

  10. reg delete "HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1

  11. reg delete "HKLM\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1

  12. reg delete "HKLM\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1


  13. :: 3. 禁用Windows Defender核心功能

  14. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nul

  15. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f >nul


  16. :: 4. 禁用Defender实时防护

  17. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f >nul

  18. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f >nul

  19. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f >nul

  20. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nul

  21. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScanOnRealtimeEnable /t REG_DWORD /d 1 /f >nul


  22. :: 5. 禁用Defender通知和托盘

  23. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications" /v DisableNotifications /t REG_DWORD /d 1 /f >nul

  24. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray" /v HideSystray /t REG_DWORD /d 1 /f >nul


  25. :: 6. 禁用SmartScreen

  26. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f >nul

  27. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v EnableSmartScreen /t REG_DWORD /d 0 /f >nul


  28. :: 7. 禁用Windows自动更新

  29. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 1 /f >nul

  30. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f >nul

  31. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d 1 /f >nul

  32. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUServer /t REG_SZ /d http://127.0.0.1 /f >nul

  33. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUStatusServer /t REG_SZ /d http://127.0.0.1 /f >nul


  34. :: 8. 隐藏更新/Defender设置页

  35. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v SettingsPageVisibility /t REG_SZ /d "Hide:windowsupdate;windowsupdate-action;windowsdefender" /f >nul


  36. :: 9. 禁用安全相关服务

  37. sc config BITS start= disabled >nul

  38. sc config DoSvc start= disabled >nul

  39. sc config SecurityHealthService start= disabled >nul

  40. sc config Sense start= disabled >nul

  41. sc config UsoSvc start= disabled >nul

  42. sc config WaaSMedicSvc start= disabled >nul

  43. sc config wscsvc start= disabled >nul


  44. :: 10. 停止已运行的安全服务

  45. net stop BITS /y >nul 2>&1

  46. net stop DoSvc /y >nul 2>&1

  47. net stop SecurityHealthService /y >nul 2>&1

  48. net stop Sense /y >nul 2>&1

  49. net stop UsoSvc /y >nul 2>&1

  50. net stop WaaSMedicSvc /y >nul 2>&1

  51. net stop wscsvc /y >nul 2>&1


  52. echo.

  53. echo 禁用操作完成!建议仅在测试环境使用,按任意键退出...

  54. pause >nul

  55. exit               

  56. echo.

  57. pause

需要多用管理员权限多执行几次

image.png

下载地址:https://xiaok.lanzoum.com/iV9uk3evg0oj

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

取消回复欢迎发表评论:

Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务  
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图