Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error when connecting to wmi on remote computer

Status
Not open for further replies.

chouck

MIS
Jan 30, 2005
32
US
i'm throwing this out there for anyone who has an idea. basically what is happening is that i have a script that runs against a set of pc's on my network. it tries to remotely connect to the wmi object and then retrieves information from the remote pc's.

my problem is that when it comes across a machine that it cannot connect with it gives me an error "the remote server machine does not exist or is unavailable: GetObject"

the only way i can bypass it is to put "on error resume next" at the start of the script, but i would like to know if there is a way to record that error with the pcname instead of just bypassing it. any help is appreciated, curt
 
Simply play with the Err object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top