Windows Management Instrumentation (WMI)

2010-05-05  来源:本站原创  分类:OS  人气:200 

Windows 2000 and above versions of the operating system in the MMC, presumably we all used it. Through a unified standard WMI, the way a similar service module configuration of the computer's resources and management. I think that WMI is the most common form of the. Through WMI, we can system resources (including the machine's various software and hardware resources, such as application procedures, drives, printers of the classes) for remote management system in various ways to receive event notifications. Of course, we can write applications consistent with WMI standard. The current understanding of just that, huh, huh.

MSDN link on WMI: Windows Management Instrumentation Start Page
I recently translated a WMI application example: Windows Management Instrumentation (WMI) Implementation , is to use VC #. NET 2003 version written before.

Windows Management Instrumentation WMI of four structure (from low to high)

  • Managed System (IMIS) is the data source, typically operating system, services, applications, device drivers, network, printer, etc..
  • Provider as a managed system and the top of the Common Information Model Object Manager CIMOM between the middle layer, the lower the upper extraction of relevant information, trigger events, event notifications generated for the lower layer, and management information and interfaces mapped to the CIM class library .
  • Common Information Model Object Manager Common Information Model CIM CIMOM is the repository of the management interface. CIM repository is an object-oriented database, these objects can be established between the association, the developer can also add in the existing environment, a new class to represent a new managed object. Both unified WinMGMT said through a set of COM interfaces for a visit. And this CIMOM has the equivalent of the upper user agent.
  • User is the system management applications (such as Microsoft Systems Management Server) or third-party applications or scripts, it is the end user host system to process information.

Figure

Windows Management Instrumentation (WMI)


In the. NET Framework in, System.Management namespace provides a common framework for traversing WMI class. Of course, also need to be installed on the computer using the WMI namespace management (Windows Me/2000/XP have installed WMI, or need to download WMI for installation). System.Management.Instrumentation namespace is to allow developers to customize the managed classes and the mapping between WMI classes, so you can freely use their application process as the most suitable structure to define the class. Managed WMI classes can be mapped to meet the standards of the WMI class structure. This allows developers to use managed classes more efficient, but also management tools to correctly interpret the data specifications provided by the application.

System.Management namespace support for WMI operations commonly used objects, as detailed in the local MSDN . NET Framework class library -> System.Management namespace

  • ManagementObject or ManagementClass: corresponding to a single managed object or class.
  • ManagementObjectSearcher: for according to the specified search query or enumeration ManagementClass ManagementObject or collection of objects.
  • ManagementEventWatcher: for reservations from the WMI event notification.
  • ManagementQuery: base class for all inquiries.
  • ManagementPath: a package for the analysis and generation WMI object path.
  • ManagementObjectSearcher: query retrieval based on the specified collection of managed objects.
  • ManagementScope: that the scope of management operations.
  • WqlObjectQuery: WMI data that WQL format

相关文章
  • Windows Management Instrumentation (WMI) 2010-05-05

    Windows 2000 and above versions of the operating system in the MMC, presumably we all used it. Through a unified standard WMI, the way a similar service module configuration of the computer's resources and management. I think that WMI is the most com

  • [Transfer from Baidu dusty blog] windows server 2003 common commands 2011-08-23

    Address: http://hi.baidu.com/sakeing/ accwiz.exe> ​​Accessibility Wizard for walking you through setting up your machine for your mobility needs. Accessibility Wizard acsetups.exe> ​​ACS setup DCOM server executable actmovie.exe> ​​Direct Show se

  • Windows PowerShell 微软官方解释 2014-01-10

    Windows PowerShell 是一种新的.交互式的命令行和基于任务脚本编写技术,它针对系统管理任务提供全面的控制和自动操作. 通过提供一百多种系统管理实用工具.一致的语法.及对普通管理数据更好地导航(如登记或 Windows Management Instrumentation (WMI)),Windows PowerShell 使 Windows 管理员提高了生产力.Windows PowerShell 还包括全面启动 Windows 系统自动化管理任务的脚本编写语言.Windows

  • WINDOWS 2003服务优化批处理第1/2页 2014-06-13

    rem WINDOWS 2003服务优化批处理 @pause @rem Application Experience Lookup Service @rem 在应用程序启动时为应用程序处理应用程序兼容性查找请求. sc config AeLookupSvc start= AUTO @rem Alerter @rem 微软: 通知选取的使用者及计算机系统管理警示.如果停止这个服务,使用系统管理@rem 警示的程序将不会收到通知. @rem 补充: 一般家用计算机根本不需要传送或接收计算机系统管理来

  • c#与WMI使用技巧集第1/2页 2014-08-08

    1. 什么是WMI WMI是英文Windows Management Instrumentation的简写,它的功能主要是:访问本地主机的一些信息和服务,可以管理远程计算机(当然你必须要拥有足够的权限),比如:重启,关机,关闭进程,创建进程等. 2. 如何用WMI获得本地磁盘的信息? 首先要在VS.NET中创建一个项目,然后在添加引用中引用一个.net的装配件:System.Management.dll,这样你的项目才能使用WMI.代码如下: using System; using System

  • WMI 脚本高手不完全手册 2014-10-02

    要成为WMI脚本高手当要认识一下什么叫WMI啦,下面将介绍一下有关WMI的东西. Windows 管理规范(Windows Management Instrumentation)是一项核心的 Windows 管理技术:用户可以使用 WMI 管理本地和远程计算机.WMI 通过编程和脚本语言为日常管理提供了一条连续一致的途径.用户可以: 1.在远程计算机器上启动一个进程. 2.设定一个在特定日期和时间运行的进程. 3.远程启动计算机. 4.获得本地或远程计算机的已安装程序列表. 5.查询本地或远程计

  • Windows WMIC命令使用详解(附实例) 2015-01-07

    第一次执行WMIC命令时,Windows首先要安装WMIC,然后显示出WMIC的命令行提示符.在WMIC命令行提示符上,命令以交互的方式执行 执行"wmic"命令启动WMIC命令行环境.这个命令可以在XP或 .NET Server的标准命令行解释器(cmd.exe).Telnet会话或"运行"对话框中执行.这些启动方法可以在本地使用,也可以通过.NET Server终端服务会话使用. 第一次执行WMIC命令时,Windows首先要安装WMIC,然后显示出WMIC的命

  • Windows服务器安全配置 2015-02-26

    服务器安全配置(只针对WIN系统) 一. 原则关掉所有不使用的服务,不安装所有与服务器无关的软件,打好所有补丁 修改3389 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\Wds\Repwd\Tds\Tcp, 看到那个PortNumber没有?0xd3d,这个是16进制,就是3389啦,我改XXXX这个值是RDP(远程桌面协议)的默认值,也就是说用来配置以后新建的RDP服务的,要改已经建立的RDP服务,我们

  • 揭密Windows 7 PE制作全过程 2013-10-21

    相信能点进来看文章都朋友都系怀着想探索win7PE系统到底是怎样制作出来和想制作一个属于自己的windows7 PE系统.放心,只要你认真读完此系列文章,我担保你可以DIY出一个属于自己的PE系统. 网上都盛传着什么vistapebuilder,win7pebuilder等等软件,这到底是什么回事?其实原理是很简单的,我们制作winodws pe系统都是使用命令行完成的,所以外国哪些高手弄了个大杂烩出来,把所有用到的命令集在一起,让大家使用,而你也可以通过编写它们开放的脚本来DIY,但十分复杂(

  • Using the Windows 32 API from Python 2011-03-25

    When running Python programs on a Windows computer there are often cases (such as better integration) where it makes sense to throw portability to the winds and call on the win32api for some platform-specific functionality. 2010-Jul-27: How to get Wi

  • windows2008 quickly optimize computer 2010-05-07

    Service Name Service Description for the best suggestions proposed path of the second . NET Runtime Optimization Service v2.0.50215_X86 Written on the use of next-generation technologies to provide optimized to run the program. The default operating

  • On SQL EXPRESS 2005 connection problems 2010-12-01

    The other one On SQL EXPRESS 2005 connection problems April 2, 2007 Monday 13:45 By default, SQL Server Express as a named "SQLEXPRESS" instance installation. Specified in the connection string name with the server instance name, you can connect

  • SQL Server 2005 Reporting Service 2011-07-04

    Original address (http://kb.cnblogs.com/a/772821/) Reporting Services Introduction: SQL Server 2005 Reporting Services is a server-based reporting platform that can be used to create and manage relational data source and data source in multidimension

  • 设置高级NTFS权限的工具 XCACLS.vbs 2014-01-10

    Xcacls.vbs 只与 Microsoft Windows 2000.Microsoft Windows XP 和 Microsoft Windows Server 2003 兼容.Microsoft 不支持 Xcacls.vbs http://support.microsoft.com/kb/825751 Microsoft 以 Microsoft Visual Basic 脚本 (Xcacls.vbs) 的形式提供了 Extended Change Access Control List

  • PowerShell脚本性能优化技巧总结 2014-02-05

    这篇文章主要介绍了PowerShell脚本性能优化技巧总结,一些PowerShell脚本可能很容易消耗很多内存,或者运行太多时间,甚至兼而有之,本文会分享几个PowerShell小技巧来提高这一类脚本的性能,需要的朋友可以参考下 最终优化 在你写脚本时,不要老是想着去优化,因为你的部分优化代码可能最终被丢弃.而且老是想着优化也会降低你的生产效率,因为和CPU的时间相比,脚本编写者的时间可能会更宝贵. 使用过滤参数 PowerShell可能会消耗很多资源,因为许多Cmdlet本身的设计就是用来提供

  • 个人PC机安全设置资料收集 2014-02-27

    个人PC机安全设置 = 优化+安全 优化:杀毒软件+防火墙(提示攻击)+防止恶意的插件(防插件的软件)+防止一些社会工程学+不要访问黄色网站+更新补丁 关闭139端口的方法是在"网络和拨号连接"中"本地连接"中选取"Internet协议(TCP/IP)"属性,进入"高级TCP/IP设置""WINS设置"里面有一项"禁用TCP/IP的NETBIOS",打勾就关了139端口,禁止RPC漏洞.

  • 花3分钟时间来关闭你电脑上没用的服务(加快你的电脑运行) 2014-03-25

    [推荐]花3分钟时间来关闭你电脑上没用的服务(加快你的电脑运行) 花3分钟时间来关闭你电脑上没用的服务,让你的电脑百毒不侵.提速百倍(^0^)! 可能有很多朋友还不知道如何启动服务选项:在控制面板→管理工具→服务:指着建议为"已停用"的服务属性改成"已禁用"并按停止即可: Alerter 微软: 通知选取的使用者及计算机系统管理警示.如果停止这个服务,使用系统管理警示的程序将不会收到通知.如果停用这个服务,所有依存于它的服务将无法启动. 补充: 一般家用计算机根本不

  • .net的命名空间类库的简单介绍 2014-04-13

    .net的命名空间类库的简单介绍,需要的朋友可以参考一下 常用: System:根空间,包含一些基本的类库 System.Collections:主要是和集合类相关的类库 System.Collections.Generic:泛型集合的类库空间 System.Data:数据处理类库空间 System.Data.Odbc:以ODBC连接数据库的空间 System.Data.OracleClient:连接Oracle的类库空间 System.Diagnostics:主要用于应用程序的诊断 Syste

  • Vbs脚本经典教材(最全的资料还是MSDN) 2014-04-28

    这篇文章主要介绍了Vbs脚本经典教材,其实最全的资料还是MSDN,不过脚本之家已经为大家整理了一些,也可以查看 -为什么要使用Vbs? 在Windows中,学习计算机操作也许很简单,但是很多计算机工作是重复性劳动,例如你每周也许需要对一些计算机文件进行复制.粘贴.改名.删除,也许你每天启动计算机第一件事情就是打开WORD,切换到你喜爱的输入法进行文本编辑,同时还要播放优美的音乐给工作创造一个舒心的环境,当然也有可能你经常需要对文本中的某些数据进行整理,把各式各样的数据按照某种规则排列起来--.这

  • 初窥WMI_Vbs脚本编程简明教程补充读物第1/2页 2014-10-30

    看了沼泽介绍的wmi脚本相关知识,对新手是个不错的教材,如果想和系统结合的更好,想实现更大功能的代码,那么学习vbs就不得不用wmi脚本 今天,我沼泽将给大家介绍个朋友,它就是Microsoft Windows Management Instrumentation (WMI).中文名字叫Windows管理规范.从Windows 2000开始,WMI(Windows 管理规范)就内置于操作系统中,并且成为了Windows系统管理的重要组成部分.所以大家很容易就能见到它的,因为我们至少也应该是个Wi