I need help in creating a script that monitors a particular threshold of lockouts. For example, let's say my threshold for lockouts presently is 2 lockouts in an eight hour period. In an example scenerio, I have a user that has been locked out 4 times in one day (within 8 hours), the script would then catch that and then send out an email alert, noting this, and the report might look like this below:
Account Account Name DN Description PC Name IP (if possible)
And in the Subject line of the email say: "These accounts surpass the 2 lockout attempt
I would assume that basic logic behind this is that it would run it's scan, create a text file and based off the scan bounce it's finding's off of the master text file each time the script is ran. Or scan through the lockout's folder on the log server for that day.
Any help with this is GREATLY appreciated.