Reg Query Issues
- by Fitz
I have a batch script that does reporting on our systems and part of it queries the registry for information. The script fails to get the key's value when its ran by the system, but whenever I run the script myself, it works perfectly
the command:
REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\ScanMail for Exchange\CurrentVersion" /v PatternStringFormatted > current1.tmp
should return:
HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\ScanMail for Exchange\CurrentVersion
PatternStringFormatted REG_SZ 6.645.00
This script is failing on a Server 2008 R2 machine, but runs fine on Server 2003 R2 machines.