• I think that your error does not occur (but may exist) in one of the lines of code supplied. Can you supply more context i.e. more lines of code before and after?

    Which line is highlighted as having an error?

    Are you using PowerShell ISE? It can help.

    Gaz

    -- Stop your grinnin' and drop your linen...they're everywhere!!!