Mapping an Exchange Mailbox in Outlook via Powershell

Markus Danner 26 Reputation points
2020-12-03T11:31:48.003+00:00

Hello,

is it possible to map a Shared Mailbox in Outlook (2016) via Powershell-Script wihtout the AutoMappping Feature?

For example with the ComObject?
Add-Type -assembly "Microsoft.Office.Interop.Outlook"
$Outlook = New-Object -comobject Outlook.Application
$namespace = $Outlook.GetNameSpace("MAPI")

Best regeards
Markus

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,603 questions
{count} votes

3 answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,296 Reputation points
    2020-12-04T02:04:09.223+00:00

    @Markus Danner

    After enable AutoMapping, shared mailbox will show in Outlook client automatically without any other action. When login mailbox in new client, the shared mailbox will also show automatically.

    So, I am confused, you don’t want the mailbox to appear automatically, but you also want to use a script to add it automatically. Why do you want to do this?

    If you really want to do it, you can try to post this question in Outlook for Developers forum. It may be help to you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Andy David - MVP 153.3K Reputation points MVP
    2020-12-04T11:23:01.663+00:00

    Not possible to use a GPO or anything like that. You would have to create your own scripting or logic to determine which ones you want to automap and which ones you do not

    1 person found this answer helpful.
    0 comments No comments

  3. Markus Danner 26 Reputation points
    2020-12-04T11:27:36.84+00:00

    Yes, that was my question in the beginning.
    So i will ask this in the Outlook Dev Forum.
    Thanks

    0 comments No comments

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.