increment - property in ROOT\WMI namespace

increment in other namespaces

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

propertyClassOrigin
incrementbuffer_partition_free_list_emptybuffer_partition_free_list_empty
incrementbuffer_partition_free_list_requestsbuffer_partition_free_list_requests
incrementcursor_manager_cursor_memory_usagecursor_manager_cursor_memory_usage
incrementdatabases_backup_restore_throughputdatabases_backup_restore_throughput
incrementdatabases_bulk_copy_rowsdatabases_bulk_copy_rows
incrementdatabases_bulk_copy_throughputdatabases_bulk_copy_throughput
incrementdatabases_bulk_insert_rowsdatabases_bulk_insert_rows
incrementdatabases_bulk_insert_throughputdatabases_bulk_insert_throughput
incrementdatabases_dbcc_logical_scandatabases_dbcc_logical_scan
incrementdatabases_log_file_size_changeddatabases_log_file_size_changed
incrementdatabases_shrink_data_movementdatabases_shrink_data_movement
incrementlocks_lock_waitslocks_lock_waits
incrementuser_settableuser_settable

Code samples for increment property

Get instance of WMI class using GetObject, increment property of user_settable

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

WMI query - sample windows WQL with C#, increment property of user_settable

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

WMI query - sample windows WQL with VB.Net, increment property of user_settable

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