Updated the code to mirror the new default auditing set of Microsoft as described in https://docs.microsoft.com/en-us/office365/securitycompliance/enable-mailbox-auditing
Exported the check to a CSV file for large environments.
Set-Mailbox on ExternalDirectoryObjectId because this is the Azure AD object and is always unique in the environment
Updated the code to mirror the new default auditing set of Microsoft as described in https://docs.microsoft.com/en-us/office365/securitycompliance/enable-mailbox-auditing Exported the check to a CSV file for large environments. Set-Mailbox on ExternalDirectoryObjectId because this is the Azure AD object and is always unique in the environment