Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know if it is possible to create a script to create a log every time a local account on a server gets locked out.

share|improve this question

This is already logged in the Security log as Event ID 644. You don't need to reinvent the wheel, here.

If you would like to launch a script to do something else whenever an Event 644 (lockout) is logged, you can do this in Task Scheduler. You'll create a "Trigger" that watches for that event and calls your script whenever that happens.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.