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...
farismalaeb
Feb 24, 2021Iron Contributor
Hi,
I dont know why you might need to do such a change, as once the logon hour are not applicable, the user wont be able to login.
Anyway Check this script that can take you though