Create Contact

Rising Flight 4,556 Reputation points
2024-01-26T22:28:10.3333333+00:00

Hi all I am using exchange 2016 hybrid environment. I want to create mail contact from exchange onprem powershell. Please correct me with the below syntax. Also guide me to how to create contact in exchange online.

New-MailContact -Name "Glenn Maxwell External" -DisplayName "Glenn Maxwell External" -FirstName "Glenn" -LastName "Maxwell External" -ExternalEmailAddress maxwell@somedomain.com -Alias maxwell.ext -OU "contoso.com/OU1/OU2"
Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,534 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,635 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
539 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,105 questions
{count} votes

Accepted answer
  1. Vasil Michev 106.2K Reputation points MVP
    2024-01-27T15:48:05.49+00:00

    The syntax is OK. You can use the exact same cmdlet/syntax for Exchange Online, apart from the OU parameter, so just remove it.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.