Windows 10 Windows 10 upgrade and use setupcomplete.cmd to install lasted CU

  • Thread starter Thread starter 李xianhua
  • Start date Start date

李xianhua

Guest
Hi,

I got a problem:

when I use below code in setupcomplete.exe to install lasted CU with OS upgrade, the PC reboots but not apply the CU. I must manually reboot PC again to make the CU be applied.


REM -------- 2020-06 CU --------
systeminfo | findstr "KB4567512"
IF %ERRORLEVEL% EQU 1 (
dism.exe /Online /Add-Package /PackagePath:C:\CU\Windows10.0-KB4567512-x64.cab /Quiet /NoRestart
reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup" /v SetupShutdownRequired /t REG_DWORD /d 1 /f
)



Is there something wrong?

Or, do you have any idea to install lasted CU automatically within OS upgrade?

thank you in advance!


More...
 
Back
Top