WMIC need to scan remote computers and append data into local file

  • Thread starter Thread starter inachu
  • Start date Start date
I

inachu

I have half the answer:

WMIC /node:"remotepcname" product where "Name like '%adobe reader%'"
get Name, Version


The above works great but I need it to pull pc names from a file and
append the output to 1 file.

How to do that?
 
I have half the answer:

WMIC /node:"remotepcname" product where "Name like '%adobe reader%'"
get Name, Version

The above works great but I need it to pull pc names from a file and
append the output to 1 file.

How to do that?

maybe so:
for /f %a in ('type names.txt') do (wmic /node:%a product get
Name, Version | find /i "adobe reader" >> file_to_save.txt)

where names.txt - listfile for computer names, file_to_save.txt - file
to append output.
 
Back
Top