Ouvrir dans l'explorateur

Demander des informations d’identification sur l’ordinateur client

Prompt for credentials on the client computer

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Client Connexion Bureau à distance EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Connection Client
Pris en charge sur
Au minimum Windows Vista avec Service Pack 1 EN : At least Windows Vista with Service Pack 1
Fichier ADMX
TerminalServer.admx
Nom interne
TerminalServer/TS_PROMT_CREDS_CLIENT_COMP

Explication

Texte français issu de Windows 11 26H2

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.

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.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Nom de la valeur
PromptForCredsOnClient
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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 DWord

Désactiver

# Désactiver : 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 DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : TerminalServer/TS_PROMT_CREDS_CLIENT_COMP
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'PromptForCredsOnClient' -ErrorAction SilentlyContinue

Disponibilité