List Installed Software using jscript

Source: Internet
Author: User

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 ).
Copy codeThe 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
}



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.