马标志的车是什么牌子| 喝黄芪水有什么副作用| 便秘灌肠用什么水| 胆大包天是什么生肖| 昆仑雪菊有什么作用| 朋友梦到我怀孕了是什么意思| 孕妇喝咖啡有什么危害| 菊花代表什么生肖| 看阴茎挂什么科| saq是什么意思| 全身酸痛失眠什么原因| 治疗早泄吃什么药| 东厂是什么意思| 怀孕出血是什么颜色的| 真正的爱情是什么| 晕车药有什么副作用| 婴儿头发长得慢是什么原因| 路亚什么意思| 出柜是什么意思| 三叉神经是什么病| 梦见下雪是什么| 产妇吃什么水果| 上呼吸道感染吃什么药| 落户是什么意思| 黄体生成素是什么| 腊肉炒什么最好吃| 雍正叫什么名字| 胡饼是什么| 惠五行属什么| 什么知什么明| 生普洱和熟普洱有什么区别| 芒果有什么功效| 吃什么可以拉肚子| 一般什么意思| bug是什么意思| 乌鸡煲汤放什么材料| 儿童过敏性结膜炎用什么眼药水| 木是什么颜色| lp是什么意思| 狮子座后面是什么星座| 老人头发由白变黑是什么原因| 什么虎什么山| 又当又立是什么意思| 鱼有念什么| 吃什么升白细胞比较快| 肚子不饿是什么原因| 吃什么对脾胃好| 乳房疼挂什么科| 吃了羊肉不能吃什么| 每天喝柠檬水有什么好处| 脾湿吃什么药| 24岁属什么| 今年为什么有两个6月| 处暑吃什么传统食物| 压测是什么意思| 高潮是什么| 明朝前面是什么朝代| 穿丝袜有什么好处| pinsp呼吸机代表什么| 大血小板比率偏高是什么原因| 6月28号什么星座| 慢性气管炎吃什么药最有效| 小孩嘴唇发白是什么原因| co是什么气体| 病毒感染发烧吃什么药| 生意盎然什么意思| 梦见死人了是什么预兆| 可爱的动物是什么生肖| 女性阳性是什么病| 亨特综合症是什么病| 干咳吃什么食物好| 负离子是什么| 封建社会是什么意思| 黄体酮不足吃什么| 记忆是什么意思| 画画用什么铅笔| 淘宝什么时候有活动| 腰酸胀是什么原因男性| 车标是牛的是什么车| 九月二十九号是什么星座| 月经老是提前是什么原因| 治疗白斑最有效的方法是什么| 乳腺囊肿吃什么药| 胃泌素17是什么检查| 相安无事是什么意思| 缺德是什么意思| 第一顺位是什么意思| h家是什么牌子| sy什么意思| 掉牙齿是什么征兆| 越来越瘦是什么原因| 手指关节疼痛用什么药| 安全期什么时候| 中性粒细胞偏高是什么原因| 轻度贫血有什么症状| 眉毛少是什么原因| 南瓜子不能和什么一起吃| 什么的天空填合适的词| 兮兮是什么意思| 脸两侧长痘痘是什么原因| 初心不改是什么意思| 吃什么能美白| 耳浴是什么意思| 碱性食物都有什么| 老人身上痒是什么原因| 大雪是什么意思| vca是什么牌子| 引什么大什么| 红果是什么| 麻醉评估是什么意思| 额头长痘是什么原因引起的| 薄荷泡水喝有什么功效| 孕妇尿酸高是什么原因| 孙五行属什么| 歧途什么意思| 什么食物补血效果最好最快| 羊奶和牛奶有什么区别| 文科生选什么专业| 酸菜吃多了有什么危害| 一加一笔变成什么字| 老妈子是什么意思| 暖心向阳是什么意思| 榆钱是什么| 侮辱什么意思| 跑步对身体有什么好处| 小便尿出乳白色液体是什么问题| 鳖吃什么| 鹅肉不能和什么一起吃| 水瓶座男生喜欢什么样的女生| 什么人生病从来不看医生| 慢性浅表性胃炎吃什么药| 印记是什么意思| 猫一般吃什么| 结节性红斑是什么原因引起的| 黄瓜籽粉有什么功效| 地狱不空誓不成佛是什么意思| 美尼尔症是什么病| 女人吃什么新陈代谢快| 吐黄水是什么原因| 天空又什么又什么| 珠胎暗结是什么意思| 淡然自若的意思是什么| 不饱和脂肪酸是什么意思| 玩票是什么意思| 什么是佛教什么是道教| 石榴是什么生肖| 牛黄是什么| 飞龙在天是什么生肖| 眼痒用什么眼药水| s属性什么意思| 现在的节气是什么| 什么鱼最好养| 养神经的药是什么药最好| 刘邦为什么怕吕后| 太上皇是什么意思| 女性口苦是什么原因引起的| 痔疮是什么东西| 五七干校是什么意思| 飞机什么时候停止登机| 裙摆是什么| 北斗是什么| 占有欲强什么意思| 7月11号什么星座| 脚踝肿挂什么科| 刘备儿子叫什么| 万金油什么意思| 肺结节影是什么意思啊| 梦见粽子是什么预兆| 蓝色加什么颜色是紫色| 三七粉有什么用处| 换手率高说明什么| 只是女人容易一往情深是什么歌| 天天射精对身体有什么危害| 血小板低什么症状| 什么叫空调病| 水洗棉是什么面料| 喉咙有痰吃什么药| 时迁是什么意思| 门槛石有什么讲究| 阿胶配什么吃不上火| 吃什么降糖快| 为什么会得湿疹| 塑料五行属什么| 心悸吃什么中成药| 上焦火旺什么症状| 琴酒是什么酒| 解析是什么意思| 铁补多了有什么副作用| 小米长什么样| 廉航是什么意思| 否认是什么意思| 霏是什么意思| 芈姝结局是什么| hcg翻倍不好是什么原因造成的| 牙科属于什么科| 小暑是什么时候| 右肺上叶钙化灶是什么意思| 壁虎进家里预示什么| 薄荷叶晒干后能干什么| 被臭虫咬了擦什么药| 孕妇吃什么好| 手指甲有竖纹是什么原因| 做梦捡到钱是什么预兆| 糟卤对身体有什么危害| 乘风破浪的意思是什么| 腰肌劳损吃什么药| 肾不好有什么表现| 长沙开福寺求什么最灵| 七月七日是什么生肖| 宽粉是什么做的| 82年属什么的生肖| 子宫结节是什么意思| 精神小伙是什么意思| 葫芦是什么生肖| 吃什么水果下火| 什么什么言什么| 71年出生属什么生肖| 胰岛素偏高是什么意思| claire是什么意思| 调兵遣将是什么生肖| 梦见女儿哭意味着什么| 刺身是什么| 什么是精神出轨| crispy是什么意思| 肠梗阻是什么病| 三七粉什么时间喝好| 化疗吃什么补白细胞| 耗儿鱼是什么鱼| 为什么眼睛老是痒| lalpina是什么牌子| 磬是什么乐器| 15度穿什么衣服| 五步蛇为什么叫五步蛇| 肾积水挂什么科室| 未成年喝酒有什么危害| 马中赤兔人中吕布什么意思| 白细胞低吃什么药可以增加白细胞| 过生日送什么礼物好| 东北大拉皮是什么做的| 什么的跳| nfl是什么意思| 挺舌反应是什么| 12306什么时候放票| 多字五行属什么| mrsa医学上是什么意思| 武松打的是什么虎| 宜五行属什么| 每天早上起床口苦是什么原因| 什么血型能生出o型血| 1226是什么星座| 脸上发红是什么原因| 隽字五行属什么| 吃羊肉不能吃什么水果| 赤道2什么时候上映| 荷花是什么季节开的| 虚构是什么意思| 羟氯喹是什么药| 牙签肉是什么肉| 失眠为什么| coupon是什么意思| facebook什么意思| 天秤座跟什么星座最配| 秋天什么水果成熟| 汾酒属于什么香型| 百度Jump to content

【宝马5系 2018款 530Li 尊享型 豪华套装报价】宝马5系报价

From Wikipedia, the free encyclopedia
Windows Management Instrumentation
Developer(s)Microsoft
Operating systemMicrosoft Windows
PlatformIA-32, x86-64, and ARM (historically Itanium, DEC Alpha, MIPS, and PowerPC)
TypeSystems management
LicenseSame as Microsoft Windows
Websitelearn.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page
百度 刘某今年57岁,以刻石碑、打戒指为生,因此常常驾车走街串巷揽生意,这给他作案提供了踩点的机会。

Windows Management Instrumentation (WMI) is a set of extensions to the Windows Driver Model that provides an operating system interface through which instrumented components provide information and notification. WMI is Microsoft's implementation of the Web-Based Enterprise Management (WBEM) and Common Information Model (CIM) standards from the Distributed Management Task Force (DMTF).

WMI allows scripting languages (such as VBScript or PowerShell) to manage Microsoft Windows personal computers and servers, both locally and remotely. WMI comes preinstalled in Windows 2000 and later. It is available as a download for Windows NT 4.0,[1] Windows 95, and Windows 98.[2]

Also included with Windows was Windows Management Instrumentation Command-line (WMIC), a CLI utility to interface with WMI.[3] However, starting with Windows 10, version 21H1 and Windows Server 2022, WMIC is deprecated in favor of PowerShell.[4]

