Export (0) Print
Expand All
3 out of 7 rated this helpful - Rate this topic

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.

Members

The SWbemServices object has these types of members:

Methods

The SWbemServices object has these 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 has these properties.

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 client

Windows XP

Minimum supported server

Windows Server 2003

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

See also

Scripting API Objects
Calling a Method

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.