PowerShell Password Reminder Script Updated!
February 21, 2017 3 Comments
It has been a long time coming, and I have tried to incorporate a lot of the feedback (if not all from the 230 Q&As from the TechNet Gallery.
I switched away from static variables inside the script in favour of using Parameters and also changed some of the logic in how the User objects are found and processed. Instead of processing each one in turn fully we now grab the relevant accounts, work out their password expiry date and then move on. PowerShell itself then filters those who need to be notified and we then process those in turn.
I have tried to increase the usefulness of the logs, especially around the SMTP session.
In the old script, any errors in the SMTP session would only be seen when running interactively. The log would only show whether or not a user should have been notified.
In the new script we will capture that error and log it.
It is not all change though! HTML customisations will still work, and it can still be run as a scheduled task.
I may go through and update all of the videos I added to my YouTube Channel to reflect the changes in the script, however as the two are still quite similar in that respect I might not, but I did post a new video with a bit of a demonstration of the new version here.
The only thing left to do is say thank you to anyone who has downloaded and is using the script, it really has been a lot of fun to work on over the last few years. My only regret is that I didn’t charge £1 for the download.
Oh, also, download it here!!