The primary difference is that the script will prompt the user for Office 365 credentials, expecting a username format like This is used to look up the correct Exchange Online account and then to authenticate and connect. If your organization uses the cloud-based Exchange Online service via Office 365, the process is mostly the same. The script was tested using Exchange 2013. One standard role that provides this is “Recipient Management”. Therefore, this user must have administration privileges to connect and manage mail recipients. The credentials of the user who runs the script are used to connect to Exchange. Therefore, you must run the script from an Active Directory domain-joined computer. Exchange Server (traditional on-premises)īy default, the script will attempt to automatically discover and connect to an available Exchange server in the domain in which the script is run. The expected values with examples are explained in the file and in instructions below. The configuration file is an XML file defining settings for the script. If left empty or “false”, imported contacts will be included in all default address lists. If “true”, the contact will not appear on address lists in Exchange or Outlook. One additional field is “HideFromAddressLists”, which can be “true” or “false”. Most of the fields are self-explanatory and match the property names. The other fields can be left empty if not needed. Many of the properties of a contact are included, although only two are required: An example file is included in the solution files download. File formatĪ standard CSV file format is expected (a header row with column names, and a row for each record with values separated by commas). Below are some aspects of the functionality to be aware of. This script creates mail contacts in Exchange (which are really objects in the associated Active Directory domain) from records in a comma-separated values format. It can be useful in situations where you want to create contacts as a way to define safe senders to avoid spam filtering, or to provide external email addresses in the Outlook address list alongside internal organization users. This solution helps minimize the administration burden of importing a large number of mail contacts into Exchange and then cleaning them up later.
0 Comments
Leave a Reply. |