When using Cake.Powershell to run a script on a remote machine it can be useful to have the ability to specify the AuthenticationMechanism used when connecting to the remote machine. By default, Kerberos is used, which has some limitations. Specifically, scripts or processes invoked on the remote machine cannot use WMI. However, when the AuthenticationMechanism is set to Credssp this scenario works as desired.
The Issue
When using Cake.Powershell to run a script on a remote machine it can be useful to have the ability to specify the AuthenticationMechanism used when connecting to the remote machine. By default, Kerberos is used, which has some limitations. Specifically, scripts or processes invoked on the remote machine cannot use WMI. However, when the AuthenticationMechanism is set to Credssp this scenario works as desired.
Discovered using version 0.4.2.
I will submit a PR for this shortly.