Purpose of WMI

[edit]

The purpose of WMI is to define a proprietary set of environment-independent specifications that enable sharing management information between management apps. WMI prescribes enterprise management standards and related technologies for Windows that work with existing management standards, such as Desktop Management Interface (DMI) and Simple Network Management Protocol (SNMP). WMI complements these other standards by providing a uniform model for accessing management data from any source.

Development process

[edit]

Because WMI abstracts the manageable entities with Common Information Model (CIM) and a collection of providers, the development of a provider implies several steps. The major steps can be summarized as follows:

  1. Create the manageable entity model
    1. Define a model
    2. Implement the model
  2. Create the WMI provider
    1. Determine the provider type to implement
    2. Determine the hosting model of the provider
    3. Create the provider template with the ATL wizard
    4. Implement the code logic in the provider
    5. Register the provider with WMI and the system
  3. Test the provider
  4. Create consumer sample code.

Providers

[edit]

Since the release of the first WMI implementation during the Windows NT 4.0 SP4 era (as an out-of-band download), Microsoft has consistently added WMI providers to Windows:

Many customers have interpreted the growth in numbers of providers as a sign that Microsoft envisions WMI as the ubiquitous management layer of Windows.

Beyond the scripting needs, most leading management solutions, such as Microsoft Operations Mamager (MOM), System Center Configuration Manager (SCCM), Active Directory Services (ADS), HP OpenView (HPOV), and the various offerings of BMC Software and CA, Inc. are WMI-enabled, i.e., capable of consuming and providing WMI information. This enables administrators who lack WMI coding skills to benefit from WMI.

Features

[edit]

WMI offers many features out of the box. Here are the most important advantages:

  • Automation interfaces: WMI comes with a set of automation interfaces ready to use. Beyond the WMI class design and the provider development, the Microsoft development and test teams are not required to create, validate or test a scripting model as it is already available from WMI.
  • .NET management interfaces: The System.Management namespace[7] makes WMI classes available to all .NET apps and scripts written in C# or PowerShell. Beyond the WMI class design and the provider development, the Microsoft development and test teams are not required to create, validate and test new assemblies to support a new namespace in .NET as this support is already available from WMI.
  • COM interfaces: Unmanaged code in Microsoft Windows (e.g., apps written in C or C++ languages) can interact with the standard set of WMI interfaces for the Component Object Model (COM) to access WMI providers and their supported WMI classes. Developers of WMI providers can leverage the same COM interfaces in their projects to furnish said classes.
  • Remoting capabilities over DCOM and SOAP: In addition to local management via COM, WMI supports remoting via Distributed COM (DCOM) and SOAP. The latter is available in Windows Server 2003 R2 and later, through the WS-Management initiative led by Microsoft, Intel, Sun Microsystems, and Dell. This initiative allows running any scripts remotely or to consume WMI data through interfaces that handle SOAP requests and responses. WS-Management can consume everything that a WMI provider generates, although embedded objects in WMI instances were not supported until Windows Vista. WS-Management later became an integral part of PowerShell. Unlike SOAP-based remoting, DCOM-based remoting requires a proxy DLL deployed on each client machine.
  • Support for queries: WMI offers support for WQL queries.[8] This means WMI can still filter the results of a provider that doesn't implement filtering or queries.
  • Event-handling capabilities: WMI can notify a subscriber of events of interest. WMI uses the WQL to submit event queries and define the type of events to be returned. Anyone writing a WMI provider can have the benefit of this functionality at no cost for their customers. It will be up to consumers to decide how they desire to consume the management information exposed by the WMI provider.

To speed up the process of writing a WMI provider, the WMI team developed the WMI ATL Wizard to generate the code template implementing a provider. The code generated is based on the WMI class model initially designed by the developer. The WMI provider developer will be able to interface the pre-defined COM or DCOM interfaces for the WMI provider with its set of native APIs retrieving the management information to expose.

WMI is based on an industry standard called Common Information Model (CIM) defined by the Distributed Management Task Force (DMTF). The CIM class-based schema is defined by a consortium of manufacturers and software developers for the requirements of the industry. Any developer can write code that fits into this model. For instance, Intel develops WMI providers for its network adapters. HP leveraged existing WMI providers and developed custom WMI providers for its OpenView enterprise management solutions. IBM's Tivoli management suite consumes WMI. Starting with Windows XP SP2, Microsoft leverages WMI to get status information from antivirus software and firewalls.

Service

[edit]

On the Windows NT family of operating systems, WMI runs as a Windows service called WinMgmt. On the Windows 9x family, WMI runs in the context of the WinMgmt.exe executable file. On both Windows 9x and Windows NT families, WinMgmt.exe is available as a command-line utility for servicing the WMI repository.[9]

WMI tools

[edit]

