LucD
Leadership
Leadership

You are mixing two things here.

The host connection state with the Set-VMHost and the host authentication mechanism with the Set-VMHostAuthentication.

The Set-VMHost cmdlet will output a VMhost object, the Set-VMHostAuthentication cmdlet expects a VMHostAuthentication object in the pipeline.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference