Get Instance or Class
The swbemservices.Get method is often used within WMI. There are two purposes to this method. First, you can use this method to get a specific managed object. This code gets you the Northwind database set swbemLocator ' Make the connection and get services-Instance 3 ' Build the objectPath to the Northwind-database strObjectPath amp _ ' Get the instance of the Northwind-database set sWbemObject sWbemservices.Get strObjectPath ' Echoes the disk-space available for the db-storage wscript.Echo...
The SWbemObject Object
When an instance is represented in an SWbemObject, the properties and methods that are exposed by the instance are available through the collection references Methods_ and Properties_. These are implemented as properties of the SWbemObject, but they support direct access. Thanks to direct access, you never need to explicitly go through the collection references in order to call a method or to read or write a property. It is enough for you to call a method, for example, as if the method were...
Info Lfo
In s to n ceM od if i c ati n n Eve nt NamespaceModrficat nEvent When a namespace is modified NamespaceModrficat nEvent When a namespace is modified in all namespaces. You can poll a base class for the events that are provided by its derivatives. For example, polling _InstanceOperationEvent will return notifications on _InstanceCreationEvent, _Instance DeletionEvent ,and _InstanceModificationEvent. You can also be more direct and poll only _InstanceCreationEvent or any other derivative of an...