Microsoft provides the following WMI tools for developers and IT pros:

  • MOF compiler (MOFComp.exe): The Managed Object Format (MOF) compiler parses a file containing MOF statements and adds the classes and objects defined in the file to the CIM repository. The MOF format is a specific syntax to define CIM class representation in an ASCII file. MOF's role for CIM is comparable to MIB's role for SNMP. MOFComp.exe is included in every WMI installation. Every definition existing in the CIM repository is initially defined in an MOF file. MOF files are located in %SystemRoot%\System32\WBEM. During the WMI setup, they are loaded in the CIM repository.
  • WMI Administrative Tools: This suite of tool consists of WMI CIM Studio, WMI Object Browser, WMI Event Registration, and WMI Event Viewer. The most important tool for a WMI provider developer is WMI CIM Studio as it helps in the initial WMI class creation in the CIM repository. It uses a web interface to display information and relies on a collection of ActiveX components installed on the system when it runs for the first time. WMI CIM Studio can:
    • Connect to a chosen system and browse the CIM repository in any namespace available.
    • Search for classes by their name, by their descriptions or by property names.
    • Review the properties, methods, and associations related to a given class.
    • See the instances available for a given class of the examined system.
    • Perform Queries in the WQL language.
    • Generate an MOF file based on selected classes.
    • Compile an MOF file to load it in the CIM repository.
  • WBEMTest.exe is a WMI tester tool delivered with WMI. This tool allows an administrator or a developer to perform most of the tasks from a graphical interface that WMI provides at the API level. Although available under all Windows NT-based operating systems, this tool is not officially supported by Microsoft. WBEMTest provides the ability to:
    • Enumerate, open, create, and delete classes.
    • Enumerate, open, create, and delete instances of classes.
    • Select a namespace.
    • Perform data and event queries.
    • Execute methods associated to classes or instances.
    • Execute every WMI operation asynchronously, synchronously or semi-asynchronously.
  • WMI command line tool (WMIC) is a scripting and automation utility that allows information retrieval and system administration via WMI, using some simple keywords (aliases). WMIC.exe is available on all Windows versions since Windows XP. Starting with Windows 10, version 21H1 and Windows Server 2022, WMIC is deprecated in favor of PowerShell.[4] In Windows 11, version 24H2, WMIC is not installed by default. A Linux port of WMIC, wmi-client, is written in Python and is based on Samba4.[10]
  • WBEMDump.exe: This command-line tool is a component of the Platform SDK and comes a corresponding Visual C++ project. The tool can show the CIM repository classes, instances, or both. It is possible to retrieve the same information WMIC retrieves. WBEMDump.exe requires more specific knowledge about WMI, as it doesn't abstract WMI as WMIC. It is also possible to execute methods exposed by classes or instances. Even if it is not a standard WMI tool delivered with the system installation, this tool can be quite useful for exploring the CIM repository and WMI features.
  • WMIDiag.vbs (discontinued): The WMI Diagnosis Tool is a VBScript for testing and validating WMI on Windows 2000 and later. This script was downloadable from Microsoft until August 2020.[11] The download includes pretty thorough documentation and the tool supports numerous switches. When run, it will generate up to four text files which: list the steps taken (the LOG file), an overview of the results (REPORT file), a statistics file (in comma separated values format), and optionally a file listing of the providers registered on the machine (PROVIDERS, also in comma separated values format). The report file that is generated includes a list of the issues identified and potential ways to fix them.

Wireless networking example

[edit]

In the .NET Framework, the ManagementClass class represents a Common Information Model (CIM) management class. A WMI class can be a Win32_LogicalDisk in the case of a disk drive, or a Win32_Process, such as a running program like Notepad.exe.

This example shows how MSNdis_80211_ServiceSetIdentifier WMI class is used to find the SSID of the Wi-Fi network that the system is currently connected to in the language C#:

ManagementClass mc = new ManagementClass("root\\WMI", "MSNdis_80211_ServiceSetIdentifier", null);
ManagementObjectCollection moc = mc.GetInstances();

foreach (ManagementObject mo in moc)
{
    string wlanCard = (string)mo["InstanceName"];
    bool active;
    if (!bool.TryParse((string)mo["Active"], out active))
    {
       active = false;
    }
    byte[] ssid = (byte[])mo["Ndis80211SsId"];
}

The MSNdis_80211_ServiceSetIdentifier WMI class is only supported on Windows XP and Windows Server 2003.

WMI driver extensions

[edit]

The WMI extensions to WDM provide kernel-level instrumentation such as publishing information, configuring device settings, supplying event notification from device drivers, and allowing administrators to set data security through a WMI provider known as the WDM provider. The extensions are part of the WDM architecture; however, they have broad utility and can be used with other types of drivers as well (such as SCSI and NDIS).

The WMI Driver Extensions service monitors all drivers and event trace providers that are configured to publish WMI or event trace information. Instrumented hardware data is provided by way of drivers instrumented for WMI extensions for WDM. WMI extensions for WDM offer a set of Windows device driver interfaces for instrumenting data within the driver models native to Windows, so OEMs and IHVs can easily extend the instrumented data set and add value to a hardware/software solution. The WMI Driver Extensions, however, are not supported by Windows Vista and later operating systems.[12]

See also

[edit]

References

[edit]
  1. ^ "WMI Redistributable for Windows NT". microsoft.com. Archived from the original on 24 February 2010. Retrieved 4 May 2018.
  2. ^ "WMI Redistributable for Windows 95 and Windows 98". microsoft.com. Archived from the original on 23 April 2007. Retrieved 4 May 2018.
  3. ^ "A Description of the Windows Management Instrumentation (WMI) Command-Line Utility (Wmic.exe)". Archived from the original on 2025-08-07.
  4. ^ a b "WMIC: WMI command-line utility". Microsoft. 8 March 2023. Archived from the original on 14 October 2023.
  5. ^ "Windows Vista Client Manageability". microsoft.com. Archived from the original on 3 March 2016. Retrieved 4 May 2018.
  6. ^ "WMI providers supported in Windows 10". Microsoft. 25 June 2017. Archived from the original on 30 September 2018. Retrieved 30 September 2018.
  7. ^ "System.Management Namespace". .NET Library. Microsoft. 7 February 2025 – via Microsoft Learn.
  8. ^ "WMI query language (WQL) via PowerShell". ravichaganti.com. 1 May 2011. Archived from the original on 12 October 2017. Retrieved 4 May 2018.
  9. ^ White, Steven (3 November 2023). "winmgmt". Windows App Development. Microsoft – via Microsoft Learn.
  10. ^ D'Vine, Rhonda. "Ubuntu – Error". packages.ubuntu.com. Archived from the original on 2 May 2017. Retrieved 4 May 2018.
  11. ^ "The WMI Diagnosis Utility -- Version 2.2". Download Center. Microsoft. 24 April 2015. Archived from the original on 6 August 2020.
  12. ^ "The Windows Vista and Windows "Longhorn" Server Developer Story: Application Compatibility Cookbook". msdn2.microsoft.com. Archived from the original on 21 April 2008. Retrieved 4 May 2018.

Further reading

[edit]
[edit]
抢七是什么意思 村支部书记是什么级别 冬至说什么祝福语 恨铁不成钢什么意思 脚趾骨折是什么感觉
红斑是什么病 武夷山在什么地方 摆地摊卖什么最赚钱而且很受欢迎 外阴瘙痒用什么药膏 牛肉馅饺子配什么菜
桃子不能和什么食物一起吃 犹太人什么意思 心阳虚吃什么中成药 hp-是什么意思 海姆立克急救法是什么
1.4是什么星座 梦见掉牙齿是什么征兆 怀孕前壁和后壁有什么区别 采阴补阳是什么意思 10a是什么意思
义眼是什么hcv8jop1ns9r.cn 姓贾的男孩取什么名字好hcv8jop4ns5r.cn 腰肌劳损是什么原因引起的hcv8jop2ns7r.cn 诞辰什么意思xianpinbao.com 意蕴什么意思hcv7jop7ns3r.cn
夏天摆摊适合卖什么ff14chat.com 断生是什么意思啊naasee.com 小便黄是什么原因引起的hcv9jop5ns2r.cn 7o年属什么生肖wzqsfys.com 好逸恶劳什么意思hcv8jop3ns9r.cn
腿为什么会抽筋hcv9jop6ns9r.cn 七月份怀孕预产期是什么时候clwhiglsz.com 风水是什么意思hcv9jop4ns2r.cn 上颌窦炎症是什么病zsyouku.com 咬牙齿是什么原因hcv8jop2ns4r.cn
木是什么颜色hcv8jop7ns7r.cn 眼睛出现飞蚊症什么原因怎么办hcv8jop5ns3r.cn 日语一库一库是什么意思dayuxmw.com 12月10日什么星座hcv8jop0ns6r.cn 5月份出生的是什么星座hcv8jop4ns6r.cn
百度