Click to Rate and Give Feedback
MSDN
MSDN Library
WMI Reference
SWbemServices
SWbemServices Object

You can use the methods of an SWbemServices object to perform operations against a namespace on either a local host or a remote host. This object cannot be created by the VBScript CreateObject call.

Methods

The SWbemServices object defines the following methods.

MethodDescription

AssociatorsOf

Returns a collection of objects (classes or instances) that are associated with a specified object.

AssociatorsOfAsync

Asynchronously returns a collection of objects (classes or instances) that are associated with a specified object.

Delete

Deletes the class or instance that is specified in the object path.

DeleteAsync

Asynchronously deletes the class or instance that is specified in the object path.

ExecMethod

Executes a method that is exported by a method provider.

ExecMethodAsync

Asynchronously executes a method that is exported by a method provider.

ExecNotificationQuery

Executes a query to receive events.

ExecNotificationQueryAsync

Asynchronously executes a query to receive events.

ExecQuery

Executes a query to retrieve objects.

ExecQueryAsync

Asynchronously executes a query to retrieve objects.

Get

Retrieves an object, that is either a class definition or an instance, based on the object path.

GetAsync

Asynchronously retrieves an object, that is either a class definition or an instance, based on the object path.

InstancesOf

Returns the instances of a specified class according to the user-specified selection criteria.

InstancesOfAsync

Asynchronously returns the instances of a specified class according to the user-specified selection criteria.

ReferencesTo

Returns a collection of all association classes or instances that refer to a specific source class or instance.

ReferencesToAsync

Asynchronously returns a collection of all association classes or instances that refer to a specific class or instance.

SubclassesOf

Returns a SWbemObjectSet object.

SubclassesOfAsync

Asynchronously returns a collection of subclasses for a specified class.

 

Properties

The SWbemServices object defines the following property.

PropertyAccess typeDescription

Security_

Read-only

Used to get or set the security settings for an SWbemServices object.

 

Remarks

The methods can be called in either the synchronous mode, the asynchronous mode, or the semisynchronous mode. For more information see Calling a Method.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
Type LibraryWbemdisp.tlb
DLLWbemdisp.dll

See Also

Scripting API Objects
Calling a Method

Send comments about this topic to Microsoft

Build date: 11/3/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker