I noticed today that IIS details are missing on some newly built servers. The reason is the audit script expects the service name to be capitalized (which apparently isn't always the case). I just wrapped an "UCase" around the object within the select statement.
Within trunk for Audit.vbs REV 1132 starting at line 2456, locate the following
[code]
' Searching for IIS services
Select Case objItem.Name
Case "IISADMIN" iis = "True"
Case "W3SVC" iis_w3svc = "True"
Case "MSFTPSVC" iis_ftpsvc = "True"
Case "SMTPSVC" iis_smtpsvc = "True"
Case "NNTPSVC" iis_nntpsvc = "True"
End Select
Next
[/code]
and replace with this:
[code]
' Searching for IIS services
Select Case UCase(objItem.Name)
Case "IISADMIN" iis = "True"
Case "W3SVC" iis_w3svc = "True"
Case "MSFTPSVC" iis_ftpsvc = "True"
Case "SMTPSVC" iis_smtpsvc = "True"
Case "NNTPSVC" iis_nntpsvc = "True"
End Select
Next
[/code]
There are several other places where a case should be set when doing the select as well. I'd add those, but the impact is so minimal it's not worth mentioning here.
I have about 20-30 other fixes and optimizations in my version of the script, sure would be great if I could commit