Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The WMI scripting reference contains definitions for the WMI Scripting API. Use this API if writing applications with Microsoft Visual Basic, Visual Basic for Applications, Visual Basic Scripting Edition (VBScript), or any other scripting language that supports active scripting technologies.
Note
PowerShell is also available for scripting with WMI. The Get-WMI cmdlet and the three type accelerators ([wmi], [wmiclass], and [wmisearcher]) enable basic administrative access to WMI.
WMI scripting objects, except for SWbemDateTime are not marked safe for scripting for scripts running on HTML pages in Internet Explorer. Therefore, unless the security level within Internet Explorer is lowered, the script will fail. SWbemDateTime is marked safe for initialization and scripting. However, use all WMI scripting objects in GetObject and CreateObject calls on server-side code in Active Server Pages (ASP).
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayTraining
Module
Query and manipulate repository objects by using CIM and WMI methods - Training
This module explains how to use CIM and WMI to make changes by using methods. The methods available vary depending on the type of object. Discovering and understanding these methods is an important step in querying and manipulating the repository information.