I have a question that I would like to get some feedback on. I am working on a script to pull some WMI data about all the computers on my network (only about 50-60 - small non-profit agency that I work for). I have the script working after getting a bit of help from the Usenet group. But now am finding some "issues" (and I use that term loosely) with our AD structure and how the Objects are organized. But thats another whole issue.
The question is what is the best way for "skipping over" computers that may be listed in an AD group but are OFFLINE (off the network). I was given the suggestion of the '-errorAction silentlyContinue' of gwmi which seemed to get me a bit farther but the script seems to still error out.
I am using get-QADcomputer to get the list and then passing it into gwmi and then selecting my fields that I need from the WMI Object. Eventually I will output this for my use through either an email or a file on the network to view.
Thanks.
Tim Parker