IBM Support

Secret Server - Configuring CredSSP for use with WinRM/PowerShell

How To


Summary

In some cases a PowerShell script may need to access resources outside of the Secret Server machine. This requires that the credentials be delegated to the target machine. Secret Server runs PowerShell scripts using WinRM, which does not allow credential delegation by default. In order to allow credential delegation, the Secret Server machine must have CredSSP enabled. The Credential Security Support Provider (CredSSP) is a Security Support Provider that allows a client to delegate credentials to a target server.

Here are some examples of scenarios that will require CredSSP:

The script needs to query or update a value in Active Directory.
The script needs to query or update a value in a SQL Server instance.

Steps

Enabling CredSSP for WinRM in Secret Server:
  1. Go to Administration -> Configuration.
  2. Click Edit.
  3. Check "Enable CredSSP Authentication for WinRM" and Save.
Configuring CredSSP for WinRM on the Secret Server Machine:
  1. Log on to the machine that is running Secret Server.
  2. Run Windows PowerShell as an Administrator.
  3. Enable client-side CredSSP by running:
    Enable-WSManCredSSP -Role Client -DelegateComputer <Secret Server fully qualified machine name>
  4. Enable server-side CredSSP by running:
    Enable-WSManCredSSP -Role Server
Ensure that the "Allow Delegating Fresh Credentials" Group Policy setting is enabled and is not disabled by Domain Policy:
  1. Open gpedit.msc on your Secret Server machine.
  2. Navigate to Computer Settings > Administrative Templates > System > Credentials Delegation
  3. Edit the "Allow Delegating Fresh Credentials" setting.
  4. Verify that it is Enabled.
  5. Click "Show..."
  6. Verify that the list contains an entry that begins with "wsman/" and ends with the fully qualified machine name of the Secret Server machine.
  7. Restart the Secret Server machine.

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSWHLP","label":"IBM Security Secret Server"},"Component":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
20 November 2019

UID

ibm11109889