Sign in to follow this  
Followers 0
Ghost21

Error Handling a WMI QUERY

4 posts in this topic

When I do a Query requests on a Network service how can goto the next query or function if there is a error ?

I keep getting this when I scan a certain PC On the network...

'

$colItems = $objWMIService.ExecQuery ("SELECT * FROM Win32_NetworkAdapterConfiguration", "WQL", _ $wbemFlagReturnImmediately + $wbemFlagForwardOnly)

$colItems = $objWMIService^ ERROR

ON error exitloop or something ????

Share this post


Link to post
Share on other sites



Do you have the COM event handler setup in your script as described in the Helpfile ?

:P

Probley not!!! a link ???

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0