question

amitmne avatar image
0 Votes"
amitmne asked FanFan-MSFT commented

Active Directory account password expiry email notification to end users

Hello Friends,

Please help me to configure Windows Active Directory account password expiry email notification to end users.


Regards
Amit Kumar

windows-active-directory
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,


Just want to confirm the current situations.
If there's anything you'd like to know, don't hesitate to ask.

Best Regards,

0 Votes 0 ·

Hi,

I am facing below error while running this script, pls help me.

Exception calling "Send" with "1" argument(s): "Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail [PN2PR01CA0156.INDPRD01.PROD.OUTLOOK.COM]"
At C:\Users\amit.kumar\OneDrive - JK Technosoft Ltd\Desktop\script.ps1:30 char:5
+ $smtp.Send($msg)
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SmtpException


0 Votes 0 ·

1 Answer

FanFan-MSFT avatar image
0 Votes"
FanFan-MSFT answered

Hi,
Welcome to share here!
To configure Windows Active Directory account password expiry email notification to end users, we need to run a script.
Below is a script that can identify Active Directory accounts that are about to expire and sends a mail notification to the end users. It optionally allows sending the applied Password Policy settings which make easier for users to choose a new password that meets the company requirements.
If you don't want to run the script manually, you may consider running it regularly by configure a schedule task.
For more details, you can refer to the following links:
Notify Active Directory Users about Password Expiry using PowerShell

How to Setup a Password Expiration Notification Email Solution


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.