Returns a list of software that was installed on a computer
Using Windows Installer. This information is then
Written to a text file. This script requires both windows
Powershell and the corresponding version
The. NET Framework. For more information on downloading
These items see the Windows powershell download page (right ).
CopyCode The Code is as follows: $ strcomputer = "."
$ Colitems = Get-wmiobject-class "win32_product"-namespace "Root \ cimv2 "'
-Computername $ strcomputer
Foreach ($ objitem in $ colitems ){
Write-host "caption:" $ objitem. Caption
Write-host "Description:" $ objitem. Description
Write-host "identifying number:" $ objitem. identifyingnumber
Write-host "installation date:" $ objitem. installdate
Write-host "installation date 2:" $ objitem. installdate2
Write-host "installation location:" $ objitem. installlocation
Write-host "installation State:" $ objitem. installstate
Write-host "name:" $ objitem. Name
Write-host "package cache:" $ objitem. packagecache
Write-host "SKU number:" $ objitem. skunumber
Write-host "vendor:" $ objitem. Vendor
Write-host "version:" $ objitem. Version
Write-host
}