Link to home
Start Free TrialLog in
Avatar of anuroopkoka2005
anuroopkoka2005Flag for India

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.

SOLUTION
Avatar of jaxstorm
jaxstorm
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is a full script, all you need to is copy the initial text between the code tags into a notepad file, then save it as script.bat

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

:)
Avatar of anuroopkoka2005

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.
What format are the name in your machinefiles.txt

it should be

<code>
server1
server2
</code>

or

<code>
server1ip
server2ip
</code>

and so on
Avatar of AmazingTech
AmazingTech

You need the brackets in the for loop.

[code] for /f %%a in (c:\machinesfiles.txt) do path_to_above_bash_script.bat
can i have a Vbscript to do this. Also it should display the installed softwares , date of installation.

please refer to the screen shot.

Can i get this in this format.

A, B,C... are the servers...

1.JPG
2.JPG
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