powershellauthenticationntlmpowershell-remotingcredssp

In PowerShell, which authentication scheme should I use?


When using PowerShell remoting (Using the Invoke-Command cmdlet for example), an authentication scheme is required.

The options are Kerberos, CredSSP, NTLM and Negotiate.

What is the difference between them? What should I use?


Solution

  • Kerberos

    Pros:

    Cons:

    CredSSP

    Somewhat secure – the credentials are being passed to the remote server and may be captured there.

    Pros:

    Cons:

    NTLM

    Pros:

    Cons:

    Negotiate

    Tries Kerberos. If fails, fallbacks to NTLM. Sometimes secure, sometimes isn’t.

    Pros:

    Cons: