is_initiator - property in ROOT\WMI namespace

is_initiator in other namespaces

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

propertyClassOrigin
is_initiatorbroker_conversationbroker_conversation
is_initiatorbroker_dialog_state_changebroker_dialog_state_change
is_initiatorbroker_dialog_transmission_queue_dequeuebroker_dialog_transmission_queue_dequeue
is_initiatorbroker_dialog_transmission_queue_enqueuebroker_dialog_transmission_queue_enqueue
is_initiatorbroker_forwarded_message_droppedbroker_forwarded_message_dropped
is_initiatorbroker_forwarded_message_sentbroker_forwarded_message_sent
is_initiatorbroker_message_classifybroker_message_classify
is_initiatorbroker_message_undeliverablebroker_message_undeliverable
is_initiatorbroker_remote_message_acknowledgementbroker_remote_message_acknowledgement
is_initiatorbroker_transmission_exceptionbroker_transmission_exception

Code samples for is_initiator property

Get instance of WMI class using GetObject, is_initiator property of broker_transmission_exception

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

WMI query - sample windows WQL with C#, is_initiator property of broker_transmission_exception

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

WMI query - sample windows WQL with VB.Net, is_initiator property of broker_transmission_exception

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