en-US windows computer

Password Settings

Verified with Windows 11 25H2 — updated on July 10, 2026

Windows 11 25H2

Supported on: At least Microsoft Windows 10 or later

Path in the GPO console

Computer Configuration\Administrative Templates\System\LAPS

Description

Configures password parameters Password complexity: which characters are used when generating a new password Default: Large letters + small letters + numbers + special characters Password length Minimum: 8 characters Maximum: 64 characters Default: 14 characters Password age in days Minimum: 1 day (7 days when backup directory is configured to be Azure AD) Maximum: 365 days Default: 30 days Passphrase length Minimum: 3 words Maximum: 10 words Default: 6 words See https://go.microsoft.com/fwlink/?linkid=2188435 for more information. Passphrase list taken from "Deep Dive: EFF's New Wordlists for Random Passphrases" by Electronic Frontier Foundation, and is used under a CC-BY-3.0 Attribution license. See https://go.microsoft.com/fwlink/?linkid=2255471 for more information.

Registry

HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS

More options available

Options

Password Complexity
PasswordComplexity enum
  • Large letters -> 1
  • Large letters + small letters -> 2
  • Large letters + small letters + numbers -> 3
  • Large letters + small letters + numbers + specials -> 4 (default)
  • Large letters + small letters + numbers + specials (improved readability) -> 5
  • Passphrase (long words) -> 6
  • Passphrase (short words) -> 7
  • Passphrase (short words with unique prefixes) -> 8
Password Length
PasswordLength decimal - range 8-64 - default: 14
Password Age (Days)
PasswordAgeDays decimal - range 1-365 - default: 30
Passphrase Length (words)
PassphraseLength decimal - range 3-10 - default: 6

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Password Settings
; State: Enabled
; Supported on: At least Microsoft Windows 10 or later

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]
"PasswordComplexity"=dword:00000004
"PasswordLength"=dword:0000000e
"PasswordAgeDays"=dword:0000001e
"PassphraseLength"=dword:00000006
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Password Settings
# State: Enabled
# Supported on: At least Microsoft Windows 10 or later

$path = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'PasswordComplexity' -Value 4 -Type DWord
Set-ItemProperty -Path $path -Name 'PasswordLength' -Value 14 -Type DWord
Set-ItemProperty -Path $path -Name 'PasswordAgeDays' -Value 30 -Type DWord
Set-ItemProperty -Path $path -Name 'PassphraseLength' -Value 6 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview