Returns information about the configuration of each DCOM (distributed COM) application installed on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more information on downloading these items see the Windows PowerShell download page (right).

$strComputer = "."

$colItems = get-wmiobject -class "Win32_DCOMApplicationSetting" -namespace "root\CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
      write-host "Application ID: " $objItem.AppID
      write-host "Authentication Level: " $objItem.AuthenticationLevel
      write-host "Caption: " $objItem.Caption
      write-host "Custom Surrogate: " $objItem.CustomSurrogate
      write-host "Description: " $objItem.Description
      write-host "Enable At Storage Activation: " $objItem.EnableAtStorageActivation
      write-host "Local Service: " $objItem.LocalService
      write-host "Remote Server Name: " $objItem.RemoteServerName
      write-host "Run As User: " $objItem.RunAsUser
      write-host "Service Parameters: " $objItem.ServiceParameters
      write-host "Setting ID: " $objItem.SettingID
      write-host "Use Surrogate: " $objItem.UseSurrogate