LogonHours ActiveDirectory
I'm developing a system to restrict the user's login time in AD, I can view login times and even change, but I'm not able to establish this login time from 5 pm to midnight, for example, the system resets the time.
I am using the knowledge from these sites: https://anlai.wordpress.com/2010/09/07/active-directory-permitted-logon-times-with-c-net-3-5-using-system-directoryservices-accountmanagement /?unapproved=804&moderation-hash=5e33ea21b193f70a23d51ea9bce6d48c#comment-804
And the classes made available on GitHub
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.