I copied a script from one of the posts here and changed it a little. I want it to look for the reg key and the display a message whether it’s been installed or not. If the patch is not installed I have it call an exe (autoit) that will tell the user that the patch is missing and to cll the helpdesk. On a W2K PC with out the patch it call the exe twice. Any help here is the script

? "Please Wait... Checking if Microsoft RPC Security Patch is Installed"

$KBPATH="netlogon"

SELECT

CASE @ProductType='Windows NT Workstation'

$KBFile='Q823980i.EXE'

$KBRequired=KeyExist('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Q823980')

IF $KBRequired

; Patch already installed

ELSE

Shell '%comspec% /c '+@LSERVER+'\'+$KBPath+'\'+$KBFile+' /u /q /z'

ENDIF

CASE @ProductType='Windows 2000 Professional'

$KBFile='Windows2000-KB823980.exe'

$KBRequired=KeyExist('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows 2000\SP5\KB823980')

If $KBRequired

? "Patch Already Installed"

Else

Shell @LSERVER+'\'+$KBPath+'\'+$KBFile

ENDIF

Case @PRODUCTTYPE='Windows XP Professional'

$KBFile='WindowsXP-KB823980.exe'

IF @CSD = 'Service Pack 1'

$KBRequired=KeyExist("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB823980\Filelist")

If $KBRequired

? "Patch Already Installed"

Else


Shell @LSERVER+'\'+$KBPath+'\'+$KBFile

ENDIF

ELSE

$KBFile='WindowsXP-KB823980.exe'

$KBRequired=KeyExist("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP1\KB823980\Filelist")

If $KBRequired

? "Patch Already Installed"

Else

Shell @LSERVER+'\'+$KBPath+'\'+$KBFile



EndIF

ENDIF