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

Sathishkumar Singh 406 Reputation points

Hello Team

My Current Infra:-

UK:- Primary-DC

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

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 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

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
4,854 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,088 questions
{count} votes

Accepted answer
  1. Rich Matheisen 41,441 Reputation points

    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:


    0 comments No comments

0 additional answers

Sort by: Most helpful