Open in the explorer

Do not allow passwords to be saved

Ne pas autoriser l'enregistrement des mots de passe

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Connection Client FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Client Connexion Bureau à distance
Supported on
At least Windows Server 2003 operating systems with SP1 or Windows XP Professional with SP2 FR: Au minimum Windows Server 2003 avec SP1 ou Windows XP Professionnel avec SP2
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_CLIENT_DISABLE_PASSWORD_SAVING_1

Explanation

Controls whether a user can save passwords using Remote Desktop Connection.

If you enable this setting the credential saving checkbox in Remote Desktop Connection will be disabled and users will no longer be able to save passwords. When a user opens an RDP file using Remote Desktop Connection and saves his settings, any password that previously existed in the RDP file will be deleted.

If you disable this setting or leave it not configured, the user will be able to save passwords using Remote Desktop Connection

French text from Windows 11 26H2

Contrôle si un utilisateur peut enregistrer des mots de passe à l'aide de Connexion Bureau à distance.

Si vous activez ce paramètre, la case à cocher d'enregistrement des informations d'identification est désactivée dans Connexion Bureau à distance et les utilisateurs ne peuvent plus enregistrer les mots de passe. Quand un utilisateur ouvre un fichier RDP à l'aide de Connexion Bureau à distance et enregistre ses paramètres, tout mot de passe existant antérieurement dans le fichier RDP est supprimé.

Si vous désactivez ce paramètre ou si vous ne le configurez pas, l'utilisateur ne peut pas enregistrer de mots de passe à l'aide de Connexion Bureau à distance.

Registry

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
DisablePasswordSaving
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: TerminalServer/TS_CLIENT_DISABLE_PASSWORD_SAVING_1
$k = 'HKCU:\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 'DisablePasswordSaving' -Value 1 -Type DWord

Disable

# Disable: TerminalServer/TS_CLIENT_DISABLE_PASSWORD_SAVING_1
$k = 'HKCU:\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 'DisablePasswordSaving' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": TerminalServer/TS_CLIENT_DISABLE_PASSWORD_SAVING_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'DisablePasswordSaving' -ErrorAction SilentlyContinue

Availability