彻底关闭win10病毒防护和自动更新

刘志强评论669阅读模式

复制后/txt文件另存为.bat文件/运行

@echo off
chcp 65001 >nul
echo ======================写入注册表关闭Defender、SmartScreen、Windows更新======================
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScriptScanning /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v DisableWindowsUpdateAccess /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DoNotConnectToWindowsUpdateInternetLocations /t REG_DWORD /d 1 /fecho ======================停止并禁用Windows Update、BITS服务======================
net stop wuauserv
net stop bits
sc config wuauserv start= disabled
sc config bits start= disabledecho ======================清理补丁缓存======================
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old

echo ======================PowerShell关闭Defender全部实时防护模块======================
powershell Set-MpPreference -DisableRealtimeMonitoring $true
powershell Set-MpPreference -DisableBehaviorMonitoring $true
powershell Set-MpPreference -DisableIOAVProtection $true
powershell Set-MpPreference -DisableScriptScanning $true
powershell Set-MpPreference -DisableCloudProtection $true
powershell Set-MpPreference -DisableBlockAtFirstSeen $true

echo ======================禁用WindowsUpdate计划任务======================
powershell Get-ScheduledTask -TaskPath "\Microsoft\Windows\WindowsUpdate\" | Disable-ScheduledTask

echo.
echo 全部操作完成,重启电脑生效
pause

继续阅读
 
低谷蓄力,静待花开! 刘志强

低谷蓄力,静待花开!

入职新岗位时日虽短,却近距离见证了许多同行的奔波与困顿。近些年行业浪潮起落,不少人被琐事与压力裹挟,深陷焦灼与迷茫,为前路奔波、为生活奔走,其中的艰辛与不易,我看在眼里、感同身受。 人生在世,起落本是...
Windows10安装跳过微软账号登录命令 刘志强

Windows10安装跳过微软账号登录命令

场景1:安装到网络连接界面,还没到邮箱账号输入页面 按下Shift+F10打开命令窗口,输入: OOBE\BYPASSNRO (字母O) 电脑自动重启,再次进入安装流程,就会出现【我没有Interne...

发表评论

匿名网友

拖动滑块以完成验证