Jump to content

nerio

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

About nerio

Profile Information

  • OS
    Windows 10 x64

nerio's Achievements

0

Reputation

  1. 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
×
×
  • Create New...