Tuesday, December 5, 2017

Using PowerShell to list COM+ application and the identity on which they run

Blow PowerShell script will list down the com+ application running on your machine and the identity on which they run

$comAdmin = New-Object -com ("COMAdmin.COMAdminCatalog.1")
$applications = $comAdmin.GetCollection("Applications")
$applications.Populate()
foreach ($application in $applications)
{
    $application.Value("Name") + " " + $application.Value("Identity")
}


1 comment:

  1. To get apps and next level components I used

    $comAdmin = New-Object -com ("COMAdmin.COMAdminCatalog.1")
    $applications = $comAdmin.GetCollection("Applications")
    $applications.Populate()

    foreach ($AppObject in $applications) {
    "`nApplication $($appObject.key) $($appObject.Name) ID: $($appObject.Value("Identity"))"
    $Components = $applications.GetCollection("Components", $AppObject.Key)
    $Components.populate()
    $components | foreach-object {
    "Component $($_.key) $($_.Name)" }
    }



    Thanks for helping me to get started.

    ReplyDelete