anuroopkoka2005
asked on
Script to list the installed program from a list of servers in Text file
Hi,
Can someone provide me the script to extract the list of Installed programs and their Date of Installation, Path on list of servers in txt file.
Can someone provide me the script to extract the list of Installed programs and their Date of Installation, Path on list of servers in txt file.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hahahahha
Hi The code is not working.. when i try to i get error saying
c:\machinesfiles.txt was unexpected at this time.
Can you look into this.
Hi The code is not working.. when i try to i get error saying
c:\machinesfiles.txt was unexpected at this time.
Can you look into this.
What format are the name in your machinefiles.txt
it should be
<code>
server1
server2
</code>
or
<code>
server1ip
server2ip
</code>
and so on
it should be
<code>
server1
server2
</code>
or
<code>
server1ip
server2ip
</code>
and so on
You need the brackets in the for loop.
[code] for /f %%a in (c:\machinesfiles.txt) do path_to_above_bash_script. bat
[code] for /f %%a in (c:\machinesfiles.txt) do path_to_above_bash_script.
ASKER
ASKER
Please close the question and assign points accordingly..
Thats your job.... you have "Accept as answer" buttons or links next to each comment or similar.
Steve
Steve
Then make ANOTHER script with the text after the second code tag and make it call the other script.
You'll also need to make a third text file with a list of servers that you wish to query.
I'm afraid I cannot make it any simpler, or I'll be doing your job/assignment for you
:)