Clear-Host Write-Host "Output to file..." Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Sort-Object DisplayName | Out-File -Encoding Ascii -append output.txt Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Sort-Object DisplayName | Out-File -Encoding Ascii -append output.txt Get-WMIObject -Query "SELECT * FROM Win32_Product" | Select-Object Name, Version | Sort-Object Name, Version | Out-File -Encoding Ascii -append output.txt # or output just the app names #Get-WMIObject -Query "SELECT * FROM Win32_Product" | Select-Object -ExpandProperty Name | sort | Out-File -Encoding Ascii -append output.txt Write-Host "Output to screen..." Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Sort-Object DisplayName Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Sort-Object DisplayName Get-WMIObject -Query "SELECT * FROM Win32_Product" | Select-Object Name, Version | Sort-Object Name, Version notepad.exe output.txt Write-Host "" Write-Host "Done!" Write-Host ""