Hello all,
Like most here I'm sure, I have a script that detects certain attributes of a client and logs them to make sure that a workstation or whatever is compliant and up to date. However I have been having problems recently with browser versions not being as up to date as they should be. The snippet of script below shows how I enumerate certain reg keys to get the browser etc, but I'd really like to get much more detailed info on the default browser and mail client, like version numbers etc. Is this possible?
Code:
$max_iKeys=3
DIM $iKeys[$max_iKeys+1]
$iKeys[1]="mailto"
$iKeys[2]="http"
$iKeys[3]="news"
? "HKEY_CLASSES_ROOT\???\Shell\open\command"
$i=1
$x=$tmp+" HKCR.specials=("
$first=""
while ($i <= $max_iKeys)
$iKey="HKEY_CLASSES_ROOT\"+$iKeys[$i]+"\Shell\open\command"
if (ExistKey($iKey) = 0)
$iCode=ENUMVALUE($iKey,$index)
$iValue=ReadValue($iKey,$iCode)
? "["+SubStr($iKeys[$i]+" ",1,14)+"]="+$iValue
$x=$x+$first+$iKeys[$i]+"='"+$iValue+"'"
$first=","
endif
$i=$i+1
loop
$x=$x+")"