Script Download: The script is available for download from http://gallery.technet.microsoft.com/How-to-send-account-cdae5b39. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This script shows how to automatically send an email notification to Administrator when there is a user locked out.
When there is a user locked out, and then sends an email to domain admin. There are many users ask this issue, and this could be done by schedule task, we could also create a script to do the job.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery