untested... and would only work for the newer patches win2k +



$file = readvalue('HKLM\SOFTWARE\Microsoft\Updates\Windows XP\SP1\KB824141\Filelist\0','Filename')
$path = readvalue('HKLM\SOFTWARE\Microsoft\Updates\Windows XP\SP1\KB824141\Filelist\0','Location')
$vers = readvalue('HKLM\SOFTWARE\Microsoft\Updates\Windows XP\SP1\KB824141\Filelist\0','Version')
if @error or getfileversion($path+'\'+$file) < $vers
shell '\\server\sertup\folder\patch.exe -q -u -z -n -o'
endif

_________________________
How to ask questions the smart way <-----------> Before you ask