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), 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).
- Scripting API Object Model
- Document Conventions for the Scripting API
- Scripting API Objects
- Scripting API Constants
Related topics
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про