CIM_ProcessExecutable

CIM Process Executable
root/cimv2dynamickey : Antecedentkey : Dependent

The CIM_ProcessExecutable class represents a link between a process and data file, and indicates that the file participates in the execution of the process.

On this page

Main example

List instances

# All instances of CIM_ProcessExecutable, with the main properties
Get-CimInstance -ClassName CIM_ProcessExecutable |
    Select-Object -Property BaseAddress, GlobalProcessCount, ModuleInstance, ProcessCount

Examples

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 CIM_ProcessExecutable |
        Select-Object -Property @(
            'BaseAddress'
            'GlobalProcessCount'
            'ModuleInstance'
            'ProcessCount'
        )
} 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 CIM_ProcessExecutable
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

6 of 6 properties
NameTypeAccessDescription
Antecedent keyCIM_DataFileread

A CIM_DataFile that describes the data file participating in the execution of the process.

Code
# Value of Antecedent for each instance
Get-CimInstance -ClassName CIM_ProcessExecutable -Property Antecedent |
    Select-Object -Property Antecedent
BaseAddressuint64read

Base address of the module in the address space of the associated process.

For more information about using uint64 values in scripts, see Scripting in WMI.

Code
# Value of BaseAddress for each instance
Get-CimInstance -ClassName CIM_ProcessExecutable -Property BaseAddress |
    Select-Object -Property BaseAddress
Dependent keyCIM_Processread

A CIM_Process that describes the process.

Code
# Value of Dependent for each instance
Get-CimInstance -ClassName CIM_ProcessExecutable -Property Dependent |
    Select-Object -Property Dependent
GlobalProcessCountuint32read

Current number of processes that have the file loaded in memory.

Code
# Value of GlobalProcessCount for each instance
Get-CimInstance -ClassName CIM_ProcessExecutable -Property GlobalProcessCount |
    Select-Object -Property GlobalProcessCount
ModuleInstanceuint32read

Win32 instance handle. This property is obsolete, and there is no replacement value.

Code
# Value of ModuleInstance for each instance
Get-CimInstance -ClassName CIM_ProcessExecutable -Property ModuleInstance |
    Select-Object -Property ModuleInstance
ProcessCountuint32read

Reference count of the file in the associated process.

Code
# Value of ProcessCount for each instance
Get-CimInstance -ClassName CIM_ProcessExecutable -Property ProcessCount |
    Select-Object -Property ProcessCount

Remarks

The CIM_ProcessExecutable class is derived from CIM_Dependency.

WMI implements the CIM_ProcessExecutable class. The CIM_ProcessExecutable class is a dynamic class.

This documentation is derived from the CIM class descriptions published by the DMTF. Microsoft may have made changes to correct minor errors, conform to Microsoft SDK documentation standards, or provide more information.

Inheritance

Superclass chain

  1. CIM_Dependency
  2. CIM_ProcessExecutable

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

Privileges("SeDebugPrivilege") Dynamic Provider("CIMWin32") UUID("{8502C542-5FBB-11D2-AAC1-006008C78BC7}") 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.