Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.