|
First of all, hi, I'm new to the forums, and it's nice to meet everybody. I've been using Kix for a while now, very successfully, but I'm trying to use a new script that I'm wrighting to check patch compliance on my network, for some reason, this script is not working properly. I was hoping that some of you could take a look at it, and let me know if you see any reason why it's not working.
$MS05_051 = READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB902400") IF $MS05_51 = 0 $MS05_051_S = "Good" ELSE $MS05_051_S = "Bad" ;$Message3 = $Message3 + chr(13) + "Patch MS05-51 - Vulnerabilities in MSDTC and COM+ (due date 07 Nov 05)" ENDIF $MS05_051 = READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB902400") + $MS05_051 + " Required Value is: 0" ? '05-287-012 , "$MS05_051_S" , "$MS05_051"'
Basically, when I run this script on my network, everybody is showing up "Good", even when the regestry key does not exist on their machine. Any help with this would be greatly appreaciated.
|