Skip to main content

AD Email User about Password Expiration

Summary

Client Specific Script for PCM
Monitor - AD - Password Expires This Week monitor
Autofix action assigned to this monitor calls this script.
The script takes the GUID for the user and populates an email to that user, letting them know that their password is going to expire.

Dependencies

  • Client Specific Monitor AD - Password Expires This Week monitor
  • Client Specific alert template - ~Autofix - Email AD User

Variables

NameDescription
MSPWebsiteUsed in the email body to hold the MSP's Website
MSPNameUsed in the email body to hold the MSP's Name

Process

  1. Sets the user email address to a variable.
  2. Sets the user account name to a variable.
  3. Sets the user first name to a variable.
  4. Determines if the user can be emailed.
  5. Either creates an email to the user or the MSP, depending on what is available.

Output

N/A - No output present