Open in the explorer

Allow delegating fresh credentials

Autoriser la délégation de nouvelles informations d’identification

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Credentials Delegation FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Délégation d’informations d’identification
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
CredSsp.admx
Internal name
CredSsp/AllowFreshCredentials

Explanation

This policy setting applies to applications using the Cred SSP component (for example: Remote Desktop Connection).

This policy setting applies when server authentication was achieved via a trusted X509 certificate or Kerberos.

If you enable this policy setting, you can specify the servers to which the user's fresh credentials can be delegated (fresh credentials are those that you are prompted for when executing the application).

If you do not configure (by default) this policy setting, after proper mutual authentication, delegation of fresh credentials is permitted to Remote Desktop Session Host running on any machine (TERMSRV/*).

If you disable this policy setting, delegation of fresh credentials is not permitted to any machine.

Note: The "Allow delegating fresh credentials" policy setting can be set to one or more Service Principal Names (SPNs). The SPN represents the target server to which the user credentials can be delegated. The use of a single wildcard is permitted when specifying the SPN.

For Example:
TERMSRV/host.humanresources.fabrikam.com
Remote Desktop Session Host running on host.humanresources.fabrikam.com machine
TERMSRV/* Remote Desktop Session Host running on all machines.
TERMSRV/*.humanresources.fabrikam.com Remote Desktop Session Host running on all machines in .humanresources.fabrikam.com

French text from Windows 11 26H2

Ce paramètre de stratégie s’applique aux applications utilisant le composant Cred SSP (par exemple : Connexion Bureau à distance).

Il est appliqué lorsque l’authentification du serveur est effectuée via un certificat X509 approuvé ou Kerberos.

Si vous activez ce paramètre de stratégie, vous pouvez spécifier à quels serveurs les nouvelles informations d’identification de l’utilisateur peuvent être déléguées (les nouvelles informations d’identification sont celles qui vous sont demandées lors de l’exécution de l’application).

Si vous ne configurez pas (par défaut) ce paramètre de stratégie, après une authentification mutuelle appropriée, la délégation de nouvelles informations d’identification est autorisée à l’Hôte de session Bureau à distance exécuté sur n’importe quel ordinateur (TERMSRV/*).

Si vous désactivez ce paramètre de stratégie, la délégation de nouvelles informations d’identification n’est pas autorisée sur les ordinateurs.

Remarque : le paramètre de stratégie « Autoriser la délégation de nouvelles informations d’identification » peut prendre la valeur d’un ou de plusieurs noms de principal du service (SPN, Service Principal Name). Le SPN représente le serveur cible auquel les informations d’identification de l’utilisateur peuvent être déléguées. L’utilisation d’un caractère générique unique est autorisée lors de la spécification du SPN.

Par exemple :
TERMSRV/host.humanresources.fabrikam.com
Hôte de session Bureau à distance exécuté sur l’ordinateur host.humanresources.fabrikam.com
TERMSRV/* Hôte de session Bureau à distance exécuté sur tous les ordinateurs.
TERMSRV/*.humanresources.fabrikam.com Hôte de session Bureau à distance exécuté sur tous les ordinateurs dans .humanresources.fabrikam.com

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredentialsDelegation
Value name
AllowFreshCredentials
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: CredSsp/AllowFreshCredentials
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowFreshCredentials' -Value 1 -Type DWord
# Concatenate OS defaults with input above
# unchecked: 0
Set-ItemProperty -Path $k -Name 'ConcatenateDefaults_AllowFresh' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentials'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Add servers to the list
$values = @('<value1>', '<value2>')  # Replace the values with your own
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }

Disable

# Disable: CredSsp/AllowFreshCredentials
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowFreshCredentials' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": CredSsp/AllowFreshCredentials
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation'
Remove-ItemProperty -Path $k -Name 'AllowFreshCredentials' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConcatenateDefaults_AllowFresh' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentials'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinue

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Add servers to the list:Ajoutez des serveurs à la liste :AllowFreshCredentials_NameList (table)listSoftware\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentialsValues named “” + number · additiveREG_SZ (values under the key)
Concatenate OS defaults with input aboveConcaténer les valeurs par défaut du système d’exploitation supérieures àConcatenateDefaults_AFCCheck boxbooleanConcatenateDefaults_AllowFreshREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0

Availability