Forum Discussion
dmello30
Feb 23, 2021Copper Contributor
Script that disable AD User Account after Login Hours expires
Hi guys, I looking for a powershell script that disable AD User Account after Login Hours expires!!! The idea is configure a task to run this script each 5 minutes. Any idea?? Is it possible to do...
dmello30
Feb 24, 2021Copper Contributor
Hello AndySvints
Exactly.
I want disable user after logon hours and then enable it back again during the logon hours.
Thanks
Diogo
farismalaeb
Feb 24, 2021Iron Contributor
Forgot to add the link
Check it out
http://kb.delborrell.net/2018/06/22/deploy-logon-hours-via-powershell/