Ouvrir dans l'explorateur

Configures a setting that asks users to enter their device password while using password autofill

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur et utilisateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Microsoft Edge › Gestionnaire de mot de passe et protection Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Edge › Gestionnaire de mot de passe et protection EN : Computer Configuration › Policies › Administrative Templates › Microsoft Edge › Password manager and protectionEN : User Configuration › Policies › Administrative Templates › Microsoft Edge › Password manager and protection
Pris en charge sur
Microsoft Edge version 93, Windows 7 or later
Fichier ADMX
msedge.admx
Nom interne
msedge/PrimaryPasswordSetting

Explication

This feature helps users add an additional layer of privacy to their online accounts by requiring device authentication (as a way of confirming the user's identity) before the saved password is autofilled into a web form. This layer ensures that non-authorized persons can't use saved passwords for autofill. This feature doesn't protect against locally running malware.

This group policy configures the radio button selector that enables this feature for users. It also has a frequency control where users can specify how often they would like to be prompted for authentication.

If you set this policy to 'Automatically', disable this policy, or don't configure this policy, autofill won't have any authentication flow.

If you set this policy to 'WithDevicePassword', users have to enter their device password (or preferred mode of authentication under Windows) to prove their identity before their password is autofilled. Authentication modes include Windows Hello, PIN, face recognition, or fingerprint. The frequency for authentication prompt is set to 'Ask permission once per browsing session' by default. However, users can change it to the other option, which is 'Always ask permission'.

If you set this policy to 'WithCustomPrimaryPassword', users are asked to create their custom password and to be redirected to Settings. After the custom password is set, users can authenticate themselves using the custom password and their passwords get autofilled after successful authentication. The frequency for authentication prompt is set to 'Ask permission once per browsing session' by default. However, users can change it to the other option, which is 'Always ask permission'.

If you set this policy to 'AutofillOff', saved passwords are no longer suggested for autofill.

The Custom Primary Password feature will be removed with Edge 149. From this version onward, the Custom Primary Password option will no longer be available. Users who currently have this setting enabled will be automatically migrated to the "Prompt for the device sign-in options" authentication method. Any associated group policies for Custom Primary Password will also be marked as obsolete.

Policy options mapping:

* Automatically (0) = Automatically

* WithDevicePassword (1) = With device password

* WithCustomPrimaryPassword (2) = With custom primary password

* AutofillOff (3) = Autofill off

Use the preceding information when configuring this policy.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge
HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

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.

Ordinateur (HKLM)

Activer

# Activer : msedge/PrimaryPasswordSetting
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Configures a setting that asks users to enter their device password while using password autofill
# Options possibles :
#   Automatically = 0
#   With device password = 1
#   With custom primary password = 2
#   Autofill off = 3
Set-ItemProperty -Path $k -Name 'PrimaryPasswordSetting' -Value 0 -Type DWord

Désactiver

# Désactiver : msedge/PrimaryPasswordSetting
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : msedge/PrimaryPasswordSetting
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'PrimaryPasswordSetting' -ErrorAction SilentlyContinue

Utilisateur (HKCU)

Activer

Désactiver

Revenir à « Non configuré »

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Configures a setting that asks users to enter their device password while using password autofillPrimaryPasswordSettingListe déroulanteenumPrimaryPasswordSettingREG_DWORD
LibelléValeur
AutomaticallyREG_DWORD = 0
With device passwordREG_DWORD = 1
With custom primary passwordREG_DWORD = 2
Autofill offREG_DWORD = 3

Application

Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.