Check Submission User Password Expiration Date

Script will return the expiration date for any given domain user name.

This script will return the expiration date for any given domain user name (passed as a Parameter).


Expected Behavior:

If password expiration date is more than 10 days in the future:

Script will end successfully and return the number of days before expiration


If password expiration date is less than 10 days, but more than 3 days in the future:
The script will end successfully but return a warning prompting to change the password


If password expiration date is less than 3 days in the future:
The script will abort and return a warning prompting to change the password immediatly

 

Target environments: Windows

Prerequisites: Powershell


Operating Systems


Versions

This plugin has no official releases yet

Created by....

A member of the Automic Community


Login to View or Leave Comments