script to extract installed programs/apps

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?
sunhuxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joe WinogradDeveloperCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dr. KlahnPrincipal Software EngineerCommented:
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 ManagerCommented:
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.
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Bill PrewIT / Software Engineering ConsultantCommented:
To get browser plugins you can use:



»bp
sunhuxAuthor 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
sunhuxAuthor Commented:
Joe, Bill, can provide the exact CLI commands for the nirsoft tools?
Joe WinogradDeveloperCommented:
> 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
sunhuxAuthor 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 WinogradDeveloperCommented:
You're very welcome.
NVITEnd-user supportCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.