this is Doc's code, just stripped down to the basics
edit this line:
$KBPath='\\servername\sharename\SP\KB823980'
and have all the patches in the same directory there
code:
IF @INWIN=1
DIM $KBPath,$Admin,$KBFile,$KBRequired,$Rpcs,$RPCver
$KBPath='\\servername\sharename\SP\KB823980'
IF ingroup('@wksta\'+sidtoname('S-1-5-32-544'))-1+@INWIN
$RPCver=GetFileVersion('%windir%\system32\Rpcrt4.dll', 'Productversion')
SELECT
CASE @ProductType='Windows NT Workstation'
$KBFile='Q823980i.EXE'
$KBRequired=KeyExist('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Q823980')
IF not $KBRequired or @error
SHELL '%comspec% /c '+$KBPath+'\'+$KBFile+' /q /z'
ENDIF
CASE @ProductType='Windows 2000 Professional'
$KBFile='Windows2000-KB823980-x86-ENU.exe'
IF $RPCver <> "5.00.2195.6753"
SHELL '%comspec% /c '+$KBPath+'\'+$KBFile+' /u /q /z'
ENDIF
CASE @ProductType='Windows XP Professional' OR @ProductType='Windows XP Home Edition'
$KBFile='WindowsXP-KB823980-x86-ENU.exe'
IF @CSD = 'Service Pack 1'
IF $RPCver <> "5.1.2600.1230"
SHELL '%comspec% /c '+$KBPath+'\'+$KBFile+' /u /q /z'
ENDIF
ELSE
IF $RPCver <> "5.1.2600.109"
SHELL '%comspec% /c '+$KBPath+'\'+$KBFile+' /u /q /z'
ENDIF
ENDIF
CASE 1
; 'Unknown Error..'
ENDSELECT
ENDIF
ENDIF