As part of my compliant I need to keep tabs on inactive user account. The comapny is only small right now and so easy to monitor, but as I like automating things, this fantastic script from vNucleus provides an excellent solution.
I’ve got a scheduled task to run this daily and it the checks for any accounts that have been inactive for 30 days or more and then disables them and moves them to a ‘_disabled’ OU in AD. It also sends me an email to notify me of any users that have been disabled.
View it here:Â accountdisablepowershell