ProcessId - property in ROOT\WMI namespace

ProcessId in other namespaces

List of classes with ProcessId local property in ROOT\WMI namespace

propertyClassOrigin
ProcessIdFileIo_V2_MapFileFileIo_V2_MapFile
ProcessIdFileOperationFileOperation
ProcessIdFtpExtensibility_TerminateExtensibilityProcessFtpExtensibility_TerminateExtensibilityProcess
ProcessIdHeapSnapShotHeapSnapShot
ProcessIdHeapSnapShot_V2HeapSnapShot_V2
ProcessIdHvContextSwitchHvContextSwitch
ProcessIdHvThreadRunnableDeferHvThreadRunnableDefer
ProcessIdHvThreadRunnableLocalHvThreadRunnableLocal
ProcessIdImage_LoadImage_Load
ProcessIdImage_Load_V2Image_Load_V2
ProcessIdImage_V1_LoadImage_V1_Load
ProcessIdObHandleRundownEventObHandleRundownEvent
ProcessIdPageFault_VirtualAllocPageFault_VirtualAlloc
ProcessIdPageFault_VirtualAllocRundownPageFault_VirtualAllocRundown
ProcessIdProcess_Defunct_TypeGroup1Process_Defunct_TypeGroup1
ProcessIdProcess_Terminate_TypeGroup1Process_Terminate_TypeGroup1
ProcessIdProcess_V0_TypeGroup1Process_V0_TypeGroup1
ProcessIdProcess_V1_TypeGroup1Process_V1_TypeGroup1
ProcessIdProcess_V2_TypeGroup1Process_V2_TypeGroup1
ProcessIdProcess_V2_TypeGroup2Process_V2_TypeGroup2
ProcessIdProcess_V2_TypeGroup3Process_V2_TypeGroup3
ProcessIdProcess_V2_TypeGroup4Process_V2_TypeGroup4
ProcessIdProcess_V3_TypeGroup1Process_V3_TypeGroup1
ProcessIdProcess_V4_TypeGroup1Process_V4_TypeGroup1
ProcessIdSystemConfig_V0_ServicesSystemConfig_V0_Services
ProcessIdSystemConfig_V1_ServicesSystemConfig_V1_Services
ProcessIdSystemConfig_V2_ServicesSystemConfig_V2_Services
ProcessIdSystemConfig_V3_ServicesSystemConfig_V3_Services
ProcessIdThread_TypeGroup1Thread_TypeGroup1
ProcessIdThread_V0_TypeGroup1Thread_V0_TypeGroup1
ProcessIdThread_V1_TypeGroup1Thread_V1_TypeGroup1
ProcessIdThread_V1_TypeGroup2Thread_V1_TypeGroup2
ProcessIdThread_V2_TypeGroup1Thread_V2_TypeGroup1
ProcessIdUmsDirectedSwitchEndUmsDirectedSwitchEnd
ProcessIdUmsDirectedSwitchStartUmsDirectedSwitchStart
ProcessIdUmsDisassociateUmsDisassociate
ProcessIdUmsScheduledParkUmsScheduledPark
ProcessIdW3CGIFAssignProcessW3CGIFAssignProcess
ProcessIdW3CGILaunchW3CGILaunch
ProcessIdW3GeneralOopISAPIHandlerW3GeneralOopISAPIHandler
ProcessIdW3OopRequestW3OopRequest

Code samples for ProcessId property

Get instance of WMI class using GetObject, ProcessId property of Image_Load_V2

Short VBS code - get a single specified instance of Image_Load_V2 class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\WMI:" + _
 "Image_Load_V2.PropertyName=""SomeText""")
Wscript.Echo wmiObject.ProcessId 'or other property name, see properties
See more VBS samples of Image_Load_V2 class

WMI query - sample windows WQL with C#, ProcessId property of Image_Load_V2

Get a specified instance of Image_Load_V2 by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\WMI");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM Image_Load_V2 Where PropertyName=\"SomeText\"");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("ProcessId : {0}", m["ProcessId"]);
  
}

WMI query - sample windows WQL with VB.Net, ProcessId property of Image_Load_V2

Get a specified instance of Image_Load_V2 by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\WMI")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM Image_Load_V2 Where PropertyName="SomeText"")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("ProcessId : {0}", mObject("ProcessId"))
Next
comments powered by Disqus
WUtils.com