Check if AD account is locked

Hi folks,

what is the easiest way to check with CheckMK if a computer or user account has been disabled/locked in AD?

Thanks for your help

Frank

Hi Frank,

i´v written a small powershell local script to check for locked accounts :

Just copy that script in the local directory on the domain controller.

1 Like

Hi Andre,

thanks for the script. I have to adapt it a little because i want to check for specific accounts but that should be doable even for a non windows guy.

cheers
Frank

1 Like