前言
win10和win11的自动更新总是重复提醒,手动关闭只能延迟更新,过段时间又出来了。我们可以使用我的站长站自用的这款软件,一键自动暂停更新。
Windows Update Blocker v1.8一键禁止Windows系统更新工具
工具介绍Windows Update Blocker是一款国外大神分享的一键禁止Windows系统更新工具,便携式免费软件,可帮助您在 Windows 系统上完全禁用或启用自动更新,支持Windows ...
如果你不想使用软件,我的站长站分享的这段CMD脚本也可以一键把win10+win11更新提醒脚本延迟到2999年,可随时恢复更新,纯修改注册表。
CMD脚本
@echo off :menu cls echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo 请选择功能: echo 1. 暂停更新至2999年 echo 2. 恢复更新 echo 3. 彻底禁止更新(不可恢复) echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ set /p choice=请输入选项(1或2或3): if "%choice%"=="1" ( call :pause_updates ) else if "%choice%"=="2" ( call :resume_updates ) else if "%choice%"=="3" ( call :disable_updates ) else ( echo 无效的选项,请重新输入。 timeout /t 2 >nul goto menu ) pause exit :pause_updates echo 暂停更新... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "FlightSettingsMaxPauseDays" /t REG_DWORD /d 7152 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseFeatureUpdatesStartTime" /t REG_SZ /d "2024-01-01T10:00:52Z" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseFeatureUpdatesEndTime" /t REG_SZ /d "2999-12-01T09:59:52Z" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseQualityUpdatesStartTime" /t REG_SZ /d "2024-01-01T10:00:52Z" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseQualityUpdatesEndTime" /t REG_SZ /d "2999-12-01T09:59:52Z" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseUpdatesStartTime" /t REG_SZ /d "2024-01-01T09:59:52Z" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseUpdatesExpiryTime" /t REG_SZ /d "2999-12-01T09:59:52Z" /f echo 更新已暂停。 timeout /t 2 >nul goto :eof :resume_updates echo 恢复默认... reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "FlightSettingsMaxPauseDays" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseFeatureUpdatesStartTime" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseFeatureUpdatesEndTime" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseQualityUpdatesStartTime" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseQualityUpdatesEndTime" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseUpdatesStartTime" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseUpdatesExpiryTime" /f echo 已恢复默认设置。 timeout /t 2 >nul goto :eof :disable_updates echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo ※ ※ echo ※ 结束进程 / Stopping Process... ※ echo ※ ※ echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ taskkill /im Windows10UpgraderApp.exe 2>nul del /f /q "%USERPROFILE%\Desktop\微软 Windows 10 易升.lnk" 2>nul del /f /q "%USERPROFILE%\Desktop\Windows 10 Update Assistant.lnk" 2>nul echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo ※ ※ echo ※ 添加防火墙规则 / Adding firewall rules... ※ echo ※ ※ echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ netsh advfirewall firewall add rule name="Block_Windows10UpgraderApp" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\Windows10UpgraderApp.exe" action=block netsh advfirewall firewall add rule name="Block_WinREBootApp32" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp32.exe" action=block netsh advfirewall firewall add rule name="Block_WinREBootApp64" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp64.exe" action=block netsh advfirewall firewall add rule name="Block_bootsect" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\bootsect.exe" action=block netsh advfirewall firewall add rule name="Block_DW20" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\DW20.EXE" action=block netsh advfirewall firewall add rule name="Block_DWTRIG20" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\DWTRIG20.EXE" action=block netsh advfirewall firewall add rule name="Block_GatherOSState" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\GatherOSState.EXE" action=block netsh advfirewall firewall add rule name="Block_GetCurrentRollback" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\GetCurrentRollback.EXE" action=block netsh advfirewall firewall add rule name="Block_HttpHelper" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\HttpHelper.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistant" dir=in program="%SYSTEMROOT%\UpdateAssistant\UpdateAssistant.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantCheck" dir=in program="%SYSTEMROOT%\UpdateAssistant\UpdateAssistantCheck.exe" action=block netsh advfirewall firewall add rule name="Block_Windows10Upgrade" dir=in program="%SYSTEMROOT%\UpdateAssistant\Windows10Upgrade.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\UpdateAssistant.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantCheckV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\UpdateAssistantCheck.exe" action=block netsh advfirewall firewall add rule name="Block_Windows10UpgradeV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\Windows10Upgrade.exe" action=block echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo ※ ※ echo ※ 设置ACL / Configurating ACL... ※ echo ※ ※ echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo y|cacls C:\Windows\UpdateAssistant\*.exe /t /p everyone:n 2>nul echo y|cacls C:\Windows10Upgrade\*.exe /t /p everyone:n 2>nul echo. echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo ※ ※ echo ※ 停止Windows Update服务 / Disable Windows Update ※ echo ※ ※ echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ net stop wuauserv sc config wuauserv start= disabled echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo ※ ※ echo ※ 删除计划任务 / Delete task... ※ echo ※ ※ echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistant" /f 2>nul schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantAllUsersRun" /f 2>nul schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantCalendarRun" /f 2>nul schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantWakeupRun" /f 2>nul echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo ※ ※ echo ※ 设置注册表 / Editing Registry... ※ echo ※ ※ echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ del /q /f %SYSTEMDRIVE%\NAU.reg 2>nul echo Windows Registry Editor Version 5.00 >> %SYSTEMDRIVE%\NAU.reg echo.>> %SYSTEMDRIVE%\NAU.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]>> %SYSTEMDRIVE%\NAU.reg echo "DoNotConnectToWindowsUpdateInternetLocations"=dword:00000001 >> %SYSTEMDRIVE%\NAU.reg echo.>> %SYSTEMDRIVE%\NAU.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]>> %SYSTEMDRIVE%\NAU.reg echo "NoAutoUpdate"=dword:00000001>> %SYSTEMDRIVE%\NAU.reg REG IMPORT %SYSTEMDRIVE%\NAU.reg del /q /f %SYSTEMDRIVE%\NAU.reg 2>nul echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ echo ※ ※ echo ※ 更新已禁用 / Updates are disabled... ※ echo ※ ※ echo ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ pause goto :eof
使用方法
复制上面这段CDM脚本到文本文档,保存后,把文本文档重命名为XXX.bat格式,点击运行即可。