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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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\C urrentVers ion\Uninst all\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize > C:\Users\vbhat\desktop\pro grams.txt
you can also run it for multiple machine remotely.
Get-ItemProperty HKLM:\Software\Wow6432Node
you can also run it for multiple machine remotely.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Think the PowerShell will give what wmic product get ... gives &
will miss the plug-ins, zoom/webex & Java
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\InstalledProgramsL ist.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\InstalledProgramsL ist.txt
Of course, make the x:\temp location wherever you want and name the output file whatever you want. Regards, Joe
uninstallview.exe /stext x:\temp\InstalledProgramsL
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\InstalledProgramsL
Of course, make the x:\temp location wherever you want and name the output file whatever you want. Regards, Joe
ASKER
got the syntax I wanted ie:
UninstallView.exe /stext s:\sharedfolder\pgm.txt
BrowserAddonsView.exe /stext s:\sharedfolder\plugin.txt
thanks v much
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
https://overpoweredshell.com/SysAdmin-Basics-Getting-Installed-Software/
https://github.com/dchristian3188/Main/blob/master/Functions/Get-InstalledProgram.ps1