Skip to content

Instantly share code, notes, and snippets.

@vyusufcan
Last active March 26, 2025 10:54
Show Gist options
  • Save vyusufcan/a304aaa95c4ec3f08050932df8190b33 to your computer and use it in GitHub Desktop.
Save vyusufcan/a304aaa95c4ec3f08050932df8190b33 to your computer and use it in GitHub Desktop.
Enable-WSManCredSSP
Enable-WSManCredSSP -Role "Server" -Force
Enable-WSManCredSSP -Role client -DelegateComputer * -Force
Set-Item -Path "wsman:\localhost\service\auth\credSSP" -Value $True -Force
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation -Name AllowFreshCredentialsWhenNTLMOnly -Force
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentialsWhenNTLMOnly -Name 1 -Value * -PropertyType String
The Enable-WSManCredSSP cmdlet enables CredSSP authentication on a client or on a server computer. When CredSSP authentication is used, the user credentials are passed to a remote computer to be authenticated. This type of authentication is designed for commands that create a remote session from another remote session. For example, if you want to run a background job on a remote computer, use this kind of authentication.
Enable-WSManCredSSP can enable CredSSP on a Client or a Server. To enable CredSSP on a client, specify Client in the Role parameter. Clients delegate explicit credentials to a server when server authentication is achieved. To enable CredSSP on a server, specify Server in the Role parameter. A server acts as a delegate for clients. For more details, see Role in the Parameters section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment