Open in the explorer

Allow delegating default credentials with NTLM-only server authentication

Autoriser la délégation d’informations d’identification par défaut avec l’authentification de serveur NTLM uniquement

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/AllowDefCredentialsWhenNTLMOnly

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

If you enable this policy setting, you can specify the servers to which the user's default credentials can be delegated (default credentials are those that you use when first logging on to Windows).

If you disable or do not configure (by default) this policy setting, delegation of default credentials is not permitted to any machine.

Note: The "Allow delegating default credentials with NTLM-only server authentication" 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 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

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 serveur est effectuée via NTLM.

Si vous activez ce paramètre de stratégie, vous pouvez spécifier à quels serveurs les informations d’identification par défaut de l’utilisateur peuvent être déléguées (les informations d’identification par défaut étant celles que vous utilisez lors de la première ouverture de session dans Windows).

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas (par défaut), la délégation des informations d’identification par défaut n’est autorisée sur aucun ordinateur.

Remarque : le paramètre de stratégie « Autoriser la délégation d’informations d’identification par défaut avec l’authentification de serveur NTLM uniquement » peut prendre la valeur d’un ou de plusieurs noms de principal du service (SPN). 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
AllowDefCredentialsWhenNTLMOnly
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/AllowDefCredentialsWhenNTLMOnly
$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 'AllowDefCredentialsWhenNTLMOnly' -Value 1 -Type DWord
# Concatenate OS defaults with input above
# unchecked: 0
Set-ItemProperty -Path $k -Name 'ConcatenateDefaults_AllowDefNTLMOnly' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowDefCredentialsWhenNTLMOnly'
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/AllowDefCredentialsWhenNTLMOnly
$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 'AllowDefCredentialsWhenNTLMOnly' -Value 0 -Type DWord

Revert to "Not configured"

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

Options (2)

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

Availability