Windows Management Instrumentation (WMI)
Updated: June 24, 2013
Applies To: Windows Server 2012 R2, Windows Server 2012
IIS 8 uses Windows Management Instrumentation (WMI) to build scripts for Web administration. The IIS 8 WMI provider namespace, WebAdministration, contains classes and methods that enable you to script administration of web sites, web applications, and their associated objects and properties.
With appropriate delegation settings, you can use WMI scripts in IIS 8 to access, read, and modify key configuration files such as ApplicationHost.config and Web.confg. You can add or remove modules at the global or section level, and configure commonplace features such as custom HTTP errors, Mime Maps, SSL bindings, and ASP settings by using the IIS 8 WMI provider.
WMI scripting continues to be important in IIS 8 for automating frequently repeated tasks such as creating web sites, but it can also take advantage of the new features exposed by the Runtime Status and Control API (RSCA) to monitor and diagnose sites. For example, you can monitor HTTP requests, worker processes, application pools, and application domains by using WMI scripting. You can also access the new diagnostics and troubleshooting features in IIS 8, such as failed request tracing, by scripting the IIS 8 WMI provider.