You need to declare all variables that you have in your script.

Adding Dim $wmiColl will fix this one error but there might be more undeclared variables.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.