Powershell script

Louai Al Obaidi 0 Reputation points
2023-10-05T14:13:43.21+00:00

Hello,

 

I need a powershell script that when AD user account is locked out the admin will get a notification email.

 

 

Thank you.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2023-10-05T15:39:37.6733333+00:00

    You can try this:

    https://community.spiceworks.com/scripts/show/2471-account-lock-out-email-script-server-2008-r2-and-newer

    You don't say whether you want an immediate notification or one that sends a message periodically and includes all the lockouts since the last run. It makes a difference!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.