Prompt for credentials on the client computer
Demander des informations d’identification sur l’ordinateur client
Explanation
This policy setting determines whether a user will be prompted on the client computer to provide credentials for a remote connection to an RD Session Host server.
If you enable this policy setting, a user will be prompted on the client computer instead of on the RD Session Host server to provide credentials for a remote connection to an RD Session Host server. If saved credentials for the user are available on the client computer, the user will not be prompted to provide credentials.
Note: If you enable this policy setting in releases of Windows Server 2008 R2 with SP1 or Windows Server 2008 R2, and a user is prompted on both the client computer and on the RD Session Host server to provide credentials, clear the Always prompt for password check box on the Log on Settings tab in Remote Desktop Session Host Configuration.
If you disable or do not configure this policy setting, the version of the operating system on the RD Session Host server will determine when a user is prompted to provide credentials for a remote connection to an RD Session Host server. For Windows Server 2003 and Windows 2000 Server a user will be prompted on the terminal server to provide credentials for a remote connection. For Windows Server 2008 and Windows Server 2008 R2, a user will be prompted on the client computer to provide credentials for a remote connection.
Ce paramètre de stratégie détermine si un utilisateur est invité à fournir sur l’ordinateur client des informations d’identification pour établir une connexion à distance à un serveur Hôte de session Bureau à distance.
Si vous activez ce paramètre de stratégie, un utilisateur est invité à fournir sur l’ordinateur client, plutôt que sur le serveur Hôte de session Bureau à distance, des informations d’identification pour établir une connexion à distance à un serveur Hôte de session Bureau à distance. Si les informations d’identification de l’utilisateur sont enregistrées sur l’ordinateur client, l’utilisateur n’est pas invité à les fournir de nouveau.
Remarque : si vous activez ce paramètre de stratégie dans des versions de Windows Server 2008 R2 avec SP1 ou Windows Server 2008 R2 et qu’un utilisateur est invité, sur l’ordinateur client et sur le serveur Hôte de session Bureau à distance, à fournir des informations d’identification, désactivez la case à cocher Toujours demander un mot de passe dans l’onglet Paramètres d’ouverture de session de l’outil Configuration d’hôte de session Bureau à distance.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, la version du système d’exploitation du serveur Hôte de session Bureau à distance détermine à quel moment un utilisateur est invité à fournir des informations d’identification pour établir une connexion à distance à un serveur Hôte de session Bureau à distance. Pour Windows Server 2003 et Windows 2000 Server, un utilisateur est invité sur le serveur Terminal Server à fournir des informations d’identification pour établir une connexion à distance. Pour Windows Server 2008 et Windows Server 2008 R2, un utilisateur est invité sur l’ordinateur client à fournir des informations d’identification pour établir une connexion à distance.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services- Value name
PromptForCredsOnClient
| 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: TerminalServer/TS_PROMT_CREDS_CLIENT_COMP
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PromptForCredsOnClient' -Value 1 -Type DWordDisable
# Disable: TerminalServer/TS_PROMT_CREDS_CLIENT_COMP
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PromptForCredsOnClient' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_PROMT_CREDS_CLIENT_COMP
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'PromptForCredsOnClient' -ErrorAction SilentlyContinue