Logon Script that Writes All Installed Software to a Text File on Startup:

I'm currently using psinfo to generate a list of installed programs on each computer when they login.
Each computer has their own text file and each day the script appends to the file.
Unfortunately, psinfo doesn't list ALL of the software installed on PCs running 64-bit versions of Windows (nearly all of them).
Does anyone have a way to generate a list of ALL software installed on a PC and append it to a text file?
Any help would be very much appreciated.
Here's the .bat file I'm currently using (this actually creates two text files each time; one excludes some details and only lists the software installed while the other shows the full system details):
echo off
set cur_yy=%date:~10,4%
set cur_mm=%date:~4,2%
set cur_dd=%date:~7,2%
echo _
echo ============================================================================================= >> "\\SERVER-A\SoftwareOnPC\%COMPUTERNAME%.txt"
echo ** %USERNAME%'s PC Details Created on %cur_mm%-%cur_dd%-%Cur_yy% ** >> "\\SERVER-A\SoftwareOnPC\%COMPUTERNAME%.txt"
echo ============================================================================================= >> "\\SERVER-A\SoftwareOnPC\%COMPUTERNAME%.txt"
echo _
psinfo -accepteula -s >> "\\SERVER-A\SoftwareOnPC\%COMPUTERNAME%.txt"
type "\\SERVER-A\SoftwareOnPC\%COMPUTERNAME%.txt" | findstr /v /c:"Uptime:" | findstr /v /c:"Kernel version:" | findstr /v /c:"Product type:" | findstr /v /c:"Product version:" | findstr /v /c:"Service pack:" | findstr /v /c:"Kernel build number:" | findstr /v /c:"Registered organization:" | findstr /v /c:"Registered owner:" | findstr /v /c:"IE version:" | findstr /v /c:"System root:" | findstr /v /c:"Processors:" | findstr /v /c:"Processor speed:" | findstr /v /c:"Video driver:" | findstr /v /c:"Physical memory:" | findstr /v /c:"Processor type:" > "\\SERVER-A\SoftwareOnPC\%COMPUTERNAME%_stripped.txt"
echo _
echo _

Open in new window

LVL 1
homerslmpsonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Bill PrewIT / Software Engineering ConsultantCommented:
What software is not showing?


