Script to list the installed program from a list of servers in Text 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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

make a batch script with this in

@echo off

If Exist c:\installedprogs.txt Del c:\installedprogs.txt

regedit /e c:\regexport.txt "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall"

find "DisplayName" c:\regexport.txt >c:\regprogs.txt

for /f "tokens=2 delims==" %%a in (c:\regprogs.txt) do echo %%~a >>c:\installedprogs.txt

del c:\regexport.txt
del c:\regprogs.txt


then call this bash script with another bash script containing your server named using this

[code] for /f %%a in c:\machinesfiles.txt do path_to_above_bash_script.bat

anuroopkoka2005Author Commented:
Hi jaxstorm,

Can this script will export the date of installation and also the path where the application is installed.

Can you please provide me a complete script so that it can be utilized..

Thanks in advance

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day 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

Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

anuroopkoka2005Author Commented:

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




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
anuroopkoka2005Author Commented:
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...

anuroopkoka2005Author Commented:
Please close the question and assign points accordingly..
Steve KnightIT ConsultancyCommented:
Thats your job.... you have "Accept as answer" buttons or links next to each comment or similar.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.