Restrict delegation of credentials to remote servers
Limiter la délégation d’informations d’identification à des serveurs distants
Explanation
When running in Restricted Admin or Remote Credential Guard mode, participating apps do not expose signed in or supplied credentials to a remote host. Restricted Admin limits access to resources located on other servers or networks from the remote host because credentials are not delegated. Remote Credential Guard does not limit access to resources because it redirects all requests back to the client device.
Participating apps:
Remote Desktop Client
If you enable this policy setting, the following options are supported:
Restrict credential delegation: Participating applications must use Restricted Admin or Remote Credential Guard to connect to remote hosts.
Require Remote Credential Guard: Participating applications must use Remote Credential Guard to connect to remote hosts.
Require Restricted Admin: Participating applications must use Restricted Admin to connect to remote hosts.
If you disable or do not configure this policy setting, Restricted Admin and Remote Credential Guard mode are not enforced and participating apps can delegate credentials to remote devices.
Note: To disable most credential delegation, it may be sufficient to deny delegation in Credential Security Support Provider (CredSSP) by modifying Administrative template settings (located at Computer Configuration\Administrative Templates\System\Credentials Delegation).
Note: On Windows 8.1 and Windows Server 2012 R2, enabling this policy will enforce Restricted Administration mode, regardless of the mode chosen. These versions do not support Remote Credential Guard.
Lors d’une exécution en mode d’administration restreinte ou Credential Guard à distance, les applications participantes n’exposent pas les informations d’identification fournies ou utilisées pour la connexion à un hôte distant. Le mode d’administration restreinte limite l’accès aux ressources situées sur d’autres serveurs ou réseaux vis-à-vis de l'hôte distant car les informations d’identification ne sont pas déléguées. Credential Guard à distance ne limite pas l’accès aux ressources car il redirige de nouveau toutes les demandes vers l’appareil client.
Applications participantes :
Client Bureau à distance
Si vous activez ce paramètre de stratégie, les options suivantes sont prises en charge :
Limiter la délégation d’informations d’identification : les applications participantes doivent utiliser le mode d’administration restreinte ou Credential Guard à distance pour se connecter aux hôtes distants.
Requérir Credential Guard à distance : les applications participantes doivent utiliser Credential Guard à distance pour se connecter aux hôtes distants
Requérir une administration restreinte : les applications participantes doivent utiliser le mode d'administration restreinte pour se connecter aux hôtes distants.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, le mode d’administration restreinte et Credential Guard à distance ne sont pas appliqués, et les applications participantes peuvent déléguer les informations d’identification aux appareils distants.
Remarque : pour désactiver la délégation de la plupart des informations d’identification, il peut être suffisant de refuser la délégation dans le protocole CredSSP (Credential Security Support Provider) en modifiant les paramètres des modèles d’administration (situés dans Configuration ordinateur\Modèles d’administration\Système\Délégation d’informations d’identification).
Remarque : sur Windows 8.1 et Windows Server 2012 R2, l’activation de cette stratégie applique le mode d’administration restreinte, quel que soit le mode choisi. Ces versions ne prennent pas en charge Credential Guard à distance.
Use cases
Enforces, on the Remote Desktop client, one of the two modes that avoid exposing credentials to the remote host: “Require Restricted Admin” (1), “Require Remote Credential Guard” (2) or “Restrict credential delegation” (3), which prefers Remote Credential Guard and falls back to Restricted Admin. The choice depends on the need: Remote Credential Guard keeps SSO to other resources, whereas with Restricted Admin the session runs as the remote host’s identity, with no SSO or multi-hop.
Remote Credential Guard requires Kerberos (no NTLM fallback), the mstsc.exe app and a direct connection, not through a Remote Desktop Gateway or Connection Broker; the user must be in the Remote Desktop Users group. Restricted Admin requires Administrators group membership and remains Microsoft’s recommendation for helpdesk scenarios; the target host must have enabled delegation of non-exportable credentials.
Microsoft source: Remote Credential Guard
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredentialsDelegation- Value name
RestrictedRemoteAdministration
| 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/RestrictedRemoteAdministration
$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 'RestrictedRemoteAdministration' -Value 1 -Type DWord
# Use the following restricted mode
# Possible options:
# Restrict Credential Delegation = 3
# Require Remote Credential Guard = 2
# Require Restricted Admin = 1
Set-ItemProperty -Path $k -Name 'RestrictedRemoteAdministrationType' -Value 3 -Type DWordDisable
# Disable: CredSsp/RestrictedRemoteAdministration
$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 'RestrictedRemoteAdministration' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": CredSsp/RestrictedRemoteAdministration
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CredentialsDelegation'
Remove-ItemProperty -Path $k -Name 'RestrictedRemoteAdministration' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'RestrictedRemoteAdministrationType' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Use the following restricted mode:Utiliser le mode restreint suivant :RestrictedRemoteAdministrationDrop | Drop-down listenum | RestrictedRemoteAdministrationType | REG_DWORD | Default choice (UI): #0
|