Win10一键禁用自动更新和Windows Defender安全中心

Win10这个系统,最让人难以接受的就是自动更新了,也不理会你在干嘛,自行联机用那其慢无比其卡无比的速度来给你更新,让你电脑cpu/内存/硬盘都吃满,无法正常使用。再有一个那就是Windows Defender安全中心太不听使唤,有时候下载的破解版绿化版软件,它能一声不吭的给你删除了,九头牛也拉不回来,想中止也不行。

针对Win10一键禁用自动更新,和Win10一键禁用Windows Defender安全中心,分享两个.bat命令,执行管理员权限,点击一下就行。自测Win10专业版可用。

Win10一键禁用自动更新.bat命令

bash 复制代码
net stop wuauserv
del C:\Windows\SoftwareDistribution\* /q /s /f
rd C:\Windows\SoftwareDistribution\DataStore /s /q
rd C:\Windows\SoftwareDistribution\Download /s /q
rd C:\Windows\SoftwareDistribution\SLS /s /q
echo 123>C:\Windows\SoftwareDistribution\DataStore
echo 123>C:\Windows\SoftwareDistribution\Download
echo 123>C:\Windows\SoftwareDistribution\SLS

win10一键禁用Windows Defender安全中心.bat命令

bash 复制代码
@echo off
chcp 65001 >nul 2>&1
title 禁用Windows Defender
mode con cols=80 lines=30

>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if %errorLevel% NEQ 0 (
    echo 正在请求管理员权限...
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
    pushd "%CD%"
    CD /D "%~dp0"

echo.
echo [1/5] 正在结束Defender相关进程...
taskkill /F /IM MsMpEng.exe >nul 2>&1
taskkill /F /IM SecurityHealthSystray.exe >nul 2>&1
taskkill /F /IM SecurityHealthService.exe >nul 2>&1
echo 进程清理完成

echo.
echo [2/5] 正在禁用Defender核心服务...
sc config WinDefend start= disabled >nul 2>&1
net stop WinDefend >nul 2>&1
sc config SecurityHealthService start= disabled >nul 2>&1
net stop SecurityHealthService >nul 2>&1
sc config wscsvc start= disabled >nul 2>&1
net stop wscsvc >nul 2>&1
sc config Sense start= disabled >nul 2>&1
net stop Sense >nul 2>&1
echo 服务禁用完成

echo.
echo [3/5] 正在修改注册表策略...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScanOnRealtimeEnable /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v DisableSpynetReporting /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 2 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Feature Configuration Database" /v DisableConfigurationMonitor /t REG_DWORD /d 1 /f >nul 2>&1
echo 注册表修改完成

echo.
echo [4/5] 正在禁用Defender计划任务...
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\WD Diagnostic Data Collector" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\WD Elevated Diagnostics" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Update" /Disable >nul 2>&1
echo 计划任务禁用完成

echo.
echo [5/5] 正在禁用Defender内核驱动...
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisDrv" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisSvc" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
echo 驱动禁用完成

echo.
echo ==============================================
echo 操作完成!请重启电脑使修改生效。
echo 重启后可在Windows安全中心验证效果。
echo ==============================================
pause >nul

参考:

win10下Windows Defender安全中心一键禁用bat命令https://206207.xyz/4985.html

一键关闭windows10自动更新https://206207.xyz/3616.html

相关推荐
资源分享助手5 分钟前
PeekDesktop:实现类似 macOS Sonoma 点击桌面预览(Windows工具教程)
windows·macos·点击回到桌面
国科安芯10 分钟前
商业航天级抗辐照全双工RS-485/RS-422收发器ASM491S2Y的技术特性与应用研究
运维·网络·单片机·嵌入式硬件·安全·架构·安全性测试
txg66615 分钟前
网络安全领域简报(2026年5月31日—6月7日)
安全·web安全·网络安全
caimouse25 分钟前
Reactos 第 3 章 内存管理 — 【上篇】用户态/内核态两侧的内存对象与地址映射
windows·架构
j_xxx404_35 分钟前
Linux线程池硬核解析:从固定线程池、单例线程池到线程安全、死锁与锁模型|附源码
linux·运维·服务器·c++·安全·ai
国科安芯37 分钟前
ASP7A84AS高精度抗辐照线性稳压器技术特性与应用分析
单片机·嵌入式硬件·安全·架构
烟雨江南78538 分钟前
水泥回转窑烧成车间大功率冷却风机强粉尘低频共振噪底:基于“灵声智库”端侧自适应谱减降噪与信创工控芯片离线 ASR 安全控制系统
人工智能·安全·webrtc·语音识别·ai质检
xixingzhe240 分钟前
MD5 迁移到 BCrypt
安全
奋斗的小方42 分钟前
Java进阶篇1-2:泛型
java·开发语言·windows
狒狒热知识44 分钟前
前置布局正向资讯矩阵,178软文网长效内容运营筑牢品牌GEO代运营服务
安全