CodeTwo Base.title

How to manage Exchange Attributes in Office365 using PowerShell

Problem:

It is not possible to set Exchange Attributes directly in Office 365.

Solution:

To change Exchange Attributes in Office 365, please follow the steps bellow:

  1. Connect to your Office 365 using PowerShell. Study this article to learn more.
  2. After establishing the connection to your Office 365, please run this command in PowerShell:

     

    Set-Mailbox Userlias -CustomAttributeX 'TypeValue' 

     

    Where:

    • UserAlias - is the mailbox alias of the user which you want to set an Exchange Attribute for,
    • X in CustomAttributeX -  you can assign variable X a value from 1 to 15,
    • TypeValue - it is the value that you want to set for a selected Exchange Attribute.
  1. Disconnect from Exchange server. To do this, follow step 8 from this article.
Our Clients: