Checks for locked accounts and sends an event. Optionally unlocks each account and gathers data. Accounts can be excluded from the search list. This Knowledge Script works well when you need to check large numbers of accounts. To check a few, specified accounts, see SpecificAccountLocked.
Requirements. ADSI 2.x or above (or Windows 2000) must be installed on the computer where the Knowledge Script runs, but it can then check accounts on any server/domain.