Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

67 views
Skip to first unread message

inachu

unread,
Dec 8, 2011, 3:41:12 PM12/8/11
to
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?

UNDYING NightFlame

unread,
Dec 26, 2011, 7:43:21 AM12/26/11
to
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.
0 new messages