This script was created to make it easier to manage certain Exchange Online functions. There may be some bugs, please report them so it can be fixed.
Inside each function there is a note with the requirement of columns needed for the CSV to execute correctly. At the moment the script only validates the column "UserPrincipalName"
The script was recently translated from PT-BR to EN-US to help more people.
Functions currently available:
1- Configure mail forwarding in mailboxes
2- Delete mail forwarding from mailboxes
3- Check if mailbox(es) exist(s)
4- Show or Hide mailbox(es) from GAL
5- Enable archive and/or litigation hold
6- Enable autoexpanding archive
7- Disable 'Email address policies' from Exchange
8- Check if user migrated to Exchange Online or is on Exchange Server (Only Hybrid)
9- Add Secondary SMTP Address in Mailbox
10- Convert Usermailbox to Sharedmailbox
11- Convert Sharedmailbox to Usermailbox
12- Add permissions on Sharedmailbox
13- Create a Sharedmailbox
14- Remove Inbox Rule from Mailbox
15- Export mailbox permissions (UserMailbox and/or SharedMailbox)
16- Check Usermailbox Size, Archive and Litigation Hold settings
Follow the evolution of the project on my blog https://www.victornanuvem.com/