Open in the explorer

Deny delegating fresh credentials

Refuser 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/DenyFreshCredentials

Explanation

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

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

If you disable or do not configure (by default) this policy setting, this policy setting does not specify any server.

Note: The "Deny 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 cannot be delegated. The use of a single wildcard character 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

This policy setting can be used in combination with the "Allow delegating fresh credentials" policy setting to define exceptions for specific servers that are otherwise permitted when using wildcard characters in the "Allow delegating fresh credentials" server list.

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).

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

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas (par défaut), il n’indique aucun serveur.

Remarque : le paramètre de stratégie « Refuser 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 ne peuvent pas ê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

Ce paramètre de stratégie peut être utilisé avec le paramètre « Autoriser la délégation de nouvelles informations d’identification » pour définir des exceptions pour des serveurs spécifiques étant normalement autorisés lors de l’utilisation de caractères génériques dans la liste de serveurs « Autoriser la délégation de nouvelles informations d’identification ».

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredentialsDelegation
Value name
DenyFreshCredentials
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/DenyFreshCredentials
$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 'DenyFreshCredentials' -Value 1 -Type DWord
# Concatenate OS defaults with input above
# unchecked: 0
Set-ItemProperty -Path $k -Name 'ConcatenateDefaults_DenyFresh' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation\DenyFreshCredentials'
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/DenyFreshCredentials
$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 'DenyFreshCredentials' -Value 0 -Type DWord

Revert to "Not configured"

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

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Add servers to the list:Ajoutez des serveurs à la liste :DenyFreshCredentials_NameList (table)listSoftware\Policies\Microsoft\Windows\CredentialsDelegation\DenyFreshCredentialsValues 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_DFCCheck boxbooleanConcatenateDefaults_DenyFreshREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0

Availability