[Solved] Tee-object cannot bind argument to parameter ‘Variable’

This one is not really complicated. You must just open your eyes because this parameter is working differently.

Tee-Object Cannot bind argument to parameter 'Variable' because ParameterBindingValidationException ParameterArgumentValidationErrorNullNotAllowed

Usually, you pass parameters with the variable name preceded by a $ dollar sign.

But for the Tee-Object cmdlet, you must omit the $ dollar sign for the Variable parameter, and it works like a charm!

Tee-Object variable

Leave a comment