Post-authentication actions: registry value PostAuthenticationResetDelay and 1 moreComputerHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS

Policy ID
LAPS_PostAuthenticationActions
Scope
Computer Configuration
Supported on
At least Microsoft Windows 10 or later
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
System › LAPS

Registry

PostAuthenticationResetDelay

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Grace period (hours):
Value type
REG_DWORD
Minimum value
0
Maximum value
24
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"PostAuthenticationResetDelay"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PostAuthenticationResetDelay" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PostAuthenticationResetDelay' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

PostAuthenticationActions

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Actions:
Options
ItemStored value
Disabled - take no actions0
Reset the password1
Reset the password and logoff the managed account3
Reset the password and reboot the device5
Reset the password, logoff the managed account, and terminate any remaining processes11
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]

; Options (use only one)
; Disabled - take no actions
"PostAuthenticationActions"=dword:00000000
; Reset the password
"PostAuthenticationActions"=dword:00000001
; Reset the password and logoff the managed account
"PostAuthenticationActions"=dword:00000003
; Reset the password and reboot the device
"PostAuthenticationActions"=dword:00000005
; Reset the password, logoff the managed account, and terminate any remaining processes
"PostAuthenticationActions"=dword:0000000b
CMD
:: Options (use only one)

:: Disabled - take no actions
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PostAuthenticationActions" /t REG_DWORD /d 0 /f
:: Reset the password
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PostAuthenticationActions" /t REG_DWORD /d 1 /f
:: Reset the password and logoff the managed account
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PostAuthenticationActions" /t REG_DWORD /d 3 /f
:: Reset the password and reboot the device
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PostAuthenticationActions" /t REG_DWORD /d 5 /f
:: Reset the password, logoff the managed account, and terminate any remaining processes
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PostAuthenticationActions" /t REG_DWORD /d 11 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null

# Options (use only one)
# Disabled - take no actions
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PostAuthenticationActions' -PropertyType DWord -Value 0 -Force | Out-Null
# Reset the password
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PostAuthenticationActions' -PropertyType DWord -Value 1 -Force | Out-Null
# Reset the password and logoff the managed account
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PostAuthenticationActions' -PropertyType DWord -Value 3 -Force | Out-Null
# Reset the password and reboot the device
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PostAuthenticationActions' -PropertyType DWord -Value 5 -Force | Out-Null
# Reset the password, logoff the managed account, and terminate any remaining processes
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PostAuthenticationActions' -PropertyType DWord -Value 11 -Force | Out-Null