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

相关推荐
Xudde.7 小时前
班级作业笔记报告0x04
笔记·学习·安全·web安全·php
_MyFavorite_11 小时前
JAVA重点基础、进阶知识及易错点总结(28)接口默认方法与静态方法
java·开发语言·windows
chushiyunen13 小时前
audacity软件实现音频处理
windows
FL162386312913 小时前
如何在windows上的卸载Photoshop的Imagecreator插件
windows
项目管理小胡14 小时前
2026年项目管理工具选型指南:功能对比、适用场景与避坑建议
java·python·安全·团队开发·个人开发
OPHKVPS15 小时前
Metro4Shell攻击进行中:CVE-2025-11953高危漏洞正被用于入侵React Native开发者机器
安全·web安全
黎阳之光15 小时前
黎阳之光:数智科技破局湖库富营养化,筑造水生态治理新标杆
大数据·人工智能·科技·安全·数字孪生
探索者0116 小时前
网络安全进阶学习:SSRF(服务器端请求伪造)漏洞全解析
安全·web安全·ssrf
Figo_Cheung17 小时前
Figo数字时代科学创新的伦理安全策略及技术实现——AI参与科学创新的伦理安全审查
人工智能·安全
_MyFavorite_17 小时前
JAVA重点基础、进阶知识及易错点总结(30)JDK9-11 常用新特性
java·windows·python