Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-06-29
9
Medium Priority
?
589 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

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!

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

604 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