Configures a setting that asks users to enter their device password while using password autofill: registry value PrimaryPasswordSettingComputerHKLM\Software\Policies\Microsoft\Edge
- Policy ID
- PrimaryPasswordSetting
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Edge version 93, Windows 7 or later
- Source
- Microsoft Edge Policy Templates (version 155.0.4283.45)
- Category
- Microsoft Edge › Password manager and protection
Registry
PrimaryPasswordSetting
REG_DWORDComputerUser…\Software\Policies\Microsoft\EdgeHKLM\Software\Policies\Microsoft\Edge Current key
HKCU\Software\Policies\Microsoft\Edge
HKCU\Software\Policies\Microsoft\Edge
- Enabled value
- Depends on the option value
- Element
- Configures a setting that asks users to enter their device password while using password autofill
| Item | Stored value |
|---|---|
| Automatically | 0 |
| With device password | 1 |
| With custom primary password | 2 |
| Autofill off | 3 |
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge] ; Options (use only one) ; Automatically "PrimaryPasswordSetting"=dword:00000000 ; With device password "PrimaryPasswordSetting"=dword:00000001 ; With custom primary password "PrimaryPasswordSetting"=dword:00000002 ; Autofill off "PrimaryPasswordSetting"=dword:00000003
CMD
:: Options (use only one) :: Automatically reg add "HKLM\Software\Policies\Microsoft\Edge" /v "PrimaryPasswordSetting" /t REG_DWORD /d 0 /f :: With device password reg add "HKLM\Software\Policies\Microsoft\Edge" /v "PrimaryPasswordSetting" /t REG_DWORD /d 1 /f :: With custom primary password reg add "HKLM\Software\Policies\Microsoft\Edge" /v "PrimaryPasswordSetting" /t REG_DWORD /d 2 /f :: Autofill off reg add "HKLM\Software\Policies\Microsoft\Edge" /v "PrimaryPasswordSetting" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null # Options (use only one) # Automatically New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'PrimaryPasswordSetting' -PropertyType DWord -Value 0 -Force | Out-Null # With device password New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'PrimaryPasswordSetting' -PropertyType DWord -Value 1 -Force | Out-Null # With custom primary password New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'PrimaryPasswordSetting' -PropertyType DWord -Value 2 -Force | Out-Null # Autofill off New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'PrimaryPasswordSetting' -PropertyType DWord -Value 3 -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge] ; Options (use only one) ; Automatically "PrimaryPasswordSetting"=dword:00000000 ; With device password "PrimaryPasswordSetting"=dword:00000001 ; With custom primary password "PrimaryPasswordSetting"=dword:00000002 ; Autofill off "PrimaryPasswordSetting"=dword:00000003
CMD
:: Options (use only one) :: Automatically reg add "HKCU\Software\Policies\Microsoft\Edge" /v "PrimaryPasswordSetting" /t REG_DWORD /d 0 /f :: With device password reg add "HKCU\Software\Policies\Microsoft\Edge" /v "PrimaryPasswordSetting" /t REG_DWORD /d 1 /f :: With custom primary password reg add "HKCU\Software\Policies\Microsoft\Edge" /v "PrimaryPasswordSetting" /t REG_DWORD /d 2 /f :: Autofill off reg add "HKCU\Software\Policies\Microsoft\Edge" /v "PrimaryPasswordSetting" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null # Options (use only one) # Automatically New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'PrimaryPasswordSetting' -PropertyType DWord -Value 0 -Force | Out-Null # With device password New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'PrimaryPasswordSetting' -PropertyType DWord -Value 1 -Force | Out-Null # With custom primary password New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'PrimaryPasswordSetting' -PropertyType DWord -Value 2 -Force | Out-Null # Autofill off New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'PrimaryPasswordSetting' -PropertyType DWord -Value 3 -Force | Out-Null