»bp
0
homerslmpsonAuthor Commented:
I've included a sample output below.
This user has AutoCAD 2014 installed, Bluebeam Revu and 7-Zip to name a few.
These are all in the Program Files folder on the 64-bit PCs.
I guess psinfo is only pulling information from the Program Files (x86) folder.
============================================================================================= 
** USER-A's PC Details Created on 03-22-2018 ** 
============================================================================================= 
System information for \\PCXYZ:
Applications:
AMD FirePro Control Center 2015.1104.2211.39859
AcadInfoCenterOff 1.2.0
Adobe Flash Player 11 ActiveX 11.4.402.278
Adobe Reader X (10.1.7) 10.1.7
Any PDF to DWG Converter 2013
Autodesk Advanced Material Library 2017 15.11.3.0
Autodesk Advanced Material Library Image Library 2017 15.11.3.0
Autodesk App Manager 2016-2017 2.2.0
Autodesk AutoCAD 2017.1.2 Update 21.0.402.0
Autodesk Content Service 3.1.3.0
Autodesk Content Service 3.1.3.0
Autodesk Content Service Language Pack 3.1.3.0
Autodesk Desktop App 7.0.7.232
Autodesk Featured Apps 2016-2017 2.2.0
Autodesk Material Library 2012 2.5.0.8
Autodesk Material Library 2014 4.0.19.0
Autodesk Material Library 2015 5.2.8.100
Autodesk Material Library 2016 6.3.0.18
Autodesk Material Library 2017 15.11.3.0
Autodesk Material Library Base Resolution Image Library 2012 2.5.0.8
Autodesk Material Library Base Resolution Image Library 2014 4.0.19.0
Autodesk Material Library Base Resolution Image Library 2015 5.2.8.100
Autodesk Material Library Base Resolution Image Library 2016 6.3.0.18
Autodesk Material Library Base Resolution Image Library 2017 15.11.3.0
Autodesk Material Library Low Resolution Image Library 2012 2.5.0.8
Autodesk Material Library Low Resolution Image Library 2014 4.0.19.0
Autodesk Material Library Low Resolution Image Library 2015 5.2.8.100
Autodesk Material Library Low Resolution Image Library 2016 6.3.0.18
Autodesk Material Library Low Resolution Image Library 2017 15.11.3.0
Autodesk Material Library Medium Resolution Image Library 2012 2.5.0.8
Autodesk Material Library Medium Resolution Image Library 2014 4.0.19.0
Autodesk Material Library Medium Resolution Image Library 2015 5.2.8.100
Autodesk Material Library Medium Resolution Image Library 2016 6.3.0.18
Autodesk Material Library Medium Resolution Image Library 2017 15.11.3.0
Autodesk Navisworks 2015 Exporters - 32 bit 12.3.1157.50
Autodesk Navisworks 2015 Exporters - 32 bit 12.3.1157.50
Autodesk Navisworks 2015 Exporters - 32 bit - English Language Pack 12.3.1157.50
Autodesk Navisworks 2015 Exporters - 32 bit - English Language Pack 12.3.1157.50
Autodesk Revit 2017.2.3 Update 17.0.1150.0
BIM 360 Glue Launcher 4.51.33.5662
BonTrak2 2.0.0
BonTrakPM.ReportsSetup 2.0.4
CAD-Mep+ Object Enabler Current
CAD-Mep+ Object Enabler Current
CAPS Reporting Library 5.1.5.0
CCC Help Chinese Standard 2015.1104.2210.39859
CCC Help Chinese Traditional 2015.1104.2210.39859
CCC Help Czech 2015.1104.2210.39859
CCC Help Danish 2015.1104.2210.39859
CCC Help Dutch 2015.1104.2210.39859
CCC Help English 2015.1104.2210.39859
CCC Help Finnish 2015.1104.2210.39859
CCC Help French 2015.1104.2210.39859
CCC Help German 2015.1104.2210.39859
CCC Help Greek 2015.1104.2210.39859
CCC Help Hungarian 2015.1104.2210.39859
CCC Help Italian 2015.1104.2210.39859
CCC Help Japanese 2015.1104.2210.39859
CCC Help Korean 2015.1104.2210.39859
CCC Help Norwegian 2015.1104.2210.39859
CCC Help Polish 2015.1104.2210.39859
CCC Help Portuguese 2015.1104.2210.39859
CCC Help Russian 2015.1104.2210.39859
CCC Help Spanish 2015.1104.2210.39859
CCC Help Swedish 2015.1104.2210.39859
CCC Help Thai 2015.1104.2210.39859
CCC Help Turkish 2015.1104.2210.39859
Catalyst Control Center - Branding 1.00.0000
Catalyst Control Center Graphics Previews Common 2015.1104.2211.39859
Catalyst Control Center Localization All 2015.1104.2211.39859
Cisco WebEx Meetings
DHTML Editing Component 6.02.0002
Definition update for Microsoft Office 2010 (KB982726)
Duct32
FARO LS 1.1.406.58 4.6.58.2
FARO LS 1.1.408.2 4.8.2.25521
FARO LS 1.1.501.0 (64bit) 5.1.0.30630
FARO LS 1.1.502.0 (64bit) 5.2.0.35213
FARO LS 1.1.503.3 (64bit) 5.3.3.38662
FARO LS 1.1.505.0 (64bit) 5.5.0.44203
FARO LS 1.1.600.6 (64bit) 6.0.6.5
FARO LS 1.1.602.4 (64bit) 6.2.4.30
FARO LS 4.8.2.25521
GoTo Opener 1.0.467
Google Chrome 64.0.3282.186
Google Earth Plug-in 7.1.5.1557
Google Update Helper 1.3.25.11
Google Update Helper 1.3.33.7
Hotfix for Microsoft Visual Studio 2007 Tools for Applications - ENU (KB946040) 1
Hotfix for Microsoft Visual Studio 2007 Tools for Applications - ENU (KB946308) 1
Hotfix for Microsoft Visual Studio 2007 Tools for Applications - ENU (KB946344) 1
Hotfix for Microsoft Visual Studio 2007 Tools for Applications - ENU (KB947540) 1
Hotfix for Microsoft Visual Studio 2007 Tools for Applications - ENU (KB947789) 1
Hotfix for Microsoft Visual Studio 2008 Remote Debugger Light (x64) - ENU (KB944899) 1
Intel(R) Management Engine Components 7.1.21.1134
Intel(R) Visual Fortran Redistributables for Windows* on IA-32 11.1.060
IronPython 2.7.3 2.7.31000.0
Java 8 Update 161 8.0.1610.12
Java Auto Updater 2.8.161.12
K-Lite Mega Codec Pack 6.7.0 6.7.0
MFC RunTime files 1.0.0
McAfee Agent 4.8.0.1938
McAfee VirusScan Enterprise 8.8.09000
Microsoft .NET Framework 1.1 1.1.4322
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office Access MUI (English) 2010 14.0.6029.1000
Microsoft Office Access Setup Metadata MUI (English) 2010 14.0.6029.1000
Microsoft Office Excel MUI (English) 2010 14.0.6029.1000
Microsoft Office Home and Business 2010 14.0.6029.1000
Microsoft Office OneNote MUI (English) 2010 14.0.6029.1000
Microsoft Office Outlook MUI (English) 2010 14.0.6029.1000
Microsoft Office PowerPoint MUI (English) 2010 14.0.6029.1000
Microsoft Office Proof (English) 2010 14.0.6029.1000
Microsoft Office Proof (French) 2010 14.0.6029.1000
Microsoft Office Proof (Spanish) 2010 14.0.6029.1000
Microsoft Office Proofing (English) 2010 14.0.6029.1000
Microsoft Office Publisher MUI (English) 2010 14.0.6029.1000
Microsoft Office Shared MUI (English) 2010 14.0.6029.1000
Microsoft Office Shared Setup Metadata MUI (English) 2010 14.0.6029.1000
Microsoft Office Single Image 2010 14.0.6029.1000
Microsoft Office Word MUI (English) 2010 14.0.6029.1000
Microsoft SOAP Toolkit 3.0 3.0.1325.4
Microsoft SQL Server 2005 Compact Edition [ENU] 3.1.0000
Microsoft Visual C++ 2005 Redistributable 8.0.59193
Microsoft Visual C++ 2005 Redistributable 8.0.56336
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148 9.0.30729.4148
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161 9.0.30729.6161
Microsoft Visual C++ 2008 x64 ATL Runtime 9.0.30729 9.0.30729
Microsoft Visual C++ 2008 x64 CRT Runtime 9.0.30729 9.0.30729
Microsoft Visual C++ 2008 x64 MFC Runtime 9.0.30729 9.0.30729
Microsoft Visual C++ 2008 x64 OpenMP Runtime 9.0.30729 9.0.30729
Microsoft Visual C++ 2008 x86 ATL Runtime 9.0.30729 9.0.30729
Microsoft Visual C++ 2008 x86 CRT Runtime 9.0.30729 9.0.30729
Microsoft Visual C++ 2008 x86 MFC Runtime 9.0.30729 9.0.30729
Microsoft Visual C++ 2008 x86 OpenMP Runtime 9.0.30729 9.0.30729
Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219 10.0.40219
Microsoft Visual C++ 2012 Redistributable (x64) - 11.0.60610 11.0.60610.1
Microsoft Visual C++ 2012 Redistributable (x64) - 11.0.61030 11.0.61030.0
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.60610 11.0.60610.1e
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.61030 11.0.61030.0
Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61030 11.0.61030
Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61030 11.0.61030
Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.23026 14.0.23026.0
Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.23026 14.0.23026.0
Microsoft Visual C++ 2015 x86 Additional Runtime - 14.0.23026 14.0.23026
Microsoft Visual C++ 2015 x86 Minimum Runtime - 14.0.23026 14.0.23026
Microsoft Visual J# 2.0 Redistributable Package 2.0.50727
Microsoft Visual J# 2.0 Redistributable Package
Microsoft Visual Studio 2008 Remote Debugger Light (x64) - ENU Service Pack 1 (KB945140) 1
Microsoft Visual Studio Tools for Applications 2.0 - ENU 9.0.30729
Microsoft Visual Studio Tools for Applications 2.0 Runtime 9.0.30729
Microsoft WSE 3.0 3.0.5305.0
Microsoft WSE 3.0 Runtime 3.0.5305.0
NET SatisFAXtion NS-ClientSuite 2010 9.0.6259.536
RAM 3D Viewer v14.04.06 14.04.06.00
Realtek High Definition Audio Driver 6.0.1.6710
Renesas Electronics USB 3.0 Host Controller Driver 2.1.28.1
Renesas Electronics USB 3.0 Host Controller Driver 2.1.28.1
SEMCO R2R Conversion Calculator 1.0.1
Screen Capturer 1.0.4.42
SketchUp Import 2016-2017 2.2.0
SketchUp Import for AutoCAD 2014 1.1.0
TeamViewer 11 11.0.65452
Umbrella Roaming Client 2.1.0.0
Visual Basic for Applications (R) Core 6.5.10.32
Visual Basic for Applications (R) Core - English 6.5.10.32
Visual C++ 2008 - x64 (KB958357) - v9.0.30729.177 9.0.30729.177
Visual C++ 2008 - x64 (KB958357) - v9.0.30729.177 9.0.30729.177
Visual C++ 2008 - x64 (KB958357) - v9.0.30729.177 9.0.30729.177
Visual C++ 2008 - x64 (KB958357) - v9.0.30729.177 9.0.30729.177
Visual C++ 2008 - x86 (KB958357) - v9.0.30729.177 9.0.30729.177
Visual C++ 2008 - x86 (KB958357) - v9.0.30729.177 9.0.30729.177
Visual C++ 2008 - x86 (KB958357) - v9.0.30729.177 9.0.30729.177
Visual C++ 2008 - x86 (KB958357) - v9.0.30729.177 9.0.30729.177
WinZip 12.1 12.1.8519
join.me.launcher 1.0.624.0

