?
Solved

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

Posted on 2009-06-29
9
Medium Priority
?
587 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 8

Assisted Solution

by:jaxstorm
jaxstorm earned 2000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 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