我喜爱的软件2 — screen

linux下有很多优秀的软件, screen就是其中一款. 它可帮助我们在网络情况不好的条件下, 不间断完成一些任务. 在没有screen的很多时候我们在ssh上一台服务器, 当我们在操作一半时网络突然出现问题, 我们很容易就会掉线, 没有完成的操作也会中断. 不但影响了工作的效率还容易出现问题, 比如在部署一台远程的服务器, 如果中断了后果不堪设想:(. 这时候我们就需要强大的screen的帮助了.

一般来说screen适合一下情况的需要:

1. 需要在网络不稳定的条件下, 在远程服务器上执行命令.
2. 工作任务很多的情况下, 需要一个多任务的终端, 方便不同环境的切换. screen是支持多个窗口的.
3. 不是在Window X 下模拟的terminal(或者是也行), 一个没有鼠标的环境, 但是想看之前屏幕缓冲终端日志或输出的时候. 这点在直接点就是: 用键盘快速滚动terminal的屏幕, 并执行选择/复制的操作, 要比用鼠标块很多. 只要C+[就行了
4. 远程协助, 这点我觉得是screen的一大亮点, 在不用vnc和rdp的情况下, 执行远程协助, 速度非常快. 使用时没有附加上更多笨重的数据.一个用户先用screen -r/-S进入一个screen, 另一个用户在通过screen -x进入用一个scoketname. 然后两个人执行一些linux命令, 看看, 很有趣吧.
5. 还可以实现bash中的多进程编程(类似多线程), 是不是很酷呢?

screen的这么多功能执行起来却异常的简单, 而且配置也很简单, 很多功能比如字符的显示特性完全依赖本地的terminal配置, 也就是不用在重复的配置.

screen常用命令:
screen -S NAME 创建一个名为”NAME”的screen进程
screen -r NAME 恢复”NAME”screen进程
screen -ls 查看已经创建的screen进程
screen -x NAME 进入一个Attached状态的screen进程, 也就远程协助
screen -wipe clean up screen 的 socket目录
screen -dmS 在后台执行中的命令, 可以在多进程shell变成中使用.

在screen中的常用命令:
C+a c 创建一个窗口
C+a n/p 访问当前下一个/上一个窗口
C+a [0-9] 直接访问第[0-9]个窗口
C+a A 修改窗口名
C+a d 当前screen进程进入 Detached状态
C+a [ 进入选择模式 C+u是向上滚动, C+d是向下滚动.

还有默认的screen界面比较单调, 在screenrc中加入

Bash语言:
1 ## alternative caption, gives window list, LOGNAME and current date:
2 caption always “%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw %=%{mk}@%H %{yk}%D %{ck}%M%{wk} %{ck}%d %{gk}%c”
3 hardstatus alwaysignore
4 hardstatus alwayslastline “%Lw”
5 # Red Hat’s normal status line
6 hardstatus string “[screen %n%?: %t%?] %h”
上面大概含义就是在screen中显示一个状态条, 上面显示”title”,”host”,”time” 等等信息.
最后, 有的用户在使用时可能会发现, 为什么我重启电脑后我的之前创建的screen都没有了? 这是sighup问题, 请看” http://www.ibm.com/developerworks/cn/linux/l-cn-screen/” 这边介绍.
Advertisements

我喜爱的软件1--专注模式

在人人网工作有一件事情比较郁闷,就是要经常上人人网。我不是说人人网不好,但是容易养成经常刷新新鲜事的”恶习”,这就很纠结了:)。这种”不好的习惯”,在开发任务紧的时候,肯定会影响到我开发进度。非常痛苦。

我现在主要使用的浏览器是google chrome,在它的app store中,我找了一个非常不错的app-”专注模式”。它是一个自控的软件,如果我在不应该浏览人人网时候浏览了,它会出现四个大大的字-”保持专注”,提醒我该干什么。体验了几天,效率提高明显!

“专注模式” 推荐指数*****

Posted with WordPress for BlackBerry.

[标题党]如何用手机在人人网写出图文并茂的blog

第一步,安装一个wordpress。 没钱安装,也可以去wordpress.com去申请一个免费的blog。
然后,登录你的人人网,访问http://blog.renren.com/blog/0/rss 。输入你刚刚申请的wordpress地址,选择开始导入。
最后,安装一个wordpress的手机客户端,手机推荐使用黑莓,毕竟按钮多些打字也方便。不安装客户端也可使用邮件发布,同样推荐黑莓的push mail,或者evernote。

搞定了,发一个试试吧;)

    1
    2
    3

Posted with WordPress for BlackBerry.

WMIC:从命令行对Windows的全面管理

转自:http://tech.ddvip.com

从Windows 2000开始,WMI(Windows 管理规范)就是Windows系统管理的重要组成部分。WMIC是Windows Management Instrumentation Command-line的简称,在WMIC出现之前,要从命令行访问WMI数据库或WMI名称空间不是一件容易的事情。现在,WMIC利用WMI强大的功能把系统管理扩展到了命令行。

  一、什么是WMIC?

  WMIC扩展WMI,提供了从命令行接口和批命令脚本执行系统管理的支持。在WMIC出现之前,如果要管理WMI系统,必须使用一些专门的WMI应用,例如SMS,或者使用WMI的脚本编程API,或者使用象CIM Studio之类的工具。如果不熟悉C++之类的编成语言或VBScript之类的脚本语言,或者不掌握WMI名称空间的基本知识,要用WMI管理系统是很困难的。WMIC改变了这种情况,为WMI名称空间提供了一个强大的、友好的命令行接口。

  WMIC比WMI简单、直观得多,这主要是由于使用了别名(Alias)。别名机制获取用户在命令行上输入的一些简单命令,按照预定义的方式操作WMI名称空间,例如根据一个简单的WMIC别名Get命令构造出一个复杂的WMI查询语言(WQL)命令。从这个意义上看,别名是用户和名称空间之间一个简化操作的中间层。例如,如果在WMIC命令行上执行下面这个简单的WMIC命令,就可以获得用户帐户的基本信息:

useraccount list brief

  在上面的命令中,Useraccount别名执行了一个Win32_Useraccount类的WQL查询,以文本的形式显示出从该类提取的信息。另外,WMIC还以文本的形式显示出Win32_Useraccount类的属性。除了文本形式的输出之外,WMIC还能够以其他形式返回命令执行结果,例如XML、HTML或者CSV(逗号分隔的文本文件)。

  WMIC以WMI模式中类的实例的形式保存别名。默认的别名类——MSFT_CliAlias,以及其他支持WMIC的类保存在模式的默认名称空间,或者说rootcli角色。角色可以简单地看成专门用来支持WMIC的另一个WMI名称空间。默认角色rootcli连接到rootcimv2名称空间,操作rootcimv2之内的类。虽然使用WMIC时一般不需要用到CIM Studio,但CIM Studio可以用来方便地查看rootcli名称空间。例如,图一显示了rootcli节点以及MSFT_CliAlias类的一些属性。

  你可以向rootcli名称空间和其他名称空间加入新的别名,还可以用Class和Path命令直接访问WMI名称空间,本文后面将详细说明Class和Path命令。

  二、运行WMIC

  执行“wmic”命令启动WMIC命令行环境。这个命令可以在XP或.NET Server的标准命令行解释器(cmd.exe)、Telnet会话或“运行”对话框中执行。这些启动方法可以在本地使用,也可以通过.NET Server终端服务会话使用。

  第一次执行WMIC命令时,Windows首先要安装WMIC,然后显示出WMIC的命令行提示符。在WMIC命令行提示符上,命令以交互的方式执行。例如,执行下面的命令将关闭正在运行的Outlook:

process where name='outlook.exe' call terminate

  命令运行结束后,WMIC命令行提示符重新出现,如图二所示。每个命令必须在一行之内输入,中间不能插入换行符。

  WMIC也可以按照非交互的模式运行。如果要执行某个单步的任务,或者运行批命令中的一系列WMIC命令,非交互模式就很有用。要使用非交互模式,只要在同一个命令行上启动WMIC并输入要执行的命令就可以了。例如,执行cmd.exe打开一个命令行窗口,然后执行下面的命令,就可以输出连接到MACHINE1的打印机清单:

wmic /node:MACHINE1 printer list status

  在这个例子中,第一个操作是启动WMIC,然后是根据/node参数建立一个到MACHINE1的远程连接,最后执行一个WMIC命令显示出打印机状态信息。命令运行结束后,返回到Windows命令行提示符状态。

  安装了WMIC的机器可以连接到任何一台安装了WMI的机器,被连接的机器不需要安装WMIC。例如,从一台运行Win XP Pro的机器启动WMIC,可以连接和管理所有运行着XP、Win2K、Windows NT 4.0、Windows Me和Windows 9x的机器。

  三、WMIC命令行构成

  WMIC提供了大量的全局开关、别名、动词、命令和丰富的命令行帮助增强用户接口。全局开关是适用于整个WMIC会话的配置选项。例如,/trace:on开关启用错误跟踪机制,如果这个开关处于打开状态,WMIC返回每一个命令的错误信息。利用/note开关可以访问远程机器,/interactive:on开关要求WMIC在执行删除操作之前提示确认,其他的全局开关还包括/role、/user、/implevel以及/namespace。

  如前所述,别名是用户和WMI名称空间一个简化语法的中间层。当你指定一个别名时,动词(Verb)表示要执行的动作。例如,前面例子中的List和Call就是两个动词的例子。表一描述了其他一些WMIC动词,并为每一个动词给出了例子。

  

表一:WMIC动词
动词 例子 说明
Assoc group where name= ‘administrators’ assoc 显示出Administrators组与系统的所有关联,包括Administrators组成员等。又如,os assoc显示出有关操作系统的信息和已经安装的补丁。
Create environment create name="progloc", username="work01User1",variablevalue= "%programfiles%prog01" 创建一个名字为Progloc的变量,把它的值设置为Program Files文件夹的一个子文件夹,把这个变量加入到Work01工作组计算机User1帐户。
Delete environment where(name= "progloc") delete 删除Progloc环境变量。测试WMIC命令时,为了防止意外地删除,可以使用/interactive:on全局开关,这时删除之前会要求确认。
Get partition get bootpartition, content:encoded, deviceid, bootable 返回分区是否可启动、描述信息和设备ID属性等信息。
Set path WIN32_USERACCOUNT where(name="user01") set disabled="true" 在成员服务器或工作站上禁用User01用户帐户。

  命令用来控制对WMIC和WMI名称空间的访问。注意表一的最后一个例子,这个例子用的是Path和Win32_USERACCOUNT类,而不是Useraccount别名。Path是一个直接访问WMI名称空间中实例的命令,不必再通过别名访问。如果待执行的系统管理任务没有现成的别名可用,Path命令特别有用。虽然你可以用新的别名和角色扩展WMIC,但如果你对WMI名称空间比较熟悉,使用Path命令也很方便。

  除了Path命令之外,WMIC还支持Class、Context、Quit和Exit命令。Class命令用来直接访问WMI模式内的类或创建现有类的实例。Class命令和Path命令的不同之处在于,Path命令的作用对象是实例以及它的属性(例如,提取管理用的信息),而Class命令的作用对象是类的定义。例如,如果要提取出WIN32_SOFTWAREELEMENT类的所有属性,可以执行如下命令:

class WIN32_SOFTWAREELEMENT get

  这个命令的输出是HTML格式,稍后我们将了解如何用/output全局开关把输出重定向到可用浏览器打开的HTML文件。Class命令加上Assoc动词能够显示出类的名称空间路径以及其他与该类关联的类。利用Class命令可以删除类、创建类的实例,但不能创建类。

  Context命令显示出全局开关的当前设置。Quit和Exit命令用来退出WMIC命令提示符环境,返回以前的Shell环境(例如Telnet环境,或XP的命令行提示符环境)。

  命令行帮助是熟悉WMIC的有效途径。表二是在WMIC提示符下查找信息的常用命令:

  

表二:命令行帮助
命令 例子 说明
/? 或 -?   显示所有全局开关和别名的语法
/ /? /user /? 显示指定全局开关的信息
/? class /? 显示某个命令的信息
/? memcache /? 显示某个别名的信息
/? temperature get /? 显示别名与动词组合的信息
/?:Full irq get /?:Full 显示动词的帮助信息

  四、实践应用

  以上我们了解了WMIC命令行环境的基础知识,下面来看看如何用批命令运行WMIC,以及把输出结果定向到控制台或HTML、XML文件。从批命令文件运行WMIC的好处在于不需要重复输入一系列复杂的命令,例如,下面是一个批命令文件的内容,它的作用是显示出MACHINE1和MACHINE2这两台机器的CPU信息,输出结果显示在控制台上。/format开关是面向动词的开关,而不是全局开关,它只用于Get和List动词。

wmic /node:MACHINE1, MACHINE4 cpu get name, caption,
maxclockspeed, systemname /format:textvaluelist.xsl

  WMIC批命令可以使用变量。也就是说,对于上面的批命令,服务器的名字不仅可以直接指定,而且还可以通过%1、%2的形式指定,下面就是一个例子。把下面的代码放入一个批命令文件,然后在执行批命令文件时加上一到二个机器的名字即可;另外,也可以创建一个独立的文本文件,然后在文本文件中放入机器名字的清单,清单可以是CSV格式,或用换行符分隔的格式。如果使用独立的文本文件提供机器名字,只需在/node全局开关后面加上以@符号为前缀的文本文件名字,@符号告诉/node开关后面的参数是一个文件名字而不是机器名字。

@echo off if "%1"==""
goto msg if "%2"==""
goto single wmic /node:%1, %2 cpu get name, caption, maxclockspeed, systemname
/format:textvaluelist.xsl goto end :single wmic /node:%1 cpu get name, caption, maxclockspeed,
systemname /format:textvaluelist.xsl goto end :msg echo 必须指定至少一台计算机的名字。 :end

  如前所述,WMIC命令的输出结果不仅可以发送到控制台,还可以发送到XML或HTML、MOF(Managed Object Format)格式的文件。在安装了WMI的计算机上,MOF是WMI数据库中类和类实例的原始保存形式。下面的例子显示了如何把MACHINE4处理器信息的查询结果输出到HTML文件,/output全局开关要求WMIC把输出发送到file1.htm,/format开关要求WMIC把原始的XML输出转换成HTML格式。用来转换格式的XSL样式文件既可以是自定义的,也可以是任何安装了WMIC的机器上%systemroot%system32wbem文件夹下面的任意XSL文件。例如,利用csv.xsl样式文件可以把输出结果转换成CSV格式,利用htable.xsl样式可以构造出一个包含结果数据的表格。图三是在浏览器中打开的file1.htm文件。

wmic /node:MACHINE4 /output:e:file1.htm cpu get content:encoded,
maxclockspeed, extclock, manufacturer,
revision /format:hform.xsl

  前面已经提到,Class命令加上Get动词的默认输出是HTML格式。因此,如果要把这类命令的输出结果保存到HTML文件,只需指定/output开关,不必加上/format开关。/record和/append全局开关也能够从WMIC命令行截取信息,请利用WMIC的命令行帮助功能了解有关这些开关的更多信息。

  如果要以XML格式输出,用/translate开关和Basicxml关键词把大于符号“>”和小于符号“<”转换成XML中有意义的字符。下面是输出XML的一个例子,输出的XML数据可导入到数据库或其他能够理解XML标记的系统。下面代码的输出中包含了WMIC命令、命令行请求参数、目标节点、全局开关以及命令执行结果。

wmic cpu get maxclockspeed /translate:basicxml /format:rawxml.xsl

  总之,WMIC是XP和.NET Server中命令行管理功能的一次重要改进,对于从命令行访问和管理WMI名称空间提供了强健的支持。虽然掌握和熟悉WMIC命令行环境需要一段时间,但只要你熟悉了它,一个系统管理的全新境界将展现在你的面前。 

Win32_SoftwareElement Class (Windows)

Win32_SoftwareElement Class
The Win32_SoftwareElement WMI class represents a software element, part of a software feature (a distinct subset of a product which may contain one or more elements). Each software element is defined in a Win32_SoftwareElement instance, and the association between a feature and its Win32_SoftwareFeature instance is defined in the Win32_SoftwareFeatureSoftwareElements association class.
Note For more information about support or requirements for installation on a specific operating system, see Operating System Availability of WMI Components.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties and methods are in alphabetic order, not MOF order.

class Win32_SoftwareElement : CIM_SoftwareElement
{
uint16 Attributes;
string BuildNumber;
string Caption;
string CodeSet;
string content:encoded;
string IdentificationCode;
datetime InstallDate;
sint16 InstallState;
string LanguageEdition;
string Manufacturer;
string Name;
string OtherTargetOS;
string Path;
string SerialNumber;
string SoftwareElementID;
uint16 SoftwareElementState;
string Status;
uint16 TargetOperatingSystem;
string Version;
};
Methods
The Win32_SoftwareElement class does not define any methods.
Properties
The Win32_SoftwareElement class has the following properties.
Attributes
Data type: uint16
Access type: Read-only
Bitmap that contains the remote execution options for the software element.
BuildNumber
Data type: string
Access type: Read-only
Number of the build.
Caption
Data type: string
Access type: Read-only
Short textual content:encoded (one-line string) of the object.
CodeSet
Data type: string
Access type: Read-only
Code set used by the software element.
content:encoded
Data type: string
Access type: Read-only
content:encoded of the object.
IdentificationCode
Data type: string
Access type: Read-only
Manufacturer??s identifier for this software element. Often this is a stock keeping unit (SKU) or part number.
InstallDate
Data type: datetime
Access type: Read-only
Object was installed. This property does not need a value to indicate that the object is installed.
InstallState
Data type: sint16
Access type: Read-only
Current installed state for the software element.
ValueMeaning
-7Not Used
-6Bad Configuration
-4Source Absent
-1Error
2Absent
3Local
4Source

LanguageEdition
Data type: string
Access type: Read-only
Language edition of this software element. The language codes defined in ISO 639 should be used. Where the software element represents multi-lingual or international version of a product, the string multilingual should be used.
Manufacturer
Data type: string
Access type: Read-only
Manufacturer of the software element.
Name
Data type: string
Access type: Read-only
Name used to identify the software element.
OtherTargetOS
Data type: string
Access type: Read-only
Records the manufacturer and operating system type for a software element when the TargetOperatingSystem property has a value of 1 (Other). When TargetOperatingSystem has a value of 1, OtherTargetOS must have a non-null value. For all other values of TargetOperatingSystem, OtherTargetOS is NULL.
Path
Data type: string
Access type: Read-only
Path to the installed software element. If the component is a registry key, the registry roots are represented numerically. For example, a registry path of
HKEY_CURRENT_USER
SOFTWARE
Microsoft
would be returned as 01:SOFTWAREMicrosoft. The registry roots returned are defined as follows: ValueMeaning
00HKEY_CLASSES_ROOT
01HKEY_CURRENT_USER
02HKEY_LOCAL_MACHINE
03HKEY_USERS

SerialNumber
Data type: string
Access type: Read-only
Assigned serial number of the software element.
SoftwareElementID
Data type: string
Access type: Read-only
Identifier for the software element and is designed to be used in conjunction with other keys to create a unique representation of this Win32_SoftwareElement instance.
SoftwareElementState
Data type: uint16
Access type: Read-only
Various states of a software element??s life cycle. A software element in the deployable state describes the details necessary to successful distribute it and the details (conditions and actions) required to create a software element in the installable state (that is, the next state). A software element in the installable state describes the details necessary to successfully install it and details conditions and actions required to create a software element in the executable state (that is, the next state). A software element in the executable state describes the details necessary to successfully start it and details conditions and actions required to create a software element in the running state (that is, the next state). A software element in the running state describes the details necessary to monitor and operate on a start element.
ValueMeaning
1Deployable
2Installable
3Executable
4Running

Status
Data type: string
Access type: Read-only
Current status of the object. Various operational and non-operational statuses can be defined. Operational statuses include: OK, Degraded, and Pred Fail (an element, such as a SMART-enabled hard drive, can function properly but predict a failure in the near future). Non-operational statuses include: Error, Starting, Stopping, and Service. Examples of Service could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither OK nor in one of the other states.
Values are:
"OK"

"Error"

"Degraded"

"Unknown"

"Pred Fail"

"Starting"

"Stopping"

"Service"

TargetOperatingSystem
Data type: uint16
Access type: Read-only
Provider??s choice of operating system environment. The value of this property does not ensure binary executable. Two other pieces of information are needed. First, the version of the OS must be specified using the OS version check. The second piece of information is the architecture the OS runs on. The combination of these constructs allows the provider to clearly identify the level of OS required for a particular software element. The possible values for this property are as follows.
ValueMeaning
0Unknown
1Other
2MACOS
3ATTUNIX
4DGUX
5DECNT
6Digital Unix
7OpenVMS
8HPUX
9AIX
10MVS
11OS400
12OS/2
13JavaVM
14MSDOS
15WIN3x
16WIN95
17WIN98
18WINNT
19XP
20NCR3000
21NetWare
22OSF
23DC/OS
24Reliant UNIX
25SCO UnixWare
26SCO OpenServer
27Sequent
28IRIX
29Solaris
30SunOS
31U6000
32ASERIES
33TandemNSK
34TandemNT
35BS2000
36LINUX
37Lynx
38XENIX
39VM/ESA
40Interactive UNIX
41BSDUNIX
42FreeBSD
43NetBSD
44GNU Hurd
45OS9
46MACH Kernel
47Inferno
48QNX
49EPOC
50IxWorks
51VxWorks
52MiNT
53BeOS
54HP MPE
55NextStep
56PalmPilot
57Rhapsody

Version
Data type: string
Access type: Read-only
Version of the software element. Values should be in the form [Major].[Minor].[Revision] or [Major].[Minor][l
etter][revision].
Remarks
Any component can be shared between two or more Win32_SoftwareFeature instances. If two or more features reference the same component, that component is selected for installation if any of these features are selected.
The Win32_SoftwareElement class is derived from CIM_SoftwareElement.
Example Code
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
ClientRequires Windows Vista, Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0 SP4 and later.
ServerRequires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0 SP4 and later.
MOFDeclared in Msi.mof.
DLLRequires Msiprov.dll.
NamespaceDefined in rootcimv2.

See Also
Installed Applications Classes

本文转自
http://msdn2.microsoft.com/en-us/library/aa394453(VS.85).aspx

所有的WMI可以使用的class

知道这些类名之后,写一个最简单的应用,是可以知道系统的全部硬件、软件信息。比如说CPUID,主板序列号,硬盘出厂的ID号,CPU速度,网卡号等。
Computer system hardware
Cooling device classes
Win32_Fan
Win32_HeatPipe
Win32_Refrigeration
Win32_TemperatureProbe)}
Input device classes
Win32_Keyboard
Win32_PointingDevice)}
Mass storage classes
Win32_AutochkSetting
Win32_CDROMDrive
Win32_DiskDrive
Win32_FloppyDrive
Win32_LogicalDisk
Win32_MappedLogicalDisk
Win32_TapeDrive)}
Motherboard, controller, and port classes
Win32_1394Controller
Win32_1394ControllerDevice
Win32_AllocatedResource
Win32_AssociatedProcessorMemory
Win32_BaseBoard
Win32_BIOS
Win32_Bus
Win32_CacheMemory
Win32_ControllerHasHub
Win32_DeviceBus
Win32_DeviceMemoryAddress
Win32_DeviceSettings
Win32_DMAChannel
Win32_FloppyController
Win32_IDEController
Win32_IDEControllerDevice
Win32_InfraredDevice
Win32_IRQResource
Win32_MemoryArray
Win32_MemoryArrayLocation
Win32_MemoryDevice
Win32_MemoryDeviceArray
Win32_MemoryDeviceLocation
Win32_MotherboardDevice
Win32_OnBoardDevice
Win32_ParallelPort
Win32_PCMCIAController
Win32_PhysicalMemory
Win32_PhysicalMemoryArray
Win32_PhysicalMemoryLocation
Win32_PNPAllocatedResource
Win32_PNPDevice
Win32_PNPEntity
Win32_PortConnector
Win32_PortResource
Win32_Processor
Win32_SCSIController
Win32_SCSIControllerDevice
Win32_SerialPort
Win32_SerialPortConfiguration
Win32_SerialPortSetting
Win32_SMBIOSMemory
Win32_SoundDevice
Win32_SystemBIOS
Win32_SystemDriverPNPEntity
Win32_SystemEnclosure
Win32_SystemMemoryResource
Win32_SystemSlot
Win32_USBController
Win32_USBControllerDevice
Win32_USBHub)}
Networking device classes
Win32_NetworkAdapter
Win32_NetworkAdapterConfiguration
Win32_NetworkAdapterSetting)}
Power classes
Win32_AssociatedBattery
Win32_Battery
Win32_CurrentProbe
Win32_PortableBattery
Win32_PowerManagementEvent
Win32_UninterruptiblePowerSupply
Win32_VoltageProbe)}
Printing classes
Win32_DriverForDevice
Win32_Printer
Win32_PrinterConfiguration
Win32_PrinterController
Win32_PrinterDriver
Win32_PrinterDriverDll
Win32_PrinterSetting
Win32_PrintJob
Win32_TCPIPPrinterPort)}
Telephony classes
Win32_POTSModem
Win32_POTSModemToSerialPort)}
Video and monitor classes
Win32_DesktopMonitor
Win32_DisplayConfiguration
Win32_DisplayControllerConfiguration
Win32_VideoConfiguration
Win32_VideoController
Win32_VideoSettings)})}
Users
COM
Win32_ClassicCOMApplicationClasses
Win32_ClassicCOMClass
Win32_ClassicCOMClassSettings
Win32_ClientApplicationSetting
Win32_COMApplication
Win32_COMApplicationClasses
Win32_COMApplicationSettings
Win32_COMClass
Win32_ComClassAutoEmulator
Win32_ComClassEmulator
Win32_ComponentCategory
Win32_COMSetting
Win32_DCOMApplication
Win32_DCOMApplicationAccessAllowedSetting
Win32_DCOMApplicationLaunchAllowedSetting
Win32_DCOMApplicationSetting
Win32_ImplementedCategory)}
Desktop
Win32_Desktop
Win32_Environment
Win32_TimeZone
Win32_UserDesktop)}
Drivers
Win32_DriverVXD
Win32_SystemDriver)}
File system
Win32_CIMLogicalDeviceCIMDataFile
Win32_Directory
Win32_DirectorySpecification
Win32_DiskDriveToDiskPartition
Win32_DiskPartition
Win32_DiskQuota
Win32_LogicalDiskRootDirectory
Win32_LogicalDiskToPartition
Win32_OperatingSystemAutochkSetting
Win32_QuotaSetting
Win32_ShortcutFile
Win32_SubDirectory
Win32_SystemPartitions
Win32_VolumeQuotaSetting)}
Job objects
Win32_CollectionStatistics
Win32_LUID
Win32_LUIDandAttributes
Win32_NamedJobObject
Win32_NamedJobObjectActgInfo
Win32_NamedJobObjectLimit
Win32_NamedJobObjectLimitSetting
Win32_NamedJobObjectProcess
Win32_NamedJobObjectSecLimit
Win32_NamedJobObjectSecLimitSetting
Win32_NamedJobObjectStatistics
Win32_SIDandAttributes
Win32_TokenGroups
Win32_TokenPrivileges)}
Memory and page files
Win32_LogicalMemoryConfiguration
Win32_PageFile
Win32_PageFileElementSetting
Win32_PageFileSetting
Win32_PageFileUsage
Win32_SystemLogicalMemoryConfiguration)}
Multimedia audio/visual
Win32_CodecFile)}
Networking
Win32_ActiveRoute
Win32_IP4PersistedRouteTable
Win32_IP4RouteTable
Win32_IP4RouteTableEvent
Win32_NetworkClient
Win32_NetworkConnection
Win32_NetworkProtocol
Win32_NTDomain
Win32_PingStatus
Win32_ProtocolBinding)}
Operating system events
Win32_ComputerShutdownEvent
Win32_ComputerSystemEvent
NWin32_DeviceChangeEvent
Win32_ModuleLoadTrace
Win32_ModuleTrace
Win32_ProcessStartTrace
Win32_ProcessStopTrace
Win32_ProcessTrace
Win32_SystemConfigurationChangeEvent
Win32_SystemTrace
Win32_ThreadStartTrace
Win32_ThreadStopTrace
Win32_ThreadTrace
Win32_VolumeChangeEvent)}
Operating system settings
Win32_BootConfiguration
Win32_ComputerSystem
Win32_ComputerSystemProcessor
Win32_ComputerSystemProduct
Win32_DependentService
Win32_LoadOrderGroup
Win32_LoadOrderGroupServiceDependencies
Win32_LoadOrderGroupServiceMembers
Win32_OperatingSystem
Win32_OperatingSystemQFE
Win32_OSRecoveryConfiguration
Win32_QuickFixEngineering
Win32_StartupCommand
Win32_SystemBootConfiguration
Win32_SystemDesktop
Win32_SystemDevices
Win32_SystemLoadOrderGroups
Win32_SystemNetworkConnections
Win32_SystemOperatingSystem
Win32_SystemProcesses
Win32_SystemProgramGroups
Win32_SystemResources
Win32_SystemServices
Win32_SystemSetting
Win32_SystemSystemDriver
Win32_SystemTimeZone
Win32_SystemUsers)}
Processes
Win32_Process
Win32_ProcessStartup
Win32_Thread)}
Registry
Win32_Registry)}
Scheduler jobs
Win32_CurrentTime
Win32_ScheduledJob)}
Security
NWin32_AccountSID
Win32_ACE
Win32_LogicalFileAccess
Win32_LogicalFileAuditing
Win32_LogicalFileGroup
Win32_LogicalFileOwner
Win32_LogicalFileSecuritySetting
Win32_LogicalShareAccess
Win32_LogicalShareAuditing
Win32_LogicalShareSecuritySetting
NWin32_PrivilegesStatus
NWin32_SecurityDescriptor
Win32_SecuritySetting
Win32_SecuritySettingAccess
Win32_SecuritySettingAuditing
Win32_SecuritySettingGroup
Win32_SecuritySettingOfLogicalFile
NodWin32_SecuritySettingOfLogicalShare
Win32_SecuritySettingOfObject
Win32_SecuritySettingOwner
Win32_SID
Win32_Trustee)}
Services
Win32_BaseService
Win32_Service)}
Shares
Win32_ServerConnection
Win32_ServerSession
Win32_ConnectionShare
Win32_PrinterShare
Win32_SessionConnection
Win32_SessionProcess
Win32_ShareToDirectory
Win32_Share)}
Start menu
NoWin32_LogicalProgramGroup
Win32_LogicalProgramGroupDirectory
Win32_LogicalProgramGroupItem
Win32_LogicalProgramGroupItemDataFile
Win32_ProgramGroup
Win32_ProgramGroupContents
Win32_ProgramGroupOrItem)}
Users
Win32_Account
Win32_Group
Win32_GroupInDomain
Win32_GroupUser
Win32_LogonSession
Win32_LogonSessionMappedDisk
Win32_NetworkLoginPr
ofile
Win32_SystemAccount
Win32_UserAccount
Win32_UserInDomain)}
Windows NT event log
Win32_NTEventlogFile
Win32_NTLogEvent
Win32_NTLogEventComputer
Win32_NTLogEventLog
Win32_NTLogEventUser)}
Windows Product Activation
Win32_ComputerSystemWindowsProductActivationSetting
Win32_Proxy
Win32_WindowsProductActivation)})}
Installed applications
Win32_ActionCheck
Win32_ApplicationCommandLine
Win32_ApplicationService
Win32_Binary
Win32_BindImageAction
Win32_CheckCheck
Win32_ClassInfoAction
Win32_CommandLineAccess
Win32_Condition
Win32_CreateFolderAction
Win32_DuplicateFileAction
Win32_EnvironmentSpecification
Win32_ExtensionInfoAction
Win32_FileSpecification
Win32_FontInfoAction
Win32_IniFileSpecification
Win32_InstalledSoftwareElement
Win32_LaunchCondition
Win32_ManagedSystemElementResource
Win32_MIMEInfoAction
Win32_MoveFileAction
Win32_MSIResource
Win32_ODBCAttribute
Win32_ODBCDataSourceAttribute
Win32_ODBCDataSourceSpecification
Win32_ODBCDriverAttribute
Win32_ODBCDriverSoftwareElement
Win32_ODBCDriverSpecification
Win32_ODBCSourceAttribute
Win32_ODBCTranslatorSpecification
Win32_Patch
Win32_PatchFile
Win32_PatchPackage
Win32_Product
Win32_ProductCheck
Win32_ProductResource
Win32_ProductSoftwareFeatures
Win32_ProgIDSpecification
Win32_Property
Win32_PublishComponentAction
Win32_RegistryAction
Win32_RemoveFileAction
Win32_RemoveIniAction
Win32_ReserveCost
Win32_SelfRegModuleAction
Win32_ServiceControl
Win32_ServiceSpecification
Win32_ServiceSpecificationService
Win32_SettingCheck
Win32_ShortcutAction
Win32_ShortcutSAP
Win32_SoftwareElement
Win32_SoftwareElementAction
Win32_SoftwareElementCheck
Win32_SoftwareElementCondition
Win32_SoftwareElementResource
Win32_SoftwareFeature
Win32_SoftwareFeatureAction
Win32_SoftwareFeatureCheck
Win32_SoftwareFeatureParent
Win32_SoftwareFeatureSoftwareElements
Win32_TypeLibraryAction)}
WMI service management
WMI Configuration Classes
Win32_MethodParameterClass)}
WMI Management Classes
Win32_WMISetting
Win32_WMIElementSetting)})}
Performance counters
Formatted Performance Counter Classes
Win32_PerfFormattedData
Win32_PerfFormattedData_ASP_ActiveServerPages
Win32_PerfFormattedData_ContentFilter_IndexingServiceFilter
Win32_PerfFormattedData_ContentIndex_IndexingService
Win32_PerfFormattedData_InetInfo_InternetInformationServicesGlobal
Win32_PerfFormattedData_ISAPISearch_HttpIndexingService
Win32_PerfFormattedData_MSDTC_DistributedTransactionCoordinator
Win32_PerfFormattedData_NTFSDRV_SMTPNTFSStoreDriver
Win32_PerfFormattedData_PerfDisk_LogicalDisk
Win32_PerfFormattedData_PerfDisk_PhysicalDisk
Win32_PerfFormattedData_PerfNet_Browser
Win32_PerfFormattedData_PerfNet_Redirector
Win32_PerfFormattedData_PerfNet_Server
Win32_PerfFormattedData_PerfNet_ServerWorkQueues
Win32_PerfFormattedData_PerfOS_Cache
Win32_PerfFormattedData_PerfOS_Memory
Win32_PerfFormattedData_PerfOS_Objects
Win32_PerfFormattedData_PerfOS_PagingFile
Win32_PerfFormattedData_PerfOS_Processor
Win32_PerfFormattedData_PerfOS_System
Win32_PerfFormattedData_PerfProc_FullImage_Costly
Win32_PerfFormattedData_PerfProc_Image_Costly
Win32_PerfFormattedData_PerfProc_JobObject
Win32_PerfFormattedData_PerfProc_JobObjectDetails
Win32_PerfFormattedData_PerfProc_Process
Win32_PerfFormattedData_PerfProc_ProcessAddressSpace_Costly
Win32_PerfFormattedData_PerfProc_Thread
Win32_PerfFormattedData_PerfProc_ThreadDetails_Costly
Win32_PerfFormattedData_PSched_PSchedFlow
Win32_PerfFormattedData_PSched_PSchedPipe
Win32_PerfFormattedData_RemoteAccess_RASPort
Win32_PerfFormattedData_RemoteAccess_RASTotal
Win32_PerfFormattedData_RSVP_ACSRSVPInterfaces
Win32_PerfFormattedData_RSVP_ACSRSVPService
Win32_PerfFormattedData_SMTPSVC_SMTPServer
Win32_PerfFormattedData_Spooler_PrintQueue
Win32_PerfFormattedData_TapiSrv_Telephony
Win32_PerfFormattedData_Tcpip_ICMP
Win32_PerfFormattedData_Tcpip_IP
Win32_PerfFormattedData_Tcpip_NBTConnection
Win32_PerfFormattedData_Tcpip_NetworkInterface
Win32_PerfFormattedData_Tcpip_TCP
Win32_PerfFormattedData_Tcpip_UDP
Win32_PerfFormattedData_TermService_TerminalServices
Win32_PerfFormattedData_TermService_TerminalServicesSession
Win32_PerfFormattedData_W3SVC_WebService)}
Raw Performance Counter Classes
Win32_PerfRawData
Win32_PerfRawData_ASP_ActiveServerPages
Win32_PerfRawData_ContentFilter_IndexingServiceFilter
Win32_PerfRawData_ContentIndex_IndexingService
Win32_PerfRawData_InetInfo_InternetInformationServicesGlobal
Win32_PerfRawData_ISAPISearch_HttpIndexingService
Win32_PerfRawData_MSDTC_DistributedTransactionCoordinator
Win32_PerfRawData_NTFSDRV_SMTPNTFSStoreDriver
Win32_PerfRawData_PerfDisk_LogicalDisk
Win32_PerfRawData_PerfDisk_PhysicalDisk
Win32_PerfRawData_PerfNet_Browser
Win32_PerfRawData_PerfNet_Redirector
Win32_PerfRawData_PerfNet_Server
Win32_PerfRawData_PerfNet_ServerWorkQueues
Win32_PerfRawData_PerfOS_Cache
Win32_PerfRawData_PerfOS_Memory
Win32_PerfRawData_PerfOS_Objects
Win32_PerfRawData_PerfOS_PagingFile
Win32_PerfRawData_PerfOS_Processor
Win32_PerfRawData_PerfOS_System
Win32_PerfRawData_PerfProc_FullImage_Costly
Win32_PerfRawData_PerfProc_Image_Costly
Win32_PerfRawData_PerfProc_JobObject
Win32_PerfRawData_PerfProc_JobObjectDetails
Win32_PerfRawData_PerfProc_Process
Win32_PerfRawData_PerfProc_ProcessAddressSpace_Costly
Win32_PerfRawData_PerfProc_Thread
Win32_PerfRawData_PerfProc_ThreadDetails_Costly
Win32_PerfRawData_PSched_PSchedFlow
NWin32_PerfRawData_PSched_PSchedPipe
Win32_PerfRawData_RemoteAccess_RASPort
Win32_PerfRawData_RemoteAccess_RASTotal
Win32_PerfRawData_RSVP_ACSRSVPInterfaces
Win32_PerfRawData_RSVP_ACSRSVPService
Win32_PerfRawData_SMTPSVC_SMTPServer
Win32_PerfRawData_Spooler_PrintQueue
Win32_PerfRawData_TapiSrv_Telephony
Win32_PerfRawData_Tcpip_ICMP
Win32_PerfRawData_Tcpip_IP
Win32_PerfRawData_Tcpip_NBTConnection
Win32_PerfRawData_Tcpip_NetworkInterface
Win32_PerfRawData_Tcpip_TCP
Win32_PerfRawData_Tcpip_UDP
Win32_PerfRawData_TermService_TerminalServices
Win32_PerfRawData_TermService_TerminalServicesSession
Win32_PerfRawData_W3SVC_WebService

