get_programs_installed_local.ps1

export a list of all software installed on this windows computer. writes to a csv file in the “current” folder.



#
# 
#

$COTSInstalledSoftware = Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ | Get-ItemProperty

$COTSInstalledSoftware += Get-ChildItem HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\ | Get-ItemProperty

IF (Test-path HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\) {

   $COTSInstalledSoftware += Get-ChildItem HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ | Get-ItemProperty

}

$CotsInstalledSoftware | where { $_.displayname -ne $null } |  select-object displayname | sort-object displayname | get-unique -asstring | export-csv .\allsoftware.csv


}

About Jeff Turner

Technical director of Nano Tera Network Solutions.
This entry was posted in Powershell, VBS, VBA and other scripting.. Bookmark the permalink.