Open in new window

0
Bill PrewIT / Software Engineering ConsultantCommented:
I would probably leverage Powershell for this (which can be launched from a BAT script), it looks like you may need to merge the results of the following to get a comprehensive list (removing dupes).

Get-WmiObject Win32_Product | Select-Object Name, Version
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion

Open in new window


»bp
0
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

homerslmpsonAuthor Commented:
Thank you.
Ok so this is what I have so far:
$b = hostname
"=========================================== $b ===========================================" | Out-File -append C:\$b.txt
"========================= Created/Modified on: $((Get-Date).ToString()) =========================" | Out-File -append C:\$b.txt
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize | Out-File -append C:\$b.txt
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize | Out-File -append C:\$b.txt

Open in new window

I'm not sure what your first line (Get-WmiObject Win32_Product | Select-Object Name, Version) is for.
Can you explain that to me?
I'm looking to sort the output as well.
Any way to do that?
0
Bill PrewIT / Software Engineering ConsultantCommented:
Okay, the first time I played with this on my system I thought I saw some extra items reported from WMI that I didn't find in the regisrty.  Upon closer looking though it seems that everything from WMI was found in the registry (plus some additional items).  So it looks like you don't need that.


»bp
0

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
homerslmpsonAuthor Commented:
Ok so I've come up with the following.
I have a .bat file call 2 .ps1 files on login.
One .ps1 file pulls the programs from the computer's registry and writes it into two separate files. One is for x86 and the other is for x64.
The other .ps1 script combines the 2 files into one file and deletes the 2 files that were created in the first part of the script.
Works for me.
Thanks for your help.
0
homerslmpsonAuthor Commented:
Thanks for your help.
0
Bill PrewIT / Software Engineering ConsultantCommented:
Welcome, glad you got what you needed.


»bp
0
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
Software

From novice to tech pro — start learning today.