Remove logon hours expiration warnings
Jump to overview

Policy overview

Key metadata and intent for this policy.

User
Category
Windows Components > Windows Logon Options
Supported on
At least Windows Vista

Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista

This policy controls whether the logged on user should be notified when his logon hours are about to expire. By default, a user is notified before logon hours expire, if actions have been set to occur when the logon hours expire. If you enable this setting, warnings are not displayed to the user before the logon hours expire. If you disable or do not configure this setting, users receive warnings before the logon hours expire, if actions have been set to occur when the logon hours expire. Note: If you configure this setting, you might want to examine and appropriately configure the “Set action to take when logon hours expire” setting. If “Set action to take when logon hours expire” is disabled or not configured, the “Remove logon hours expiration warnings” setting will have no effect, and users receive no warnings about logon hour expiration

Internal name
LogonHoursNotificationPolicyDescription
Policy ID
e1786972b343
Elements
0

Registry values

How enabled and disabled states update the registry.

ScopeRegistry locationTypeEnabled valueDisabled valueCopy
User
Path
Software\Microsoft\Windows\CurrentVersion\Policies\System
Value name
DontDisplayLogonHoursWarnings
REG_DWORD
HKCU
1
HKCU
0
Registry location
Type REG_DWORD · User
Path
Software\Microsoft\Windows\CurrentVersion\Policies\System
Value name
DontDisplayLogonHoursWarnings
Hive
HKCU
Enabled value
1
Disabled value
0

Policy elements

Inputs and configuration options exposed by this policy.

This policy has no additional user input fields.