Created
April 12, 2016 20:10
-
-
Save jtopp/e77aa4c36fc4c22b2ead72fa08e9f90b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($clock.days -eq 14 -or $clock.days -eq 7 -or ($clock.days -le 5 -and $clock.days -ge 0)) { | |
#mail on success | |
... | |
$msg.Subject = "Your Account: $($user.samaccountname) Exipiring in $($clock.days) Days" | |
if ($clock.days -le 5) { | |
$msg.Subject = "FINAL NOTICE: $msg.Subject" | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment