Hello

I am working on a small app to get memory info from machines on a network. It works well, but every now and then it hits a machine it can't connect to (no admin access or various reasons), and I get an error at:

VB Code:
  1. Set objWMIService = GetObject("winmgmts:"  & "{impersonationLevel=impersonate}!\\" & lstMachines.List(i) & "\root\cimv2")

I'm not familiar with WMI (I found this code in a search here). My question is, is there a way to check if it can get the info it needs off the machine BEFORE I set objWMIService to it? I tried things like "If GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & lstMachines.List(i) & "\root\cimv2") = 0" before it, but of course as I have no clue what I'm doing it generates an "Object Doesn't Support This Property of Method" error

Thanks for any help