Sweeny
(Fresh Scripter)
2017-05-27 04:34 PM
AD user logon times

To great and knowledgeable people of this forum,
I'm in the process of creating a small applet that will give some chosen users the ability to choose logon hours without the need for the AD snappin etc etc. I may have hit a brick wall in the sense I can't find any mention of how to get kix to modify the logon hours of a user in AD or how I could use ADSI to help. Any advice and guidance will be gratefully received.
Many thanks,
Tom \:\)


AllenAdministrator
(KiX Supporter)
2017-05-27 09:11 PM
Re: AD user logon times

It's possible someone will have some suggestions... but it looks like it uses a bit array and from past experiences... this is harder than it should be with kix...

Powershell Examples
https://richardspowershellblog.wordpress.com/2012/01/26/setting-a-users-logon-hours/
https://gallery.technet.microsoft.com/scriptcenter/fd6a340b-ed8b-4787-8d12-3c6fcb822104


AllenAdministrator
(KiX Supporter)
2017-05-27 09:15 PM
Re: AD user logon times

This looks like it might get you in the right direction...

http://www.rlmueller.net/ADLogonHours.htm


AllenAdministrator
(KiX Supporter)
2017-05-27 09:21 PM
Re: AD user logon times

And here is where logonhours has been discussed here... YEARS ago.
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=85948#Post85948