Link to home
Start Free TrialLog in
Avatar of sunhux
sunhux

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Joe Winograd
Joe Winograd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dr. Klahn
Dr. Klahn

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.
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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunhux

ASKER

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
Avatar of sunhux

ASKER

Joe, Bill, can provide the exact CLI commands for the nirsoft tools?
> 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
Avatar of sunhux

ASKER

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

  thanks v much
You're very welcome.
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