gohnick
Content Type
Profiles
Forums
Events
Posts posted by gohnick
-
-
For windows xp updates, you can probably get away with simply changing MSU to EXE and removing WUSA.
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
FOR /R "%~dp0" %%A IN (*-KB*.EXE) DO (
CALL :SUB %%~nA
ECHO= Installing KB!KB_NUM!
>NUL PING -n 4 127.0.0.1
"%%A" /quiet /norestart)
ECHO= == Press any key to restart ==
>NUL PAUSE
SHUTDOWN.EXE /r /t 0
GOTO :EOF
:SUB
SET "KB_NUM=%*"
FOR /F "DELIMS=-" %%B IN ("%KB_NUM:*-KB=%") DO SET "KB_NUM=%%B"Dear sir,
Is it possible to include a string to output the installed KB numbers into a text file within the directory? Pardon my newbie question as I am a newbie in scripting
0
Batch script for windows & software updates installation
in Unattended Windows 7/Server 2008R2
Posted
Hi submix8c,
Thanks for the tip! it works!