count - property in ROOT\WMI namespace

count in other namespaces

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

propertyClassOrigin
countAcpiPssAcpiPss
countauto_statsauto_stats
countbroker_activation_stored_procedure_invokedbroker_activation_stored_procedure_invoked
countbroker_activation_task_abortedbroker_activation_task_aborted
countbroker_activation_task_limit_reachedbroker_activation_task_limit_reached
countbroker_activation_task_startedbroker_activation_task_started
countbuffer_manager_database_pagesbuffer_manager_database_pages
countbuffer_manager_free_pagesbuffer_manager_free_pages
countbuffer_manager_page_life_expectancybuffer_manager_page_life_expectancy
countbuffer_manager_stolen_pagesbuffer_manager_stolen_pages
countbuffer_manager_target_pagesbuffer_manager_target_pages
countbuffer_manager_total_pagesbuffer_manager_total_pages
countbuffer_node_database_pagesbuffer_node_database_pages
countbuffer_node_free_pagesbuffer_node_free_pages
countbuffer_node_page_life_expectancybuffer_node_page_life_expectancy
countbuffer_node_stolen_pagesbuffer_node_stolen_pages
countbuffer_node_target_pagesbuffer_node_target_pages
countbuffer_node_total_pagesbuffer_node_total_pages
countbuffer_partition_free_list_emptybuffer_partition_free_list_empty
countbuffer_partition_free_list_requestsbuffer_partition_free_list_requests
countbuffer_partition_free_pagesbuffer_partition_free_pages
countcatalog_metadata_cache_entry_addedcatalog_metadata_cache_entry_added
countcatalog_metadata_cache_entry_pinnedcatalog_metadata_cache_entry_pinned
countcatalog_metadata_cache_entry_removedcatalog_metadata_cache_entry_removed
countcatalog_metadata_cache_entry_unpinnedcatalog_metadata_cache_entry_unpinned
countcatalog_metadata_cache_hitcatalog_metadata_cache_hit
countcursor_manager_cached_cursor_addedcursor_manager_cached_cursor_added
countcursor_manager_cached_cursor_removedcursor_manager_cached_cursor_removed
countcursor_manager_cursor_begincursor_manager_cursor_begin
countcursor_manager_cursor_cache_attemptcursor_manager_cursor_cache_attempt
countcursor_manager_cursor_cache_hitcursor_manager_cursor_cache_hit
countcursor_manager_cursor_endcursor_manager_cursor_end
countcursor_manager_cursor_memory_usagecursor_manager_cursor_memory_usage
countcursor_manager_cursor_plan_begincursor_manager_cursor_plan_begin
countcursor_manager_cursor_plan_endcursor_manager_cursor_plan_end
countcursor_manager_cursor_worktable_use_begincursor_manager_cursor_worktable_use_begin
countcursor_manager_cursor_worktable_use_endcursor_manager_cursor_worktable_use_end
countdatabase_transaction_begindatabase_transaction_begin
countdatabase_transaction_enddatabase_transaction_end
countdatabases_backup_restore_throughputdatabases_backup_restore_throughput
countdatabases_bulk_copy_rowsdatabases_bulk_copy_rows
countdatabases_bulk_copy_throughputdatabases_bulk_copy_throughput
countdatabases_bulk_insert_rowsdatabases_bulk_insert_rows
countdatabases_bulk_insert_throughputdatabases_bulk_insert_throughput
countdatabases_data_file_size_changeddatabases_data_file_size_changed
countdatabases_dbcc_logical_scandatabases_dbcc_logical_scan
countdatabases_log_cache_hitdatabases_log_cache_hit
countdatabases_log_cache_readdatabases_log_cache_read
countdatabases_log_file_size_changeddatabases_log_file_size_changed
countdatabases_log_file_used_size_changeddatabases_log_file_used_size_changed
countdatabases_log_flushdatabases_log_flush
countdatabases_log_flush_waitdatabases_log_flush_wait
countdatabases_log_growthdatabases_log_growth
countdatabases_log_shrinkdatabases_log_shrink
countdatabases_log_truncationdatabases_log_truncation
countdatabases_shrink_data_movementdatabases_shrink_data_movement
countGCEndGCEnd
countGCFinalizersEndGCFinalizersEnd
countGCStartGCStart
countIdleStateBucketExIdleStateBucketEx
countKernelIdleStatesKernelIdleStates
countKernelPerfStatesKernelPerfStates
countlocks_lock_timeoutslocks_lock_timeouts
countlocks_lock_timeouts_greater_than_0locks_lock_timeouts_greater_than_0
countlocks_lock_waitslocks_lock_waits
countmemory_manager_database_cache_memorymemory_manager_database_cache_memory
countmemory_manager_free_memorymemory_manager_free_memory
countmemory_manager_reserved_server_memorymemory_manager_reserved_server_memory
countmemory_manager_stolen_server_memorymemory_manager_stolen_server_memory
countmemory_manager_target_server_memorymemory_manager_target_server_memory
countmemory_manager_total_server_memorymemory_manager_total_server_memory
countmemory_node_database_node_memorymemory_node_database_node_memory
countmemory_node_foreign_node_memorymemory_node_foreign_node_memory
countmemory_node_free_node_memorymemory_node_free_node_memory
countmemory_node_stolen_node_memorymemory_node_stolen_node_memory
countmemory_node_target_node_memorymemory_node_target_node_memory
countmemory_node_total_node_memorymemory_node_total_node_memory
countMSMCAInfo_RawCMCEventMSMCAInfo_RawCMCEvent
countMSMCAInfo_RawCorrectedPlatformEventMSMCAInfo_RawCorrectedPlatformEvent
countMSMCAInfo_RawMCADataMSMCAInfo_RawMCAData
countMSMCAInfo_RawMCAEventMSMCAInfo_RawMCAEvent
countMSSmBios_Sysid1394ListMSSmBios_Sysid1394List
countMSSmBios_SysidUUIDListMSSmBios_SysidUUIDList
countMSVerifierIrpLogEntryMSVerifierIrpLogEntry
countMSWmi_PnPInstanceNamesMSWmi_PnPInstanceNames
countObReferenceEventObReferenceEvent
countPerformanceStatesPerformanceStates
countplan_cache_cache_attemptplan_cache_cache_attempt
countplan_cache_cache_hitplan_cache_cache_hit
countProcess_V2_TypeGroup4Process_V2_TypeGroup4
countProcessorAcpiCsdProcessorAcpiCsd
countProcessorAcpiCstProcessorAcpiCst
countProcessorAcpiTsdProcessorAcpiTsd
countProcessorAcpiTssProcessorAcpiTss
countProcessorAcpiXpssProcessorAcpiXpss
countSampledProfileSampledProfile
countSampledProfile_V1SampledProfile_V1
countuser_settableuser_settable

Code samples for count property

Get instance of WMI class using GetObject, count property of MSWmi_PnPInstanceNames

Short VBS code - get a single specified instance of MSWmi_PnPInstanceNames 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:" + _
 "MSWmi_PnPInstanceNames.InstanceName=""ROOT\\MPIO\\0000""")
Wscript.Echo wmiObject.count 'or other property name, see properties
See more VBS samples of MSWmi_PnPInstanceNames class

WMI query - sample windows WQL with C#, count property of MSWmi_PnPInstanceNames

Get a specified instance of MSWmi_PnPInstanceNames 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 MSWmi_PnPInstanceNames Where InstanceName=\"ROOT\\\\MPIO\\\\0000\"");

//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("count : {0}", m["count"]);
  
}

WMI query - sample windows WQL with VB.Net, count property of MSWmi_PnPInstanceNames

Get a specified instance of MSWmi_PnPInstanceNames 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 MSWmi_PnPInstanceNames Where InstanceName="ROOT\\MPIO\\0000"")

'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("count : {0}", mObject("count"))
Next
comments powered by Disqus
WUtils.com