script to extract installed programs/apps

sunhux
sunhux used Ask the Experts™
on
I'll need a command/script that will list out what's installed in
the corporate's PCs & save outputs to a shared folder.

"wmic product show ..."  won't even show Chrome, Firefox, plug-in
while 'psinfo -accepteula -s' shows Chrome, FFox but not plug-ins
(eg: Zoom, Webex, browsers' plug-ins) & Java 8 Upd ...

"program features" will show plug-ins, Java, Chrome, FFox etc
but it's in GUI so can its output be extracted out by script?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Developer
Fellow 2017
Most Valuable Expert 2018
Commented:
Hi sunhux,

I suggest NirSoft's UninstallView:

https://www.nirsoft.net/utils/uninstall_view.html

Here's a brief description from its website (copied here under "Fair Use"):
UninstallView is a tool for Windows that collects information about all programs installed on your system and displays the details of the installed programs in one table.
It has both graphical and command line interfaces. In the CLI, there are parameters that allow you to direct the output to seven file formats:

/stext <Filename>       Save the installed programs list into a simple text file.
/stab <Filename>        Save the installed programs list into a tab-delimited text file.
/scomma <Filename>      Save the installed programs list into a comma-delimited text file (csv).
/stabular <Filename>    Save the installed programs list into a tabular text file.
/shtml <Filename>       Save the installed programs list into HTML file (Horizontal).
/sverhtml <Filename>    Save the installed programs list into HTML file (Vertical).
/sxml <Filename>        Save the installed programs list into XML file.

Open in new window

I've been using it (and its predecessor, MyUninstaller) for many years...great stuff! Regards, Joe
Dr. KlahnPrincipal Software Engineer

Commented:
Side note:  A program need not be installed to appear on a menu.  Some simple programs are not installed in the official sense of being in the Registry and having an installer and uninstaller; these programs still can have a program group or shortcut.  To catch these it would be necessary to traverse the Programs folders for all users and cross-reference the shortcuts found against "officially" installed programs.
Vikas BhatExperienced IT Infrastructure Services/operations Manager

Commented:
something simple will to run powershell below:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize > C:\Users\vbhat\desktop\programs.txt

you can also run it for multiple machine remotely.
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Bill PrewIT / Software Engineering Consultant
Top Expert 2016
Commented:
To get browser plugins you can use:



»bp

Author

Commented:
Dr Klahn,  I'm aware: portables like putty.exe is not what I'm after.
Think the PowerShell will give what wmic product  get ...    gives &
will miss the plug-ins, zoom/webex & Java

Author

Commented:
Joe, Bill, can provide the exact CLI commands for the nirsoft tools?
Joe WinogradDeveloper
Fellow 2017
Most Valuable Expert 2018

Commented:
> provide the exact CLI commands for the nirsoft tools

uninstallview.exe /stext x:\temp\InstalledProgramsList.txt

That will make a plain text file. If you want a different format, use one of the other six formats shown in my previous post. For example, this will make a tab-delimited text file:

uninstallview.exe /stab x:\temp\InstalledProgramsList.txt

Of course, make the x:\temp location wherever you want and name the output file whatever you want. Regards, Joe

Author

Commented:
got the syntax I wanted ie:
  UninstallView.exe /stext s:\sharedfolder\pgm.txt
  BrowserAddonsView.exe /stext s:\sharedfolder\plugin.txt

  thanks v much
Joe WinogradDeveloper
Fellow 2017
Most Valuable Expert 2018

Commented:
You're very welcome.
NVITEnd-user support

Commented:
Late to the party but... This powershell method, which checks the registry, shows additional items, e.g. Microsoft Office 2007 Service Pack 3 (SP3), Security Update for Microsoft Office 2007 suites (KB2596650) 32-Bit Edition, more...

https://overpoweredshell.com/SysAdmin-Basics-Getting-Installed-Software/
https://github.com/dchristian3188/Main/blob/master/Functions/Get-InstalledProgram.ps1

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial