• how to change the primary smtp address from upn to another value for entra users?

    Hello,

    We are currently in a project to use the M365 services.
    The use case or question specifically concerns EntraID and Exchange Online.
    In the Microsoft cosmos you get the UPN (UserPrincipalName) and this is usually also the primary SMTP address .
    However…

  • PowerShell cmdlet needs to run on the Exchange Online mailbox whenever a new Exchange Online mailbox is created along with M365 E5 license.

    we want to run a cmdlet on the exchange online mailbox whenever a new mailbox is created with an e5 license.

    Set-Mailbox <user> -AuditOwner @{Add="SearchQueryInitiated"}

    the above cmdlet is the one i need to run every time, however i am…