Win32_ClassicCOMClassSetting

Win32 Classic COMClass Setting
root/cimv2dynamickey : ComponentId

Represents the settings of a Component Object Model (COM) component.

On this page

Main example

List instances

# All instances of Win32_ClassicCOMClassSetting, with the main properties
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting |
    Select-Object -Property ComponentId, Caption, Description, Version

Examples

Filter with WQL

# WQL filter evaluated by the provider: only the instances where Control is TRUE
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Filter 'Control = TRUE' |
    Select-Object -Property ComponentId, Caption, Description, Version

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    Get-CimInstance -CimSession $cimSession -ClassName Win32_ClassicCOMClassSetting |
        Select-Object -Property ComponentId, Caption, Description, Version
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName Win32_ClassicCOMClassSetting
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

26 of 26 properties
NameTypeAccessDescription
AppIDstringread

Globally unique identifier (GUID) for the COM application using this COM component.

Code
# Value of AppID for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, AppID |
    Select-Object -Property ComponentId, AppID
AutoConvertToClsidstringread

GUID of the COM class to which this COM component will automatically be converted.

Code
# Value of AutoConvertToClsid for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, AutoConvertToClsid |
    Select-Object -Property ComponentId, AutoConvertToClsid
AutoTreatAsClsidstringread

GUID for the COM component that will automatically emulate instances of this class.

Code
# Value of AutoTreatAsClsid for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, AutoTreatAsClsid |
    Select-Object -Property ComponentId, AutoTreatAsClsid
Captionstringread

Short textual description of the current object.

Code
# Value of Caption for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, Caption |
    Select-Object -Property ComponentId, Caption
ComponentId keystringread

GUID of this COM component.

Code
# Value of ComponentId for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId |
    Select-Object -Property ComponentId
Controlbooleanread

COM component is an OLE control.

Code
# Value of Control for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, Control |
    Select-Object -Property ComponentId, Control
DefaultIconstringread

Path to the executable file and resource identifier of the default icon used by the class.

Code
# Value of DefaultIcon for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, DefaultIcon |
    Select-Object -Property ComponentId, DefaultIcon
Descriptionstringread

Textual description of the current object.

Code
# Value of Description for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, Description |
    Select-Object -Property ComponentId, Description
InprocHandlerstringread

Full path including filename or only filename to a 16-bit custom handler for the COM component. The provider does not always return the full path.

Code
# Value of InprocHandler for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, InprocHandler |
    Select-Object -Property ComponentId, InprocHandler
InprocHandler32stringread

Full path including filename or only filename to a 32-bit custom handler for the COM component. The provider does not always return the full path.

Code
# Value of InprocHandler32 for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, InprocHandler32 |
    Select-Object -Property ComponentId, InprocHandler32
InprocServerstringread

Full path including filename or only filename to a 16-bit in-process server DLL for this COM component. The provider does not always return the full path.

Code
# Value of InprocServer for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, InprocServer |
    Select-Object -Property ComponentId, InprocServer
InprocServer32stringread

Full path including filename or only filename to a 32-bit in-process server DLL for this COM component. The provider does not always return the full path.

Code
# Value of InprocServer32 for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, InprocServer32 |
    Select-Object -Property ComponentId, InprocServer32
Insertablebooleanread

COM component can be inserted into OLE container applications.

Code
# Value of Insertable for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, Insertable |
    Select-Object -Property ComponentId, Insertable
JavaClassbooleanread

COM component is a Java component.

Code
# Value of JavaClass for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, JavaClass |
    Select-Object -Property ComponentId, JavaClass
LocalServerstringread

Full path including filename or only filename to a 16-bit local server application. The provider does not always return the full path.

Code
# Value of LocalServer for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, LocalServer |
    Select-Object -Property ComponentId, LocalServer
LocalServer32stringread

Full path including filename or only filename to a 32-bit local server application. The provider does not always return the full path.

