Last Friday, I got a request from the customer to list the software for Windows devices.
Count the number of Software
$Pro = (Get-WmiObject -Class Win32_Product)
Write-Host $env:computername "-" $pro.count
List the software
Get-WmiObject -Class Win32_Product | Select-Object name, vendor, version | Format-Table -AutoSize -Wrap