
106 Part II: WMI Queries and Events
Quick Check
Q: Why would you use an SWbemEventSource object?
A: You use the SWbemEventSource object to receive events from an event query.
Q: Once you have created an SWbemEventSource object, which method is available to
your script?
A: Only one method is available from the SWbemEventSource object—the NextEvent method.
Q: If you do not supply a parameter to the NextEvent method when you call it, how long
will the script wait for an event to occur?
A: If no parameter is supplied to the NextEvent method, the script will wait forever.
Working with SWbemServices
We discussed the SWbemServices object in