Click to Rate and Give Feedback
MSDN
MSDN Library
WMI Reference
Scripting API for WMI

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), Microsoft JScript, or any other scripting language that supports Microsoft ActiveX scripting technologies.

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).

See Also

WMI Reference
WMI Return Codes


Send comments about this topic to Microsoft

Build date: 9/29/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Scripting WMI with PowerShell      Thomas Lee   |   Edit   |  

In addition to the above, you can also use PowerShell to access WMI. The Get-WMI cmdlet and the three type accelerators ([wmi], [wmiclass], and [wmisearcher]) enable basic administrative access to WMI.

Additional WMI features are added in PowerShell V2, currently in beta testing. V2 CTP 1 has been released, and a CTP 2 is due out soon.

Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker