Skip to content

Instantly share code, notes, and snippets.

View dacarroll's full-sized avatar

Daniel Carroll dacarroll

View GitHub Profile
@dacarroll
dacarroll / Password Change Notification O365.ps1
Last active August 2, 2023 18:08
Script to Automate Email Reminders when Users Passwords due to Expire using O365 Shared Mailbox
#################################################################################################################
#
# Original Robert Pearman v1.4 Passowrd Change Notification
# - Adapted to support O365 SendAS Shared Mailbox
# Script to Automate Email Reminders when Users Passwords due to Expire using O365 Shared Mailbox.
#
# Requires:
# Windows PowerShell Module for Active Directory
# Azure AD Application registration with MS Graph Application Mail.Send permission
#
$crypto = @"
P k T r 2 s z 2 * c F -
r a z 7 G u D 4 w 6 U #
g c t K 3 E @ B t 1 a Y
Q P i c % 7 0 5 Z v A e
W 6 j e P R f p m I ) H
y ^ L o o w C n b J d O
S i 9 M b e r # ) i e U
* f 2 Z 6 M S h 7 V u D
5 a ( h s v 8 e l 1 o W