object_id - property in ROOT\WMI namespace

object_id in other namespaces

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

propertyClassOrigin
object_idafter_natively_compiled_proc_entry_removal_on_dropafter_natively_compiled_proc_entry_removal_on_drop
object_idalter_table_update_dataalter_table_update_data
object_idauto_statsauto_stats
object_idbackground_job_errorbackground_job_error
object_idbefore_natively_compiled_proc_entry_removal_on_dropbefore_natively_compiled_proc_entry_removal_on_drop
object_idblocked_process_reportblocked_process_report
object_idchange_based_metadata_cache_refreshchange_based_metadata_cache_refresh
object_idchange_tracking_cleanupchange_tracking_cleanup
object_idclustered_columnstore_index_rebuildclustered_columnstore_index_rebuild
object_idcolumn_store_object_pool_hitcolumn_store_object_pool_hit
object_idcolumn_store_object_pool_misscolumn_store_object_pool_miss
object_idddl_with_wait_at_low_priorityddl_with_wait_at_low_priority
object_idfull_text_crawl_startedfull_text_crawl_started
object_idfull_text_crawl_stoppedfull_text_crawl_stopped
object_idfulltext_query_recompilefulltext_query_recompile
object_idfulltext_test_access_pointfulltext_test_access_point
object_idindex_description_unpinindex_description_unpin
object_idlock_acquiredlock_acquired
object_idlock_cancellock_cancel
object_idlock_deadlocklock_deadlock
object_idlock_deadlock_chainlock_deadlock_chain
object_idlock_escalationlock_escalation
object_idlock_redo_blockedlock_redo_blocked
object_idlock_redo_unblockedlock_redo_unblocked
object_idlock_releasedlock_released
object_idlock_request_prioritylock_request_priority
object_idlock_request_priority_statelock_request_priority_state
object_idlock_timeoutlock_timeout
object_idlock_timeout_greater_than_0lock_timeout_greater_than_0
object_idmetadata_agent_catalog_updatedmetadata_agent_catalog_updated
object_idmetadata_agent_lock_objectmetadata_agent_lock_object
object_idmetadata_cache_addmetadata_cache_add
object_idmetadata_cache_flushmetadata_cache_flush
object_idmetadata_cache_hitmetadata_cache_hit
object_idmetadata_cache_missmetadata_cache_miss
object_idmetadata_cache_updatemetadata_cache_update
object_idmetadata_cache_vlr_postedmetadata_cache_vlr_posted
object_idmetadata_create_global_temp_objectmetadata_create_global_temp_object
object_idmetadata_create_local_temp_objectmetadata_create_local_temp_object
object_idmetadata_ddl_add_columnmetadata_ddl_add_column
object_idmetadata_ddl_alter_columnmetadata_ddl_alter_column
object_idmetadata_ddl_drop_columnmetadata_ddl_drop_column
object_idmetadata_delete_global_temp_objectmetadata_delete_global_temp_object
object_idmetadata_delete_local_temp_objectmetadata_delete_local_temp_object
object_idmetadata_initiate_lock_objectmetadata_initiate_lock_object
object_idmetadata_initiate_unlock_objectmetadata_initiate_unlock_object
object_idmetadata_lock_objectmetadata_lock_object
object_idmetadata_manager_catalog_deletedmetadata_manager_catalog_deleted
object_idmetadata_manager_catalog_insertedmetadata_manager_catalog_inserted
object_idmetadata_manager_catalog_updatedmetadata_manager_catalog_updated
object_idmetadata_manager_lock_objectmetadata_manager_lock_object
object_idmetadata_unlock_objectmetadata_unlock_object
object_idmetadata_version_updatemetadata_version_update
object_idmodule_endmodule_end
object_idmodule_startmodule_start
object_idnatively_compiled_proc_execution_startednatively_compiled_proc_execution_started
object_idnatively_compiled_proc_slow_parameter_passingnatively_compiled_proc_slow_parameter_passing
object_idobject_alteredobject_altered
object_idobject_createdobject_created
object_idobject_deletedobject_deleted
object_idplan_guide_successfulplan_guide_successful
object_idplan_guide_unsuccessfulplan_guide_unsuccessful
object_idpreconnect_completedpreconnect_completed
object_idpreconnect_startingpreconnect_starting
object_idprocess_killed_by_abort_blockersprocess_killed_by_abort_blockers
object_idprogress_report_online_index_operationprogress_report_online_index_operation
object_idquery_post_compilation_showplanquery_post_compilation_showplan
object_idquery_post_execution_showplanquery_post_execution_showplan
object_idquery_pre_execution_showplanquery_pre_execution_showplan
object_idquery_store_failed_to_capture_queryquery_store_failed_to_capture_query
object_idquery_store_failed_to_load_forced_planquery_store_failed_to_load_forced_plan
object_idscan_startedscan_started
object_idscan_stoppedscan_stopped
object_idsp_cache_hitsp_cache_hit
object_idsp_cache_insertsp_cache_insert
object_idsp_cache_misssp_cache_miss
object_idsp_cache_removesp_cache_remove
object_idsp_statement_completedsp_statement_completed
object_idsp_statement_startingsp_statement_starting
object_idsql_statement_recompilesql_statement_recompile
object_idxtp_create_procedurextp_create_procedure
object_idxtp_create_tablextp_create_table
object_idxtp_deploy_donextp_deploy_done
object_idxtp_matgenxtp_matgen
object_idxtp_recover_donextp_recover_done
object_idxtp_recover_tablextp_recover_table

Code samples for object_id property

Get instance of WMI class using GetObject, object_id property of metadata_create_global_temp_object

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

WMI query - sample windows WQL with C#, object_id property of metadata_create_global_temp_object

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

WMI query - sample windows WQL with VB.Net, object_id property of metadata_create_global_temp_object

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