Main example
List instances
# All instances of CIM_ProcessExecutable, with the main properties
Get-CimInstance -ClassName CIM_ProcessExecutable |
Select-Object -Property BaseAddress, GlobalProcessCount, ModuleInstance, ProcessCountExamples
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, FlagsProperties
| Name | Type | Access | Description |
|---|---|---|---|
| Antecedent# key | CIM_DataFile | read | A CIM_DataFile that describes the data file participating in the execution of the process. Code |
| BaseAddress# | uint64 | read | 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 |
| Dependent# key | CIM_Process | read | A CIM_Process that describes the process. Code |
| GlobalProcessCount# | uint32 | read | Current number of processes that have the file loaded in memory. Code |
| ModuleInstance# | uint32 | read | Win32 instance handle. This property is obsolete, and there is no replacement value. Code |
| ProcessCount# | uint32 | read | Reference count of the file in the associated process. Code |
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
- CIM_Dependency
- 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
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.