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

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?
 
U

UNDYING NightFlame

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top