Can you give me perfect Script for reminder mail notifications to be sent When Domain User Password Expire! Soon

Sathishkumar Singh 486 Reputation points
2022-02-03T13:52:52.537+00:00

Hello Team

My Current Infra:-

UK:- Primary-DC

US:- Secondary-DC+File Sever
Exchange2016Std (CU22) Standalone

RODC:-
Dubai:- RODC1

Child Domain
Singapore:- CDC1 and CDC2

Now problem users are working from home. password will expire every 62Days. but during remote ,user's will not notice alert.in notification bar

So i need a script with the message when user's password is going to be expire in 4 Days user should receive mail notification individually

one more thing, as administrator i should receive mail all users password expire notification. to follow up with Seniors

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

Accepted answer
  1. Rich Matheisen 47,901 Reputation points
    2022-02-04T02:36:31.04+00:00

    Have you read this? It's right at the top of the Windows-Server-Powershell section. Technical questions about explanation and correction of commands, advice for PowerShell scripts, and troubleshooting PowerShell-related issues.

    Have you even tried to find something that someone has written, and published, before that might meet your requirement -- or that you, with a little bit of work, might tailor to your specific requirements? There are MANY scripts that are free for you to use. All you have to do is look for them. Here are just a few that I found in about 30 seconds:

    23313.notify-active-directory-users-about-password-expiry-using-powershell.aspx
    a-password-expiration-reminder-script-in-powershell
    powershell-notify-users-of-an-upcoming-ad-password-expiry-via-email
    powershell-script-for-password-expiry-email-notification.html
    password-expiration-email-notification-with-powershell

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.