Notify-ExpiringAccounts.ps1

I wrote this function to notify users that their account is about to expire. Additionally, a report is sent to a specified mail address so that, for instance, a servicedesk can keep track of expiring accounts. Feel free to use and modify it to your needs.