Windows Management Interface (WMI)
Better option than below
However neither WMI or CimInstance w32_program will retrieve ALL your programs installed. Only programs installed with an MSI show up. So not ideal! Here is a way using Registry.
https://www.powershellgallery.com/packages/Get-RemoteProgram/1.2.1
Query
Get-CimInstance -ComputerName (Get-Content C:\Temp\Computer.txt) -ClassName win32_product -ErrorAction SilentlyContinue| Select-Object PSComputerName, Name, PackageName, InstallDate | Out-GridView
wmic os get csname,version,caption
Sample Response
Caption CSName Version Microsoft Windows 10 Pro N W10-TEST 10.0.18362
Query
wmic product get Caption,InstallDate,InstallLocation,PackageName,Vendor,Version
Sample (truncated) Response
Caption InstallDate InstallLocation PackageName Vendor Version Python 3.8.0 Test Suite (32-bit) 20191216 test.msi Python Software Foundation 3.8.150.0 Python 3.8.0 Tcl/Tk Support (32-bit) 20191216 tcltk.msi Python Software Foundation 3.8.150.0 GoTo Opener 20181025 GoToOpener.msi LogMeIn, Inc. 1.0.487 InfraRecorder 0.53 (x64 edition) 20160531 ir053_x64.msi Christian Kindahl 0.53.00.00 IPTInstaller 20151022 IPTInstaller.msi HTC 4.0.9 Python 3.8.0 Standard Library (32-bit) 20191216 lib.msi Python Software Foundation 3.8.150.0 BBC iPlayer Downloads 20161008 BBC-iPlayer-Downloads-1.14.2.msi BBC 1.14.2 Python 3.8.0 Core Interpreter (32-bit) 20191216 core.msi Python Software Foundation 3.8.150.0 Python 3.8.0 pip Bootstrap (32-bit) 20191216 pip.msi Python Software Foundation 3.8.150.0
TEMP
Get-CimInstance -ComputerName ucce-lab-hds-a Win32_OperatingSystem | Select-Object Caption, CSDVersion, ServicePackMajorVersion, BuildNumber | Export-Csv -NoTypeInformation -Path C:\X-Support\Gerry\WMI\ucce-lab-hds-a-OS_Info.csv Get-CimInstance -ComputerName ucce-lab-hds-a Win32_product | Export-Csv -NoTypeInformation -Path C:\X-Support\Gerry\WMI\ucce-lab-hds-a_product.csv