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