Code
# Value of LocalServer32 for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, LocalServer32 |
    Select-Object -Property ComponentId, LocalServer32
LongDisplayNamestringread

Full name of the COM application. It is used in areas such as the Results field of the OLE Paste Special dialog box.

Code
# Value of LongDisplayName for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, LongDisplayName |
    Select-Object -Property ComponentId, LongDisplayName
ProgIdstringread

Programmatic identifier associated with the COM component. The format of a ProgID is <Vendor.<Component.<Version. This identifier is not guaranteed to be unique.

Code
# Value of ProgId for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, ProgId |
    Select-Object -Property ComponentId, ProgId
SettingIDstringread

Identifier by which the current object is known.

Code
# Value of SettingID for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, SettingID |
    Select-Object -Property ComponentId, SettingID
ShortDisplayNamestringread

Short name of the COM application (used in menus and pop-ups).

Code
# Value of ShortDisplayName for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, ShortDisplayName |
    Select-Object -Property ComponentId, ShortDisplayName
ThreadingModelstringread

Threading model used by in-process COM classes. If this property is NULL, then no threading model is used. The component is created on the main thread of the client and calls from other threads are marshaled to this thread.

The Apartment model specifies that components may be entered by one and only one thread. Common data held by these types of object servers must be protected against thread collisions because the object server supports multiple components. Each component can be entered simultaneously by different threads.

The Free model specifies that components place no restrictions on which threads or how many threads can enter the object. The object cannot contain thread-specific data and must protect its data from simultaneous access by multiple threads. Free-threaded components however, cannot be accessed by apartment threads directly, and calls to them are marshaled across from the client apartment.

When Both is specified, components can be used in either apartment-threaded or free-threaded modes. These components can be entered by multiple threads, protect their data from thread collisions, and do not contain thread-specific data.

The values are:

"Apartment"

"Free"

"Both"

Values (3)
ValueLabelDescription
ApartmentApartment
FreeFree
BothBoth
Code
# Value of ThreadingModel for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, ThreadingModel |
    Select-Object -Property ComponentId, ThreadingModel
ToolBoxBitmap32stringread

Module name and resource identifier for a small (16x16) bitmap used for the face of a toolbar or toolbox button. Used when the COM component is an OLE or ActiveX control.

Code
# Value of ToolBoxBitmap32 for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, ToolBoxBitmap32 |
    Select-Object -Property ComponentId, ToolBoxBitmap32
TreatAsClsidstringread

GUID of a COM component that can emulate instances of this component.

Code
# Value of TreatAsClsid for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, TreatAsClsid |
    Select-Object -Property ComponentId, TreatAsClsid
TypeLibraryIdstringread

GUID for the type library for this COM component.

Code
# Value of TypeLibraryId for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, TypeLibraryId |
    Select-Object -Property ComponentId, TypeLibraryId
Versionstringread

Version number of this COM class.

Code
# Value of Version for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, Version |
    Select-Object -Property ComponentId, Version
VersionIndependentProgIdstringread

Program identifier that is consistent for all versions of the same program.

Code
# Value of VersionIndependentProgId for each instance
Get-CimInstance -ClassName Win32_ClassicCOMClassSetting -Property ComponentId, VersionIndependentProgId |
    Select-Object -Property ComponentId, VersionIndependentProgId

Remarks

The Win32_ClassicCOMClassSetting class is derived from Win32_COMSetting.

Inheritance

Superclass chain

  1. CIM_Setting
  2. Win32_COMSetting
  3. Win32_ClassicCOMClassSetting

Known subclasses

No known subclass.

Requirements

Namespace
root/cimv2
Minimum client
Windows Vista
Minimum server
Windows Server 2008
Provider
CIMWin32
MOF file
CIMWin32.mof
DLL
CIMWin32.dll
Class qualifiers

Dynamic Provider("CIMWin32") UUID("{E5D8A562-F6C0-11d2-B35E-00105A1F8569}") AMENDMENT

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.