MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically.
Hi all I'm a French excuse my English ^^ based of the Yzöwl script : I looking for compare with a list of installed KB (exported by "wmic qfe GET hotfixid > kb.txt" command) on the target before launch here, my modified script who doesn't work : SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION wmic qfe GET hotfixid > kb.txt IF FOR /R "%~dp0" %%A IN (kb.txt) DO ( IF %%A EQU kb.txt GOTO :EOF ELSE (CALL :SUB1 %%~nA ECHO INSTALLING KB!KB_number! TIMEOUT /t 3 >NUL C:\Windows\System32\wusa "%%A" /quiet /norestart)) ECHO == Press any key to restart ==&PAUSE>NUL shutdown.exe /r /t 0 :SUB SET "KB_number=%*" FOR /F "DELIMS=-" %%B IN ("%KB_number:*-KB=%") DO SET "KB_number=%%B" Can you help me please ? Thank you so much Gratefully Guillaume