Include utility - Short copy&paste programming samples

Include - Programming samples

This site contains very short programming samples - VBScript, JScript, VBNet, C#, etc... from part of Windows COM and WMI interface

COM Windows DLLs

COM constants - contains Enum constants from all windows COM DLL and EXE.

WMI - Windows Management Instrumentation

This site contains a list of WMI classes of root\cimv2 namespace and other wmi namespaces from Windows 2012 advanced server. You can see real instances from windows, instance names, keys, class derivation, properties, methods and qualifiers of WMI classes like in CIM studio WMI browser.
This web site allows you to get VBScript, C#, and VB .NET code that uses WMI to complete a management task such as querying for management data, executing a method from a WMI class - it is like offline WMI Code Creator.

Namespaces and classes

Selected WMi classes

Win32_PerfRawData - wmi performance monitoring interface.
CIM_LogicalElement - Filesystem, Files, System, Service, Registry, Process, Printer, Share....
IIS Settings - Web, SMTP, FTP, application pools, ...
CIM_LogicalDevice - Batery, Printer, Processor, Scanner, USBDevice, ...
CIM_Setting - Monitor resolution, display, ports, time zone ...

All WMi namespaces

NameSpaceClasses
ROOT75
ROOT\AccessLogging77
ROOT\ADFS68
ROOT\aspnet80
ROOT\CIMV21592
ROOT\CIMV2\ms_409749
ROOT\CIMV2\power99
ROOT\CIMV2\power\ms_40999
ROOT\CIMV2\rdms77
ROOT\CIMV2\rdms\ms_40977
ROOT\CIMV2\Security65
ROOT\CIMV2\Security\MicrosoftTpm67
ROOT\CIMV2\Security\MicrosoftVolumeEncryption67
ROOT\CIMV2\storage65
ROOT\CIMV2\storage\iscsitarget218
ROOT\CIMV2\storage\iscsitarget\smreg67
ROOT\CIMV2\storage\ms_40965
ROOT\CIMV2\TerminalServices129
ROOT\CIMV2\TerminalServices\ms_409116
ROOT\Cli75
ROOT\Cli\MS_40982
ROOT\DEFAULT77
ROOT\DEFAULT\ms_40971
ROOT\directory65
ROOT\directory\LDAP578
ROOT\directory\LDAP\ms_40974
ROOT\Hardware98
ROOT\Hardware\ms_40998
ROOT\interop90
ROOT\interop\ms_40976
ROOT\InventoryLogging79
ROOT\InventoryLogging\MS_40979
ROOT\Microsoft65
ROOT\Microsoft\HomeNet78
ROOT\Microsoft\IPAM120
ROOT\Microsoft\IPAM\MS_409120
ROOT\Microsoft\SqlServer65
ROOT\Microsoft\SqlServer\ComputerManagement1285
ROOT\Microsoft\SqlServer\ComputerManagement12\MS_40976
ROOT\Microsoft\SqlServer\ReportServer65
ROOT\Microsoft\SqlServer\ReportServer\RS_MSSQLSERVER65
ROOT\Microsoft\SqlServer\ReportServer\RS_MSSQLSERVER\V1266
ROOT\Microsoft\SqlServer\ReportServer\RS_MSSQLSERVER\V12\Admin66
ROOT\Microsoft\SqlServer\ServerEvents65
ROOT\Microsoft\SqlServer\ServerEvents\MSSQLSERVER450
ROOT\Microsoft\Windows65
ROOT\Microsoft\Windows\ClusterUpdate74
ROOT\Microsoft\Windows\ClusterUpdate\MS_40974
ROOT\Microsoft\Windows\Deduplication71
ROOT\Microsoft\Windows\Deduplication\MS_40971
ROOT\Microsoft\Windows\DesiredStateConfiguration72
ROOT\Microsoft\Windows\DesiredStateConfiguration\MS_40972
ROOT\Microsoft\Windows\dfsn73
ROOT\Microsoft\Windows\dfsn\MS_40973
ROOT\Microsoft\Windows\Dfsr81
ROOT\Microsoft\Windows\Dfsr\MS_40981
ROOT\Microsoft\Windows\DHCP155
ROOT\Microsoft\Windows\DHCP\MS_409155
ROOT\Microsoft\Windows\Dns201
ROOT\Microsoft\Windows\Dns\MS_409201
ROOT\Microsoft\Windows\FSRM92
ROOT\Microsoft\Windows\FSRM\MS_40965
ROOT\Microsoft\Windows\HardwareManagement73
ROOT\Microsoft\Windows\HardwareManagement\MS_40973
ROOT\Microsoft\Windows\NFS83
ROOT\Microsoft\Windows\NFS\MS_40983
ROOT\Microsoft\Windows\Powershellv370
ROOT\Microsoft\Windows\Powershellv3\MS_40970
ROOT\Microsoft\Windows\PS_MMAgent67
ROOT\Microsoft\Windows\PS_MMAgent\MS_40967
ROOT\Microsoft\Windows\RemoteAccess188
ROOT\Microsoft\Windows\RemoteAccess\Client90
ROOT\Microsoft\Windows\RemoteAccess\Client\MS_40990
ROOT\Microsoft\Windows\RemoteAccess\MS_409188
ROOT\Microsoft\Windows\RemoteAccess\Server86
ROOT\Microsoft\Windows\RemoteAccess\Server\MS_40986
ROOT\Microsoft\Windows\ServerManager352
ROOT\Microsoft\Windows\ServerManager\MS_40985
ROOT\Microsoft\Windows\SMB79
ROOT\Microsoft\Windows\SMB\MS_40967
ROOT\Microsoft\Windows\SmbWitness66
ROOT\Microsoft\Windows\Storage155
ROOT\Microsoft\Windows\Storage\MS_409155
ROOT\Microsoft\Windows\Storage\providers_v2152
ROOT\Microsoft\Windows\Storage\PT65
ROOT\Microsoft\Windows\Storage\PT\Alt65
ROOT\Microsoft\Windows\Storage\SM117
ROOT\Microsoft\Windows\Storage\SM\ms_40990
ROOT\Microsoft\Windows\SyncShareServer68
ROOT\Microsoft\Windows\SyncShareServer\MS_40965
ROOT\Microsoft\Windows\TaskScheduler95
ROOT\Microsoft\Windows\TaskScheduler\MS_40965
ROOT\Microsoft\Windows\Wdac74
ROOT\Microsoft\Windows\Wdac\MS_40974
ROOT\Microsoft\Windows\winrm66
ROOT\MicrosoftActiveDirectory74
ROOT\MicrosoftDfs81
ROOT\MicrosoftDfs\ms_40981
ROOT\MicrosoftDNS107
ROOT\MicrosoftIISv2427
ROOT\MicrosoftIISv2\MS_40985
ROOT\MicrosoftNLB115
ROOT\MicrosoftNLB\ms_409106
ROOT\MSCluster138
ROOT\MSCluster\ms_409135
ROOT\msdtc85
ROOT\nap68
ROOT\Policy69
ROOT\Policy\ms_40967
ROOT\RSOP67
ROOT\RSOP\Computer168
ROOT\RSOP\Computer\ms_409150
ROOT\RSOP\User157
ROOT\RSOP\User\ms_409156
ROOT\RSOP\User\S_1_5_21_4251975986_251742880_3643873951_1002157
ROOT\RSOP\User\S_1_5_21_4251975986_251742880_3643873951_500157
ROOT\SECURITY68
ROOT\ServiceModel150
ROOT\snmp66
ROOT\snmp\localhost65
ROOT\snmp\SMIR110
ROOT\snmp\SMIR\RFC1213_MIB66
ROOT\snmp\SMIR\RFC1213_MIB\atV1ObjectGroup65
ROOT\snmp\SMIR\RFC1213_MIB\egpV1ObjectGroup65
ROOT\snmp\SMIR\RFC1213_MIB\icmpV1ObjectGroup65
ROOT\snmp\SMIR\RFC1213_MIB\interfacesV1ObjectGroup65
ROOT\snmp\SMIR\RFC1213_MIB\ipV1ObjectGroup65
ROOT\snmp\SMIR\RFC1213_MIB\snmpV1ObjectGroup65
ROOT\snmp\SMIR\RFC1213_MIB\systemV1ObjectGroup65
ROOT\snmp\SMIR\RFC1213_MIB\tcpV1ObjectGroup65
ROOT\snmp\SMIR\RFC1213_MIB\udpV1ObjectGroup65
ROOT\StandardCimv2356
ROOT\StandardCimv2\MS_409350
ROOT\subscription70
ROOT\subscription\ms_40970
ROOT\virtualization65
ROOT\virtualization\v2418
ROOT\virtualization\v2\ms_409389
ROOT\WebAdministration449
ROOT\WebAdministration\MS_409449
ROOT\WMI4408
ROOT\WMI\ms_4091387
online utility - toplist
WUtils.com