transaction_id - property in ROOT\WMI namespace

transaction_id in other namespaces

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

propertyClassOrigin
transaction_idblocked_process_reportblocked_process_report
transaction_idclustered_columnstore_index_rebuildclustered_columnstore_index_rebuild
transaction_iddtc_transactiondtc_transaction
transaction_idfilestream_file_io_failurefilestream_file_io_failure
transaction_idfilestream_file_io_requestfilestream_file_io_request
transaction_idfilestream_file_io_responsefilestream_file_io_response
transaction_idfilestream_file_io_tracefilestream_file_io_trace
transaction_idhadr_filestream_message_dir_createhadr_filestream_message_dir_create
transaction_idhadr_filestream_message_file_writehadr_filestream_message_file_write
transaction_idhadr_filestream_undo_inplace_updatehadr_filestream_undo_inplace_update
transaction_idlock_acquiredlock_acquired
transaction_idlock_cancellock_cancel
transaction_idlock_deadlocklock_deadlock
transaction_idlock_deadlock_chainlock_deadlock_chain
transaction_idlock_escalationlock_escalation
transaction_idlock_redo_blockedlock_redo_blocked
transaction_idlock_redo_unblockedlock_redo_unblocked
transaction_idlock_releasedlock_released
transaction_idlock_timeoutlock_timeout
transaction_idlock_timeout_greater_than_0lock_timeout_greater_than_0
transaction_idobject_alteredobject_altered
transaction_idobject_createdobject_created
transaction_idobject_deletedobject_deleted
transaction_idsql_transactionsql_transaction
transaction_idsql_transaction_commit_single_phasesql_transaction_commit_single_phase
transaction_idtransaction_logtransaction_log

Code samples for transaction_id property

Get instance of WMI class using GetObject, transaction_id property of lock_released

Short VBS code - get a single specified instance of lock_released 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:" + _
 "lock_released.PropertyName=""SomeText""")
Wscript.Echo wmiObject.transaction_id 'or other property name, see properties
See more VBS samples of lock_released class

WMI query - sample windows WQL with C#, transaction_id property of lock_released

Get a specified instance of lock_released 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 lock_released 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("transaction_id : {0}", m["transaction_id"]);
  
}

WMI query - sample windows WQL with VB.Net, transaction_id property of lock_released

Get a specified instance of lock_released 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 lock_released 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("transaction_id : {0}", mObject("transaction_id"))
Next
comments powered by Disqus
WUtils.com