Author: mdk1981
Subject: PsInfo batch script - Output problem
Posted: 28 October 2014 at 10:48am
Hi guys,
I am using PSTools in order to query a list of remote machines for Service Pack/Software Version info, and I'm currently having problems with the output results. I would like the script to Output to a text file (or maybe html) with the following results:
Machine 1... Service Pack .... Flash version *.... Silverlight Version *
Machine 2... Service Pack .... Flash version *.... Silverlight Version *
Machine 3... Service Pack .... Flash version *.... Silverlight Version *
etc, etc..
My batch script is below:
psexec @c:\machine-list.txt net start "Remote Registry"
psinfo service @c:\machine-list.txt >> C:\output.txt
psinfo.exe @c:\machine-list.txt -s | find /i "Adobe Flash Player" >> C:\output.txt
psinfo.exe @c:\machine-list.txt -s | find /i "Microsoft Silverlight" >> C:\output.txt
At the moment, no machine names are being populated in the output file. I would like to know how to add the machine name to the output results.
Any help would be greatly appreciated.
Edited by mdk1981 - 5 hours 10 minutes ago at 11:49am
Subject: PsInfo batch script - Output problem
Posted: 28 October 2014 at 10:48am
Hi guys,
I am using PSTools in order to query a list of remote machines for Service Pack/Software Version info, and I'm currently having problems with the output results. I would like the script to Output to a text file (or maybe html) with the following results:
Machine 1... Service Pack .... Flash version *.... Silverlight Version *
Machine 2... Service Pack .... Flash version *.... Silverlight Version *
Machine 3... Service Pack .... Flash version *.... Silverlight Version *
etc, etc..
My batch script is below:
psexec @c:\machine-list.txt net start "Remote Registry"
psinfo service @c:\machine-list.txt >> C:\output.txt
psinfo.exe @c:\machine-list.txt -s | find /i "Adobe Flash Player" >> C:\output.txt
psinfo.exe @c:\machine-list.txt -s | find /i "Microsoft Silverlight" >> C:\output.txt
At the moment, no machine names are being populated in the output file. I would like to know how to add the machine name to the output results.
Any help would be greatly appreciated.
Edited by mdk1981 - 5 hours 10 minutes ago at 11:49am