file_id - property in ROOT\WMI namespace

file_id in other namespaces

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

propertyClassOrigin
file_idadd_file_in_masteradd_file_in_master
file_idadd_file_rollbackadd_file_rollback
file_idallocation_ring_buffer_recordedallocation_ring_buffer_recorded
file_idbad_memory_fixedbad_memory_fixed
file_idconstant_page_corruption_detectedconstant_page_corruption_detected
file_iddatabase_file_size_changedatabase_file_size_change
file_iddatabase_suspect_data_pagedatabase_suspect_data_page
file_iddelete_or_mark_filedelete_or_mark_file
file_iddrop_file_committeddrop_file_committed
file_iddrop_file_prepareddrop_file_prepared
file_iddrop_file_rollbackdrop_file_rollback
file_idfile_added_in_databasefile_added_in_database
file_idfile_readfile_read
file_idfile_read_completedfile_read_completed
file_idfile_read_enqueuedfile_read_enqueued
file_idfile_read_throttledfile_read_throttled
file_idfile_write_completedfile_write_completed
file_idfile_write_enqueuedfile_write_enqueued
file_idfile_write_throttledfile_write_throttled
file_idfile_writtenfile_written
file_idfile_written_to_replicafile_written_to_replica
file_idghost_cleanupghost_cleanup
file_idghost_cleanup_task_packet_enqueueghost_cleanup_task_packet_enqueue
file_idghost_cleanup_task_process_packetghost_cleanup_task_process_packet
file_idhadr_apply_vlfheaderhadr_apply_vlfheader
file_idhadr_capture_vlfheaderhadr_capture_vlfheader
file_idhadr_db_manager_filemetadata_requesthadr_db_manager_filemetadata_request
file_idhadr_db_manager_page_requesthadr_db_manager_page_request
file_idhobt_schema_mgr_hobt_pagehobt_schema_mgr_hobt_page
file_idindex_build_extents_allocationindex_build_extents_allocation
file_idlatch_acquire_timelatch_acquire_time
file_idlatch_acquiredlatch_acquired
file_idlatch_demotedlatch_demoted
file_idlatch_promotedlatch_promoted
file_idlatch_releasedlatch_released
file_idlatch_suspend_beginlatch_suspend_begin
file_idlatch_suspend_endlatch_suspend_end
file_idlatch_suspend_warninglatch_suspend_warning
file_idleaf_page_disfavoredleaf_page_disfavored
file_idlog_flush_completelog_flush_complete
file_idlog_flush_retrylog_flush_retry
file_idlog_flush_startlog_flush_start
file_idlog_io_completelog_io_complete
file_idmixed_extent_activationmixed_extent_activation
file_idmixed_extent_allocationmixed_extent_allocation
file_idmixed_extent_deallocationmixed_extent_deallocation
file_idmixed_page_allocationmixed_page_allocation
file_idmixed_page_deallocationmixed_page_deallocation
file_idmixed_page_skipextentmixed_page_skipextent
file_idmodify_file_namemodify_file_name
file_idmodify_file_operationmodify_file_operation
file_idpage_compression_attempt_failedpage_compression_attempt_failed
file_idpage_compression_tracingpage_compression_tracing
file_idpage_reference_trackerpage_reference_tracker
file_idpage_splitpage_split
file_idphysical_page_readphysical_page_read
file_idphysical_page_writephysical_page_write
file_idprefetch_extentprefetch_extent
file_idrecovery_catch_checkpointrecovery_catch_checkpoint
file_idrecovery_force_oldest_pagerecovery_force_oldest_page
file_idrecovery_simple_log_truncaterecovery_simple_log_truncate
file_idvalidate_filevalidate_file
file_idxtp_offline_checkpoint_bfc_updatextp_offline_checkpoint_bfc_update

Code samples for file_id property

Get instance of WMI class using GetObject, file_id property of file_read

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

WMI query - sample windows WQL with C#, file_id property of file_read

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

WMI query - sample windows WQL with VB.Net, file_id property of file_read

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