VBScript to pull out Trend OfficeScan definition files

ukznmcl
ukznmcl used Ask the Experts™
on
Hello,

I am looking for a script which i can run against multiple servers in our domain. Perfect scenario would be for it to automatically retrieve all the computer names for Active Directory but a text file with the server names will be ok.

The antivirus definition files are held under:

HKLM\Software\TrendMicro\PC-cillinNTCorp\Currentversion\Misc and the key name is VsApiNT-Ver (REG_SZ). An example of the data contained in this key is 9.205.1002
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
one batch line may help:

for /f "tokens=1" %d in ('net view') do @echo %d | find "\\" | for /f "tokens=3" %e in ('reg query %d\HKEY_LOCAL_MACHINE\Software\TrendMicro\PC-cillinNTCorp\Currentversion\Misc /v VsApiNT-Ver') do @echo %d %e

this will crawl the whole local net.

Ove
Thanks, that worked a treat!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial