We have an existing decomission script at work but I found this one online and want to add a few items from here.
This script will help in below actions for Exchange online and AD tasks to be removed in a Exchange hybrid environment:
This script will help in below actions for Exchange online and AD tasks to be removed in a Exchange hybrid environment:
- Convert exchange online mailbox to shared Mailbox.
- Disable the Mailbox protocols – OWA,ActiveSync, POP, IMAP, MAPI & OWA for devices.
- Hide the user from GAL.
- Remove the user from respective licenses E3,E5,EMS E3 & EMS E5 Licenses.
- Cancel all the calendar future meetings.
- Remove the user account from all groups.
- Set the account expiry of the AD account.
- Remove the IP Phone Attribute.
- Remove the manager field.
- Set out of office.