Post Termination script remove office365 license, remove from distro

Post Termination script remove office365 license, remove from distro

I created a script that goes beyond just what admanager plus offers. This is mainly for hybrid environment.

after the account is disabled and moved to disabled OU using template,
  1. Script connects to office 365 and removes the disabled user from any distribution list
  2. Then it checks for which license the disabled user had and removes the license
  3. Script changes the disabled users description field to today's date and time in your local AD
  4. It hides the disabled user from Address book on local exchange as well as office 365
I feel like these things should be built into admanager since these are running in powershell. If you're interested, see the attached script.

                New to ADSelfService Plus?