[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 Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s