本文转自
http://blog.csdn.net/yezie/archive/2005/10/03/494602.aspx

WMI类–所有可用的WMI的类封装

原帖地址:http://www.cnblogs.com/volcano/archive/2005/11/04/268900.html 

public class WMIClasses
    {
        private Hashtable _ClassHash=new Hashtable();
        public WMIClasses()
        {
            LoadWMIClasses();
        }
 
        private void LoadWMIClasses()
        {
            _ClassHash.Clear();
            _ClassHash["计算机系统硬件"]=new Hashtable();
            Hashtable hash=(Hashtable)_ClassHash["计算机系统硬件"];
 
            hash["降温设备"]=new DataSet("降温设备");
            DataSet dataset=(DataSet)hash["降温设备"];
            dataset.Tables.Add(new DataTable("Win32_Fan"));
            dataset.Tables.Add(new DataTable("Win32_HeatPipe"));
            dataset.Tables.Add(new DataTable("Win32_Refrigeration"));
            dataset.Tables.Add(new DataTable("Win32_TemperatureProbe"));
 
            hash["输入设备"]=new DataSet("输入设备");
            dataset=(DataSet)hash["输入设备"];
            dataset.Tables.Add(new DataTable("Win32_Keyboard"));
            dataset.Tables.Add(new DataTable("Win32_PointingDevice"));
            
            hash["存储设备"]=new DataSet("存储设备");
            dataset=(DataSet)hash["存储设备"];
            dataset.Tables.Add(new DataTable("Win32_AutochkSetting"));
            dataset.Tables.Add(new DataTable("Win32_CDROMDrive"));
            dataset.Tables.Add(new DataTable("Win32_DiskDrive"));
            dataset.Tables.Add(new DataTable("Win32_FloppyDrive"));
            dataset.Tables.Add(new DataTable("Win32_LogicalDisk"));
            dataset.Tables.Add(new DataTable("Win32_MappedLogicalDisk"));
            dataset.Tables.Add(new DataTable("Win32_TapeDrive"));
 
            hash["主板控制器及端口"]=new DataSet("主板控制器及端口");
            dataset=(DataSet)hash["主板控制器及端口"];
            dataset.Tables.Add(new DataTable("Win32_1394Controller"));
            dataset.Tables.Add(new DataTable("Win32_1394ControllerDevice"));
            dataset.Tables.Add(new DataTable("Win32_AllocatedResource"));
            dataset.Tables.Add(new DataTable("Win32_AssociatedProcessorMemory"));
            dataset.Tables.Add(new DataTable("Win32_BaseBoard"));
            dataset.Tables.Add(new DataTable("Win32_BIOS"));
            dataset.Tables.Add(new DataTable("Win32_Bus"));
            dataset.Tables.Add(new DataTable("Win32_CacheMemory"));
            dataset.Tables.Add(new DataTable("Win32_ControllerHasHub"));
            dataset.Tables.Add(new DataTable("Win32_DeviceBus"));
            dataset.Tables.Add(new DataTable("Win32_DeviceMemoryAddress"));
            dataset.Tables.Add(new DataTable("Win32_DeviceSettings"));
            dataset.Tables.Add(new DataTable("Win32_DMAChannel"));
            dataset.Tables.Add(new DataTable("Win32_FloppyController"));
            dataset.Tables.Add(new DataTable("Win32_IDEController"));
            dataset.Tables.Add(new DataTable("Win32_IDEControllerDevice"));
            dataset.Tables.Add(new DataTable("Win32_InfraredDevice"));
            dataset.Tables.Add(new DataTable("Win32_IRQResource"));
            dataset.Tables.Add(new DataTable("Win32_MemoryArray"));
            dataset.Tables.Add(new DataTable("Win32_MemoryArrayLocation"));
            dataset.Tables.Add(new DataTable("Win32_MemoryDevice"));
            dataset.Tables.Add(new DataTable("Win32_MemoryDeviceArray"));
            dataset.Tables.Add(new DataTable("Win32_MemoryDeviceLocation"));
            dataset.Tables.Add(new DataTable("Win32_MotherboardDevice"));
            dataset.Tables.Add(new DataTable("Win32_OnBoardDevice"));
            dataset.Tables.Add(new DataTable("Win32_ParallelPort"));
            dataset.Tables.Add(new DataTable("Win32_PCMCIAController"));
            dataset.Tables.Add(new DataTable("Win32_PhysicalMemory"));
            dataset.Tables.Add(new DataTable("Win32_PhysicalMemoryArray"));
            dataset.Tables.Add(new DataTable(&quot
;Win32_PhysicalMemoryLocation"));
            dataset.Tables.Add(new DataTable("Win32_PNPAllocatedResource"));
            dataset.Tables.Add(new DataTable("Win32_PNPDevice"));
            dataset.Tables.Add(new DataTable("Win32_PNPEntity"));
            dataset.Tables.Add(new DataTable("Win32_PortConnector"));
            dataset.Tables.Add(new DataTable("Win32_PortResource"));
            dataset.Tables.Add(new DataTable("Win32_Processor"));
            dataset.Tables.Add(new DataTable("Win32_SCSIController"));
            dataset.Tables.Add(new DataTable("Win32_SCSIControllerDevice"));
            dataset.Tables.Add(new DataTable("Win32_SerialPort"));
            dataset.Tables.Add(new DataTable("Win32_SerialPortConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_SerialPortSetting"));
            dataset.Tables.Add(new DataTable("Win32_SMBIOSMemory"));
            dataset.Tables.Add(new DataTable("Win32_SoundDevice"));
            dataset.Tables.Add(new DataTable("Win32_SystemBIOS"));
            dataset.Tables.Add(new DataTable("Win32_SystemDriverPNPEntity"));
            dataset.Tables.Add(new DataTable("Win32_SystemEnclosure"));
            dataset.Tables.Add(new DataTable("Win32_SystemMemoryResource"));
            dataset.Tables.Add(new DataTable("Win32_SystemSlot"));
            dataset.Tables.Add(new DataTable("Win32_USBController"));
            dataset.Tables.Add(new DataTable("Win32_USBControllerDevice"));
            dataset.Tables.Add(new DataTable("Win32_USBHub"));
 
            hash["网络设备"]=new DataSet("网络设备");
            dataset=(DataSet)hash["网络设备"];
            dataset.Tables.Add(new DataTable("Win32_NetworkAdapter"));
            dataset.Tables.Add(new DataTable("Win32_NetworkAdapterConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_NetworkAdapterSetting"));
 
            hash["电源"]=new DataSet("电源");
            dataset=(DataSet)hash["电源"];
            dataset.Tables.Add(new DataTable("Win32_Battery"));
            dataset.Tables.Add(new DataTable("Win32_CurrentProbe"));
            dataset.Tables.Add(new DataTable("Win32_PortableBattery"));
            dataset.Tables.Add(new DataTable("Win32_PowerManagementEvent"));
            dataset.Tables.Add(new DataTable("Win32_UninterruptiblePowerSupply"));
            dataset.Tables.Add(new DataTable("Win32_VoltageProbe"));
 
            hash["打印设备"]=new DataSet("打印设备");
            dataset=(DataSet)hash["打印设备"];
            dataset.Tables.Add(new DataTable("Win32_DriverForDevice"));
            dataset.Tables.Add(new DataTable("Win32_Printer"));
            dataset.Tables.Add(new DataTable("Win32_PrinterConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_PrinterController"));
            dataset.Tables.Add(new DataTable("Win32_PrinterDriver"));
            dataset.Tables.Add(new DataTable("Win32_PrinterDriverDll"));
            dataset.Tables.Add(new DataTable("Win32_PrinterSetting"));
            dataset.Tables.Add(new DataTable("Win32_PrintJob"));
            dataset.Tables.Add(new DataTable("Win32_TCPIPPrinterPort"));
 
            hash["电话设备"]=new DataSet("电话设备");
            dataset=(DataSet)hash["电话设备"];
            dataset.Tables.Add(new DataTable("Win32_POTSModem"));
            dataset.Tables.Add(new DataTable("Win32_POTSModemToSerialPort"));
 
            hash["视频和监视器"]=new DataSet("视频和监视器");
            dataset=(DataSet)hash["视频和监视器"];
            dataset.Tables.Add(new DataTable("Win32_DesktopMonitor"));
            dataset.Tables.Add(new DataTable("Win32_DisplayConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_DisplayControllerConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_VideoConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_VideoController"));
            dataset.Tables.Add(new DataTable("Win32_VideoSettings"));
 
 
 &n
bsp;          _ClassHash["软件操作系统"]=new Hashtable();
            hash=(Hashtable)_ClassHash["软件操作系统"];
 
            hash["组件"]=new DataSet("组件");
            dataset=(DataSet)hash["组件"];
            dataset.Tables.Add(new DataTable("Win32_ClassicCOMApplicationClasses"));
            dataset.Tables.Add(new DataTable("Win32_ClassicCOMClass"));
            dataset.Tables.Add(new DataTable("Win32_ClassicCOMClassSettings"));
            dataset.Tables.Add(new DataTable("Win32_ClientApplicationSetting"));
            dataset.Tables.Add(new DataTable("Win32_COMApplication"));
            dataset.Tables.Add(new DataTable("Win32_COMApplicationClasses"));
            dataset.Tables.Add(new DataTable("Win32_COMApplicationSettings"));
            dataset.Tables.Add(new DataTable("Win32_COMClass"));
            dataset.Tables.Add(new DataTable("Win32_ComClassAutoEmulator"));
            dataset.Tables.Add(new DataTable("Win32_ComClassEmulator"));
            dataset.Tables.Add(new DataTable("Win32_ComponentCategory"));
            dataset.Tables.Add(new DataTable("Win32_COMSetting"));
            dataset.Tables.Add(new DataTable("Win32_DCOMApplication"));
            dataset.Tables.Add(new DataTable("Win32_DCOMApplicationAccessAllowedSetting"));
            dataset.Tables.Add(new DataTable("Win32_DCOMApplicationLaunchAllowedSetting"));
            dataset.Tables.Add(new DataTable("Win32_DCOMApplicationSetting"));
            dataset.Tables.Add(new DataTable("Win32_ImplementedCategory"));
 
            hash["桌面"]=new DataSet("桌面");
            dataset=(DataSet)hash["桌面"];
            dataset.Tables.Add(new DataTable("Win32_Desktop"));
            dataset.Tables.Add(new DataTable("Win32_Environment"));
            dataset.Tables.Add(new DataTable("Win32_TimeZone"));
            dataset.Tables.Add(new DataTable("Win32_UserDesktop"));
 
            hash["驱动"]=new DataSet("驱动");
            dataset=(DataSet)hash["驱动"];
            dataset.Tables.Add(new DataTable("Win32_DriverVXD"));
            dataset.Tables.Add(new DataTable("Win32_SystemDriver"));
 
            hash["文件系统"]=new DataSet("文件系统");
            dataset=(DataSet)hash["文件系统"];
            dataset.Tables.Add(new DataTable("Win32_CIMLogicalDeviceCIMDataFile"));
            dataset.Tables.Add(new DataTable("Win32_Directory"));
            dataset.Tables.Add(new DataTable("Win32_DirectorySpecification"));
            dataset.Tables.Add(new DataTable("Win32_DiskDriveToDiskPartition"));
            dataset.Tables.Add(new DataTable("Win32_DiskPartition"));
            dataset.Tables.Add(new DataTable("Win32_DiskQuota"));
            dataset.Tables.Add(new DataTable("Win32_LogicalDiskRootDirectory"));
            dataset.Tables.Add(new DataTable("Win32_LogicalDiskToPartition"));
            dataset.Tables.Add(new DataTable("Win32_OperatingSystemAutochkSetting"));
            dataset.Tables.Add(new DataTable("Win32_QuotaSetting"));
            dataset.Tables.Add(new DataTable("Win32_ShortcutFile"));
            dataset.Tables.Add(new DataTable("Win32_SubDirectory"));
            dataset.Tables.Add(new DataTable("Win32_SystemPartitions"));
            dataset.Tables.Add(new DataTable("Win32_VolumeQuotaSetting"));
 
            hash["工作对象"]=new DataSet("工作对象");
            dataset=(DataSet)hash["工作对象"];
            dataset.Tables.Add(new DataTable("Win32_CollectionStatistics"));
            dataset.Tables.Add(new DataTable("Win32_LUID"));
            dataset.Tables.Add(new DataTable("Win32_LUIDandAttributes"));
            dataset.Tables.Add(new DataTable("Win32_NamedJobObject"));
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectActgInfo"));
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectLimit"));
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectLimitSetting"));
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectProcess"));
        
    dataset.Tables.Add(new DataTable("Win32_NamedJobObjectSecLimit"));
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectSecLimitSetting"));
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectStatistics"));
            dataset.Tables.Add(new DataTable("Win32_SIDandAttributes"));
            dataset.Tables.Add(new DataTable("Win32_TokenGroups"));
            dataset.Tables.Add(new DataTable("Win32_TokenPrivileges"));
 
            hash["内存和页面"]=new DataSet("内存和页面");
            dataset=(DataSet)hash["内存和页面"];
            dataset.Tables.Add(new DataTable("Win32_LogicalMemoryConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_PageFile"));
            dataset.Tables.Add(new DataTable("Win32_PageFileElementSetting"));
            dataset.Tables.Add(new DataTable("Win32_PageFileSetting"));
            dataset.Tables.Add(new DataTable("Win32_PageFileUsage"));
            dataset.Tables.Add(new DataTable("Win32_SystemLogicalMemoryConfiguration"));
 
            hash["媒体和音频"]=new DataSet("媒体和音频");
            dataset=(DataSet)hash["媒体和音频"];
            dataset.Tables.Add(new DataTable("Win32_CodecFile"));
 
            hash["网络"]=new DataSet("网络");
            dataset=(DataSet)hash["网络"];
            dataset.Tables.Add(new DataTable(" Win32_ActiveRoute"));
            dataset.Tables.Add(new DataTable(" Win32_IP4PersistedRouteTable"));
            dataset.Tables.Add(new DataTable(" Win32_IP4RouteTable"));
            dataset.Tables.Add(new DataTable(" Win32_IP4RouteTableEvent"));
            dataset.Tables.Add(new DataTable(" Win32_NetworkClient"));
            dataset.Tables.Add(new DataTable(" Win32_NetworkConnection"));
            dataset.Tables.Add(new DataTable(" Win32_NetworkProtocol"));
            dataset.Tables.Add(new DataTable(" Win32_NTDomain"));
            dataset.Tables.Add(new DataTable(" Win32_PingStatus"));
            dataset.Tables.Add(new DataTable(" Win32_ProtocolBinding"));
 
            hash["操作系统事件"]=new DataSet("操作系统事件");
            dataset=(DataSet)hash["操作系统事件"];
            dataset.Tables.Add(new DataTable("Win32_ComputerShutdownEvent"));
            dataset.Tables.Add(new DataTable("Win32_ComputerSystemEvent"));
            dataset.Tables.Add(new DataTable("NWin32_DeviceChangeEvent"));
            dataset.Tables.Add(new DataTable("Win32_ModuleLoadTrace"));
            dataset.Tables.Add(new DataTable("Win32_ModuleTrace"));
            dataset.Tables.Add(new DataTable("Win32_ProcessStartTrace"));
            dataset.Tables.Add(new DataTable("Win32_ProcessStopTrace"));
            dataset.Tables.Add(new DataTable("Win32_ProcessTrace"));
            dataset.Tables.Add(new DataTable("Win32_SystemConfigurationChangeEvent"));
            dataset.Tables.Add(new DataTable("Win32_SystemTrace"));
            dataset.Tables.Add(new DataTable("Win32_ThreadStartTrace"));
            dataset.Tables.Add(new DataTable("Win32_ThreadStopTrace"));
            dataset.Tables.Add(new DataTable("Win32_ThreadTrace"));
            dataset.Tables.Add(new DataTable("Win32_VolumeChangeEvent"));
 
            hash["操作系统设置"]=new DataSet("操作系统设置");
            dataset=(DataSet)hash["操作系统设置"];
            dataset.Tables.Add(new DataTable("Win32_BootConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_ComputerSystem"));
            dataset.Tables.Add(new DataTable("Win32_ComputerSystemProcessor"));
            dataset.Tables.Add(new DataTable("Win32_ComputerSystemProduct"));
            dataset.Tables.Add(new DataTable("Win32_DependentService"));
            dataset.Tables.Add(new DataTable("Win32_LoadOrderGroup"));
            dataset.Tables.Add(new DataTable("Win32_LoadOrderGroupServiceDependencies"));
            dataset.Tables.Add(new DataTable("Win32_LoadOrderGroupServiceMembers"));
            dataset.Tables.Add(new DataTable("Win32_OperatingSystem"));
            dataset.Tables.Add(new DataTable("Win32_OperatingSyste
mQFE"));
            dataset.Tables.Add(new DataTable("Win32_OSRecoveryConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_QuickFixEngineering"));
            dataset.Tables.Add(new DataTable("Win32_StartupCommand"));
            dataset.Tables.Add(new DataTable("Win32_SystemBootConfiguration"));
            dataset.Tables.Add(new DataTable("Win32_SystemDesktop"));
            dataset.Tables.Add(new DataTable("Win32_SystemDevices"));
            dataset.Tables.Add(new DataTable("Win32_SystemLoadOrderGroups"));
            dataset.Tables.Add(new DataTable("Win32_SystemNetworkConnections"));
            dataset.Tables.Add(new DataTable("Win32_SystemOperatingSystem"));
            dataset.Tables.Add(new DataTable("Win32_SystemProcesses"));
            dataset.Tables.Add(new DataTable("Win32_SystemProgramGroups"));
            dataset.Tables.Add(new DataTable("Win32_SystemResources"));
            dataset.Tables.Add(new DataTable("Win32_SystemServices"));
            dataset.Tables.Add(new DataTable("Win32_SystemSetting"));
            dataset.Tables.Add(new DataTable("Win32_SystemSystemDriver"));
            dataset.Tables.Add(new DataTable("Win32_SystemTimeZone"));
            dataset.Tables.Add(new DataTable("Win32_SystemUsers"));
 
            hash["进程"]=new DataSet("进程");
            dataset=(DataSet)hash["进程"];
            dataset.Tables.Add(new DataTable("Win32_Process"));
            dataset.Tables.Add(new DataTable("Win32_ProcessStartup"));
            dataset.Tables.Add(new DataTable("Win32_Thread"));
 
            hash["注册表"]=new DataSet("注册表");
            dataset=(DataSet)hash["注册表"];
            dataset.Tables.Add(new DataTable("Win32_Registry"));
 
            hash["计划任务"]=new DataSet("计划任务");
            dataset=(DataSet)hash["计划任务"];
            dataset.Tables.Add(new DataTable("Win32_CurrentTime"));
            dataset.Tables.Add(new DataTable("Win32_ScheduledJob"));
 
            hash["安全"]=new DataSet("安全");
            dataset=(DataSet)hash["安全"];
            dataset.Tables.Add(new DataTable("NWin32_AccountSID"));
            dataset.Tables.Add(new DataTable("Win32_ACE"));
            dataset.Tables.Add(new DataTable("Win32_LogicalFileAccess"));
            dataset.Tables.Add(new DataTable("Win32_LogicalFileAuditing"));
            dataset.Tables.Add(new DataTable("Win32_LogicalFileGroup"));
            dataset.Tables.Add(new DataTable("Win32_LogicalFileOwner"));
            dataset.Tables.Add(new DataTable("Win32_LogicalFileSecuritySetting"));
            dataset.Tables.Add(new DataTable("Win32_LogicalShareAccess"));
            dataset.Tables.Add(new DataTable("Win32_LogicalShareAuditing"));
            dataset.Tables.Add(new DataTable("Win32_LogicalShareSecuritySetting"));
            dataset.Tables.Add(new DataTable("NWin32_PrivilegesStatus"));
            dataset.Tables.Add(new DataTable("NWin32_SecurityDescriptor"));
            dataset.Tables.Add(new DataTable("Win32_SecuritySetting"));
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingAccess"));
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingAuditing"));
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingGroup"));
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingOfLogicalFile"));
            dataset.Tables.Add(new DataTable("NodWin32_SecuritySettingOfLogicalShare"));
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingOfObject"));
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingOwner"));
            dataset.Tables.Add(new DataTable("Win32_SID"));
            dataset.Tables.Add(new DataTable("Win32_Trustee"));
 
            hash["服务"]=new DataSet("服务");
            dataset=(DataSet)hash["服务"];
            dataset.Tables.Add(new DataTable("Win32_BaseService"));
            dataset.Tables.Add(new DataTable("Win32_Service"));
 
         
   hash["共享"]=new DataSet("共享");
            dataset=(DataSet)hash["共享"];
            dataset.Tables.Add(new DataTable("Win32_ServerConnection"));
            dataset.Tables.Add(new DataTable("Win32_ServerSession"));
            dataset.Tables.Add(new DataTable("Win32_ConnectionShare"));
            dataset.Tables.Add(new DataTable("Win32_PrinterShare"));
            dataset.Tables.Add(new DataTable("Win32_SessionConnection"));
            dataset.Tables.Add(new DataTable("Win32_SessionProcess"));
            dataset.Tables.Add(new DataTable("Win32_ShareToDirectory"));
            dataset.Tables.Add(new DataTable("Win32_Share"));
 
            hash["开始菜单"]=new DataSet("开始菜单");
            dataset=(DataSet)hash["开始菜单"];
            dataset.Tables.Add(new DataTable("NoWin32_LogicalProgramGroup"));
            dataset.Tables.Add(new DataTable("Win32_LogicalProgramGroupDirectory"));
            dataset.Tables.Add(new DataTable("Win32_LogicalProgramGroupItem"));
            dataset.Tables.Add(new DataTable("Win32_LogicalProgramGroupItemDataFile"));
            dataset.Tables.Add(new DataTable("Win32_ProgramGroup"));
            dataset.Tables.Add(new DataTable("Win32_ProgramGroupContents"));
            dataset.Tables.Add(new DataTable("Win32_ProgramGroupOrItem"));
 
            hash["用户"]=new DataSet("用户");
            dataset=(DataSet)hash["用户"];
            dataset.Tables.Add(new DataTable("Win32_Account"));
            dataset.Tables.Add(new DataTable("Win32_Group"));
            dataset.Tables.Add(new DataTable("Win32_GroupInDomain"));
            dataset.Tables.Add(new DataTable("Win32_GroupUser"));
            dataset.Tables.Add(new DataTable("Win32_LogonSession"));
            dataset.Tables.Add(new DataTable("Win32_LogonSessionMappedDisk"));
            dataset.Tables.Add(new DataTable("Win32_NetworkLoginProfile"));
            dataset.Tables.Add(new DataTable("Win32_SystemAccount"));
            dataset.Tables.Add(new DataTable("Win32_UserAccount"));
            dataset.Tables.Add(new DataTable("Win32_UserInDomain"));
 
            hash["Windows事件日志"]=new DataSet("Windows事件日志");
            dataset=(DataSet)hash["Windows事件日志"];
            dataset.Tables.Add(new DataTable("Win32_NTEventlogFile"));
            dataset.Tables.Add(new DataTable("Win32_NTLogEvent"));
            dataset.Tables.Add(new DataTable("Win32_NTLogEventComputer"));
            dataset.Tables.Add(new DataTable("Win32_NTLogEventLog"));
            dataset.Tables.Add(new DataTable("Win32_NTLogEventUser"));
 
            hash["Windows产品激活"]=new DataSet("Windows产品激活");
            dataset=(DataSet)hash["Windows产品激活"];
            dataset.Tables.Add(new DataTable("Win32_ComputerSystemWindowsProductActivationSetting"));
            dataset.Tables.Add(new DataTable("Win32_Proxy"));
            dataset.Tables.Add(new DataTable("Win32_WindowsProductActivation"));
 
            hash["应用程序安装"]=new DataSet("应用程序安装");
            dataset=(DataSet)hash["应用程序安装"];
            dataset.Tables.Add(new DataTable("Win32_ActionCheck"));
            dataset.Tables.Add(new DataTable("Win32_ApplicationCommandLine"));
            dataset.Tables.Add(new DataTable("Win32_ApplicationService"));
            dataset.Tables.Add(new DataTable("Win32_Binary"));
            dataset.Tables.Add(new DataTable("Win32_BindImageAction"));
            dataset.Tables.Add(new DataTable("Win32_CheckCheck"));
            dataset.Tables.Add(new DataTable("Win32_ClassInfoAction"));
            dataset.Tables.Add(new DataTable("Win32_CommandLineAccess"));
            dataset.Tables.Add(new DataTable("Win32_Condition"));
            dataset.Tables.Add(new DataTable("Win32_CreateFolderAction"));
            dataset.Tables.Add(new DataTable("Win32_DuplicateFileAction"));
            dataset.Tables.Add(new DataTable("Win32_EnvironmentSpecification"));
            dataset.Tables.Add(new DataTable(
"Win32_ExtensionInfoAction"));
            dataset.Tables.Add(new DataTable("Win32_FileSpecification"));
            dataset.Tables.Add(new DataTable("Win32_FontInfoAction"));
            dataset.Tables.Add(new DataTable("Win32_IniFileSpecification"));
            dataset.Tables.Add(new DataTable("Win32_InstalledSoftwareElement"));
            dataset.Tables.Add(new DataTable("Win32_LaunchCondition"));
            dataset.Tables.Add(new DataTable("Win32_ManagedSystemElementResource"));
            dataset.Tables.Add(new DataTable("Win32_MIMEInfoAction"));
            dataset.Tables.Add(new DataTable("Win32_MoveFileAction"));
            dataset.Tables.Add(new DataTable("Win32_MSIResource"));
            dataset.Tables.Add(new DataTable("Win32_ODBCAttribute"));
            dataset.Tables.Add(new DataTable("Win32_ODBCDataSourceAttribute"));
            dataset.Tables.Add(new DataTable("Win32_ODBCDataSourceSpecification"));
            dataset.Tables.Add(new DataTable("Win32_ODBCDriverAttribute"));
            dataset.Tables.Add(new DataTable("Win32_ODBCDriverSoftwareElement"));
            dataset.Tables.Add(new DataTable("Win32_ODBCDriverSpecification"));
            dataset.Tables.Add(new DataTable("Win32_ODBCSourceAttribute"));
            dataset.Tables.Add(new DataTable("Win32_ODBCTranslatorSpecification"));
            dataset.Tables.Add(new DataTable("Win32_Patch"));
            dataset.Tables.Add(new DataTable("Win32_PatchFile"));
            dataset.Tables.Add(new DataTable("Win32_PatchPackage"));
            dataset.Tables.Add(new DataTable("Win32_Product"));
            dataset.Tables.Add(new DataTable("Win32_ProductCheck"));
            dataset.Tables.Add(new DataTable("Win32_ProductResource"));
            dataset.Tables.Add(new DataTable("Win32_ProductSoftwareFeatures"));
            dataset.Tables.Add(new DataTable("Win32_ProgIDSpecification"));
            dataset.Tables.Add(new DataTable("Win32_Property"));
            dataset.Tables.Add(new DataTable("Win32_PublishComponentAction"));
            dataset.Tables.Add(new DataTable("Win32_RegistryAction"));
            dataset.Tables.Add(new DataTable("Win32_RemoveFileAction"));
            dataset.Tables.Add(new DataTable("Win32_RemoveIniAction"));
            dataset.Tables.Add(new DataTable("Win32_ReserveCost"));
            dataset.Tables.Add(new DataTable("Win32_SelfRegModuleAction"));
            dataset.Tables.Add(new DataTable("Win32_ServiceControl"));
            dataset.Tables.Add(new DataTable("Win32_ServiceSpecification"));
            dataset.Tables.Add(new DataTable("Win32_ServiceSpecificationService"));
            dataset.Tables.Add(new DataTable("Win32_SettingCheck"));
            dataset.Tables.Add(new DataTable("Win32_ShortcutAction"));
            dataset.Tables.Add(new DataTable("Win32_ShortcutSAP"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareElement"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareElementAction"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareElementCheck"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareElementCondition"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareElementResource"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeature"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeatureAction"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeatureCheck"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeatureParent"));
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeatureSoftwareElements"));
            dataset.Tables.Add(new DataTable("Win32_TypeLibraryAction"));
 
 
            _ClassHash["WMI服务管理"]=new Hashtable();
            hash=(Hashtable)_ClassHash["WMI服务管理"];
 
            hash["WMI设置"]=new DataSet("WMI设置");
            dataset=(DataSet)hash["WMI设置"];
            dataset.Tables.Add(new DataTable("Win32_MethodParameterClass"));
 
            hash["WMI管理"]=new DataSet("WMI管理");
            dataset=(DataSet)hash["WMI管理"];
      &n
bsp;     dataset.Tables.Add(new DataTable("Win32_WMISetting"));
            dataset.Tables.Add(new DataTable("Win32_WMIElementSetting"));
 
 
            _ClassHash["性能计数器"]=new Hashtable();
            hash=(Hashtable)_ClassHash["性能计数器"];
 
            hash["格式化性能计数"]=new DataSet("格式化性能计数");
            dataset=(DataSet)hash["格式化性能计数"];
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_ASP_ActiveServerPages"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_ContentFilter_IndexingServiceFilter"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_ContentIndex_IndexingService"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_InetInfo_InternetInformationServicesGlobal"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_ISAPISearch_HttpIndexingService"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_MSDTC_DistributedTransactionCoordinator"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_NTFSDRV_SMTPNTFSStoreDriver"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfDisk_LogicalDisk"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfDisk_PhysicalDisk"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfNet_Browser"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfNet_Redirector"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfNet_Server"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfNet_ServerWorkQueues"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_Cache"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_Memory"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_Objects"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_PagingFile"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_Processor"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_System"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_FullImage_Costly"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_Image_Costly"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_JobObject"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_JobObjectDetails"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_Process"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_ProcessAddressSpace_Costly"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_Thread"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_ThreadDetails_Costly"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PSched_PSchedFlow"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PSched_PSchedPipe"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_RemoteAccess_RASPort"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_RemoteAccess_RASTotal"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_RSVP_ACSRSVPInterfaces"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_RSVP_ACSRSVPService"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_SMTPSVC_SMTPServer"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Spooler_PrintQueue"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_TapiSrv_Telephony"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_ICMP"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_IP"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_NBTConnection"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_NetworkInterface"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_TCP"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_UDP"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_TermService_TerminalServices"));
         &nb
sp;  dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_TermService_TerminalServicesSession"));
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_W3SVC_WebService"));
 
            hash["原始性能计数"]=new DataSet("原始性能计数");
            dataset=(DataSet)hash["原始性能计数"];
            dataset.Tables.Add(new DataTable("Win32_PerfRawData"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_ASP_ActiveServerPages"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_ContentFilter_IndexingServiceFilter"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_ContentIndex_IndexingService"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_InetInfo_InternetInformationServicesGlobal"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_ISAPISearch_HttpIndexingService"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_MSDTC_DistributedTransactionCoordinator"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_NTFSDRV_SMTPNTFSStoreDriver"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfDisk_LogicalDisk"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfDisk_PhysicalDisk"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfNet_Browser"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfNet_Redirector"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfNet_Server"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfNet_ServerWorkQueues"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_Cache"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_Memory"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_Objects"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_PagingFile"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_Processor"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_System"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_FullImage_Costly"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_Image_Costly"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_JobObject"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_JobObjectDetails"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_Process"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_ProcessAddressSpace_Costly"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_Thread"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_ThreadDetails_Costly"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PSched_PSchedFlow"));
            dataset.Tables.Add(new DataTable("NWin32_PerfRawData_PSched_PSchedPipe"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_RemoteAccess_RASPort"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_RemoteAccess_RASTotal"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_RSVP_ACSRSVPInterfaces"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_RSVP_ACSRSVPService"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_SMTPSVC_SMTPServer"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Spooler_PrintQueue"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_TapiSrv_Telephony"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_ICMP"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_IP"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_NBTConnection"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_NetworkInterface"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_TCP"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_UDP"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_TermService_TerminalServices"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_TermService_TerminalServicesSession"));
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_W3SVC_WebService"));
 
        }
        public Hashtable ClassHash
        {
        &nb
sp;   get{return _ClassHash;}
        }
    }