Most likely you can catch the error using an eval block. Otherwise, I'd just ping the machine before trying to connect to it:
select responsetime from Win32_PingStatus where Address = '192.168.1.1'
In reply to Re: How do I get past "WMI Connection failed" errors
by Corion
in thread How do I get past "WMI Connection failed" errors
by StarkRavingCalm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |