Solved

Script to list the installed program from a list of servers in Text file

Posted on 2009-06-29
9
574 Views
Last Modified: 2012-05-07
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.

0
Comment
Question by:anuroopkoka2005
9 Comments
 
LVL 8

Assisted Solution

by:jaxstorm
jaxstorm earned 500 total points
ID: 24735308
make a batch script with this in

[code]
@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

[/code]

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

0
 
LVL 4

Accepted Solution

by:
anuroopkoka2005 earned 0 total points
ID: 24735371
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
0
 
LVL 8

Expert Comment

by:jaxstorm
ID: 24735398
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

:)
0
 
LVL 4

Author Comment

by:anuroopkoka2005
ID: 24735464
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.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 8

Expert Comment

by:jaxstorm
ID: 24735587
What format are the name in your machinefiles.txt

it should be

<code>
server1
server2
</code>

or

<code>
server1ip
server2ip
</code>

and so on
0
 
LVL 21

Expert Comment

by:AmazingTech
ID: 24737249
You need the brackets in the for loop.

[code] for /f %%a in (c:\machinesfiles.txt) do path_to_above_bash_script.bat
0
 
LVL 4

Author Comment

by:anuroopkoka2005
ID: 24761250
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
0
 
LVL 4

Author Comment

by:anuroopkoka2005
ID: 25605682
Please close the question and assign points accordingly..
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 25605795
Thats your job.... you have "Accept as answer" buttons or links next to each comment or similar.

Steve
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now