Allow delegating default credentials
Autoriser la délégation d’informations d’identification par défaut
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 by using a trusted X509 certificate or Kerberos.
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).
The policy becomes effective the next time the user signs on to a computer running Windows.
If you disable or do not configure (by default) this policy setting, delegation of default credentials is not permitted to any computer. Applications depending upon this delegation behavior might fail authentication. For more information, see KB.
FWlink for KB:
http://go.microsoft.com/fwlink/?LinkId=301508
Note: The "Allow delegating default 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 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
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 à l’aide d’un certificat X509 approuvé ou Kerberos.
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).
Cette stratégie prend effet lors de la prochaine connexion de l’utilisateur à un ordinateur exécutant 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. L’authentification des applications qui dépendent de ce comportement de délégation risque d’échouer. Pour plus d’informations, voir l’article de la Base des connaissances.
FWlink pour Base des connaissances :
http://go.microsoft.com/fwlink/?LinkId=301508
Remarque : le paramètre « Autoriser la délégation d’informations d’identification par défaut » 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
AllowDefaultCredentials
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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/AllowDefaultCredentials
$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 'AllowDefaultCredentials' -Value 1 -Type DWord
# Concatenate OS defaults with input above
# unchecked: 0
Set-ItemProperty -Path $k -Name 'ConcatenateDefaults_AllowDefault' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowDefaultCredentials'
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/AllowDefaultCredentials
$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 'AllowDefaultCredentials' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": CredSsp/AllowDefaultCredentials
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation'
Remove-ItemProperty -Path $k -Name 'AllowDefaultCredentials' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConcatenateDefaults_AllowDefault' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowDefaultCredentials'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (2)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Add servers to the list:Ajoutez des serveurs à la liste :AllowDefaultCredentials_Name | List (table)list | Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowDefaultCredentialsValues named “” + number · additive | REG_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_ADC | Check boxboolean | ConcatenateDefaults_AllowDefault | REG_DWORD | Default (UI): true Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |