Scripting API Objects

The Scripting API for WMI reference describes each scripting object using a specific syntax. For an explanation of this syntax, see Document Conventions for the Scripting API.

The following table lists WMI scripting objects and how they are used.

ObjectDescription
SWbemDateTimeConstructs and parses CIM datetime values. This is a helper object that is available in Windows XP.
SWbemEventSourceRetrieves events in conjunction with SWbemServices.ExecNotificationQuery.
SWbemLastErrorProvides extended error information when an error occurs.
SWbemLocatorObtains an SWbemServices object that can get access to WMI on a particular host computer.
SWbemMethodContains a single WMI method definition.
SWbemMethodSetGets a collection of SWbemMethod objects.
SWbemNamedValueContains a single named value.
SWbemNamedValueSetGets access to a collection of SWbemNamedValue objects.
SWbemObjectContains and manipulates a single WMI object class or instance.
SWbemObjectExExtends the functionality of SWbemObject. This object adds the Refresh method for SWbemRefresher objects.
Windows 2000, Windows NT 4.0, and Windows Me/98/95:  This object is not available.
SWbemObjectPathGenerates and validates an object path.
SWbemObjectSetGets access to a collection of SWbemObject objects.
SWbemPrivilegeSets or clears a privilege.
SWbemPrivilegeSetGets access to a collection of SWbemPrivilege objects.
SWbemPropertyContains a single WMI property.
SWbemPropertySetGets access to a collection of SWbemProperty objects.
SWbemQualifierContains a single property qualifier.
SWbemQualifierSetGets access to a collection of SWbemQualifier objects.
SWbemRefresherCollects and updates object property values in one operation.
Windows 2000, Windows NT 4.0, and Windows Me/98/95:  This object is not available.
SWbemRefreshableItemRepresents a single refreshable element in an SWbemRefresher object, such as a property.
Windows 2000, Windows NT 4.0, and Windows Me/98/95:  This object is not available.
SWbemSecurityManages security settings such as Component Object Model (COM) Privileges, AuthenticationLevel, and ImpersonationLevel.
SWbemServicesCreates, updates, and retrieves instances or classes.
SWbemServicesExExtends the functionality of SWbemServices. This object adds the Put and PutAsync methods to allow a class or instance to be saved to multiple namespaces.
Windows 2000, Windows NT 4.0, and Windows Me/98/95:  This object is not available.
SWbemSinkReceives the results of asynchronous operations and event notifications, which are used by client applications.

 

Send comments about this topic to Microsoft

Build date: 11/3/2009

Tags :


Page view tracker