Retrieves information about the COM class component categories (COM classes that share common functionalities) found on a computer.

This script was tested using Kixtart 2001 (412) for Microsoft Windows, available from Kixtart.org.

Kixtart
Edit|Remove
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_ComponentCategory")
For Each $objItem in $colItems
    ? "Caption:" + $objItem.Caption
    ? "Category Id:" + $objItem.CategoryId
    ? "Description:" + $objItem.Description
    ? "Install Date:" + $objItem.InstallDate
    ? "Name:" + $objItem.Name
    ? "Status:" + $objItem.Status
Next