阻止Win10自动升级

技术问题

阻止Win10自动升级

2024-10-15 10:21


阻止Win10自动升级

                                            




@echo off
rd "%windir%\system32\zbzb_permissions" >nul 2>nul
md "%windir%\system32\zbzb_permissions" 2>nul||(echo 请鼠标右键选择"以管理员身份运行"!&&pause >nul&&exit)
rd "%windir%\system32\zbzb_permissions" 2>nul
echo 阻止Win10自动升级Win11
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "TargetReleaseVersion" /d 1 /t REG_DWORD /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "ProductVersion" /d "Windows 10" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "TargetReleaseVersionInfo" /d "22H2" /f
gpupdate /force
echo 完成
echo.
echo 按任意键退出...
pause>nul
exit


標簽:
  • 阻止Win10自动升级