Solved

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

Posted on 2009-06-29
9
572 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 8

Expert Comment

by:jaxstorm
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Please close the question and assign points accordingly..
0
 
LVL 43

Expert Comment

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

Steve
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

6 Experts available now in Live!

Get 1:1 Help Now