ADMX Viewer
Microsoft.Policies.WindowsLogon2• User

Set action to take when logon hours expire

This policy controls which action will be taken when the logon hours expire for the logged on user. The actions include lock the workstation, disconnect the user, or log the user off completely. If you choose to lock or disconnect a session, the user cannot unlock the session or reconnect except during permitted logon hours. If you choose to log off a user, the user cannot log on again except during permitted logon hours. If you choose to log off a user, the user might lose unsaved data. If you enable this setting, the system will perform the action you specify when the user’s logon hours expire. If you disable or do not configure this setting, the system takes no action when the user’s logon hours expire. The user can continue the existing session, but cannot log on to a new session. Note: If you configure this setting, you might want to examine and appropriately configure the “Remove logon hours expiration warnings” setting

Policy Details

Policy Name
LogonHoursPolicyDescription
Registry Key
Software\Microsoft\Windows\CurrentVersion\Policies\System
Supported On
At least Windows Vista
OMA-URI (CSP)
ADMX_WinLogon/LogonHoursPolicyDescription
OS Build Version:10.0.22000, 10.0.19043.1202, 10.0.19042.1202, 10.0.19041.1202
CSP Version:10.0
Conflict Resolution:LastWrite
Allowed Editions:
EnterpriseEnterprise NProfessionalProfessional NEnterprise EvaluationEnterprise N EvaluationEducationEducation NEnterprise SEnterprise S NEnterprise S EvaluationEnterprise S N EvaluationHolographic BusinessPro Single LanguagePro ChinaPro WorkstationPro Workstation NPro For EducationPro For Education NEnterprisegEnterprisegnServerrdshIotenterpriseIotenterprisesCloudeditionnCloudeditionIotenterpriseskIotenterpriseseval
Available Languages
en-us

Configuration Elements

Set action to take when logon hours expire

Type: enum

Allowed Values
  • 1 Lock
  • 2 Disconnect
  • 3 Logoff