Introduction

Enable-WSManCredSSP is a Windows PowerShell command that enables Credential Security Service Provider (CredSSP) authentication on a client computer. It is used to establish a secure connection between two computers over a network. This command is part of the Windows Remote Management (WinRM) service, which is used to manage remote computers. It is important to note that CredSSP authentication is not enabled by default, and must be enabled with this command before it can be used.

Syntax

The syntax for the Enable-WSManCredSSP command is as follows:

  • Enable-WSManCredSSP [-Role] <String> [-DelegateComputer] <String> [-Force] [-WhatIf] [-Confirm]

Parameters

The parameters for the Enable-WSManCredSSP command are as follows:

Parameter Description
-Role Specifies the role of the computer. Valid values are “Client” and “Server”.
-DelegateComputer Specifies the computer to which the credentials are delegated.
-Force Forces the command to run without prompting for confirmation.
-WhatIf Shows what would happen if the command were to run.
-Confirm Prompts for confirmation before running the command.

Inputs

The Enable-WSManCredSSP command does not accept any input.

Outputs

The Enable-WSManCredSSP command does not produce any output.

Examples

The following example shows how to enable CredSSP authentication on a client computer:

  • Enable-WSManCredSSP -Role Client

The following example shows how to enable CredSSP authentication on a server computer and delegate credentials to a specific computer:

  • Enable-WSManCredSSP -Role Server -DelegateComputer ComputerName

Tips

When using the Enable-WSManCredSSP command, there are a few tips to keep in mind:

  • The -Role parameter must be specified. If it is not specified, the command will fail.
  • The -DelegateComputer parameter is only required when enabling CredSSP authentication on a server computer.
  • The -Force parameter can be used to bypass the confirmation prompt.
  • The -WhatIf parameter can be used to see what would happen if the command were to run.
  • The -Confirm parameter can be used to prompt for confirmation before running the command.

Leave a Reply