Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Windows Server » Configure logon hours for users in Active Directory
  • Screenshot 2020 05 14 at 19.08.33
    Backup image to TFTP server Network | Monitoring
  • How to upgrade to SQL Server 2025
    SQL Server 2025 Upgrade Requirements and Compatibility Oracle/MSSQL/MySQL
  • Turn On Or Off Auto Unlock For BitLocker Drive
    How To Turn On Or Off Auto-Unlock For BitLocker Drive In Windows 10/11 Security | Vulnerability Scans and Assessment
  • group
    How to update PowerShell and Package Management via Group Policy Object Windows Server
  • Featured image 5
    How to uninstall and prevent the installation of Microsoft Teams on Windows Windows
  • Backup is an attacker real target
    Hacker Thinking in Ransomware Attacks: Backup Is the real Target Backup
  • change keyboard layout windows 10 thumb800
    How to use the On-Screen Keyboard Windows
  • EnableDisableTPMAutoProv
    Waiting for TPM Auto Provisioning: How to Enable or Disable TPM Auto-provisioning Windows

Configure logon hours for users in Active Directory

Posted on 30/05/202228/08/2024 Temitope Odemo By Temitope Odemo No Comments on Configure logon hours for users in Active Directory
logon

In this article, I will show you how to Perform the Time of day restriction: How to Configure logon hours for users in Active Directory. Please see how to Resolve Account restrictions are preventing this user from signing in: User Account Password has expired. There are times you may want to restrict users’ access to the Active Directory for a few days or hours. Please see Video on how to Permit a Blocked File or App in Windows Security.

This is a security feature that can help to protect IT resources from unauthorized access and system administrators make use of this feature to improve their effectiveness on the job. Here is a YouTube Video discussing this topic.

This restriction can be achieved through the Group Policy if you need to configure it for more than one user, but in this guide, we will be using the AD interface just for a single user.

If you need more guides on Active Directory then you can read these: How to set an account expiration date in Active Directory, How to delegate control for Bitlocker recovery keys in Active Directory.

How to Configure logon hours for users

The first thing you should do is open the Active Directory Users and Computers in the Server Manager and navigate to the user account you want to configure the restriction on.

image-75
Active Directory Users and Computer

Next, right-click the user account you want to configure the restriction and select Properties

Here are some related guides: Enable Active Directory Recycle Bin: How to delete and restore objects using Active Directory Administrative Center, Domain Controller: How to install and configure Active Directory Domain Services on Windows Server 2022, and how to fix Error 1385: The user has not been granted the requested logon type at this time.

image-76
AD Properties

On the Properties page click the Account tab and Logon Hours.

image-77
AD Properties

The below window will appear showing the Permitted or Denied hours. The Permitted color is Blue and while the Denied color is White.

Click on the Logon Denied option. All you need to do is to drag your cursor on the boxes depicting days and hours. Or select each box individually and then click the Logon Permitted.

Please see How to permit (run) only certain apps in windows, learn about The different Windows Logon Types, What are the merits and demerits of Local System Account and Service Logon Accounts, how to fix The sign-in method you are trying to use not allowed: For more information, contact your network administrator, and how to remove Packages from a Linux.

Perform the Time of day Restriction

For example, the below image shows Sunday through Saturday and 12 AM to 2 PM as the period that a user can log on to the Server.

image-78
Logon Permitted

Click on the Logon Permitted option. All you need to do is to drag your cursor on the boxes depicting days and hours.

Or select each box individually and then click the Logon Denied. For example, the below image shows Sunday through Saturday from 6 AM to 4 PM. This is the period that a user can log on to the Server.

image-79
Logon Denied

After Configuring the Logon Denied time and days. If you try to log in within this period you will definitely get the below message.

Also, see Active Directory Ports: Service and network port requirements for Windows, and AD Explorer from SysInternals: How to use Active Directory Explorer..

I hope you found this blog post Time of day restriction: How to Configure logon hours for users in Active Directory interesting and helpful. In case you have any questions do not hesitate to ask in the comment section.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Active Directory, Active Directory Administrative Center, Active Directory Domain Services, logon, Windows Server 2016

Post navigation

Previous Post: How to upgrade Windows Server Evaluation to Full Version
Next Post: How to Install Packages to Amazon VM using Terraform

Related Posts

  • banner
    How to Create a Child and Tree Domain Windows Server
  • windows admin center banner 825x400 1
    How to install or update and uninstall extensions in Windows Admin Center Windows Server
  • image 64
    Windows Local Account Authorization and Access Control Windows
  • Screenshot 2021 03 16 at 21.14.05
    Unable to locate the account: Fix call to DsGetDcNameWithAccount failed with return value 0x0000054B Windows Server
  • article 1280x720.192a2586 1 2
    Fix error 0x800f0805, run DISM executable (Failure 5627) Windows Server
  • hero windowsadmincenter
    How to set up Windows Admin Center on a Windows Server Windows Server

More Related Articles

banner How to Create a Child and Tree Domain Windows Server
windows admin center banner 825x400 1 How to install or update and uninstall extensions in Windows Admin Center Windows Server
image 64 Windows Local Account Authorization and Access Control Windows
Screenshot 2021 03 16 at 21.14.05 Unable to locate the account: Fix call to DsGetDcNameWithAccount failed with return value 0x0000054B Windows Server
article 1280x720.192a2586 1 2 Fix error 0x800f0805, run DISM executable (Failure 5627) Windows Server
hero windowsadmincenter How to set up Windows Admin Center on a Windows Server Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Screenshot 2020 05 14 at 19.08.33
    Backup image to TFTP server Network | Monitoring
  • How to upgrade to SQL Server 2025
    SQL Server 2025 Upgrade Requirements and Compatibility Oracle/MSSQL/MySQL
  • Turn On Or Off Auto Unlock For BitLocker Drive
    How To Turn On Or Off Auto-Unlock For BitLocker Drive In Windows 10/11 Security | Vulnerability Scans and Assessment
  • group
    How to update PowerShell and Package Management via Group Policy Object Windows Server
  • Featured image 5
    How to uninstall and prevent the installation of Microsoft Teams on Windows Windows
  • Backup is an attacker real target
    Hacker Thinking in Ransomware Attacks: Backup Is the real Target Backup
  • change keyboard layout windows 10 thumb800
    How to use the On-Screen Keyboard Windows
  • EnableDisableTPMAutoProv
    Waiting for TPM Auto Provisioning: How to Enable or Disable TPM Auto-provisioning Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,825 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.