{"id":530,"date":"2019-07-11T04:34:09","date_gmt":"2019-07-11T04:34:09","guid":{"rendered":"https:\/\/digitalchild.info\/?p=530"},"modified":"2019-07-11T04:34:09","modified_gmt":"2019-07-11T04:34:09","slug":"how-to-have-office-365-shared-mailbox-with-multiple-domains","status":"publish","type":"post","link":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/","title":{"rendered":"How to have Office 365 Shared Mailbox with Multiple Domains"},"content":{"rendered":"\n

If you’re hosting your email with Microsoft’s Office 365 service, you may be using shared mailboxes. You should if you aren’t, they’re a great way to create email addresses that don’t consume a license. Shared mailboxes can also be shared. <\/p>\n\n\n\n

The Problem<\/h2>\n\n\n\n

I have a quite a few domains added to my Office 365 account and I wanted to create unique shared mailboxes for a couple of my domains. So I logged into Office365 and go to create the 2 shared mailboxes. <\/p>\n\n\n\n

I wanted the following<\/p>\n\n\n\n

social@domain1.com
social@domain2.com <\/p>\n\n\n\n

I created the first shared mailbox without any issue, then when trying to create the second shared mailbox I came across this error. <\/p>\n\n\n\n

\"\"
Microsoft 365 Admin Center – Error message <\/figcaption><\/figure>\n\n\n\n

The Solution <\/h2>\n\n\n\n

You can’t do this through the admin center because it tries to enforce uniqueness of the alias but does not take into account the domain name. Which I think is kind of crazy, there has to be literally thousands of users that would need this functionality. <\/p>\n\n\n\n

You have to use PowerShell<\/a> to achieve this. First, you’ll need to connect your local session to your office365 account. You can do this following the steps outlined in the following Microsoft help document.<\/a> I’ll outline the steps below incase the document moves or disappears.<\/p>\n\n\n\n

Step One.<\/p>\n\n\n

\n$UserCredential = Get-Credential\n<\/pre><\/div>\n\n\n
\"\"
You will be prompted to enter your admin console admin credentials<\/figcaption><\/figure>\n\n\n\n

Step Two – Connect to Office365<\/p>\n\n\n

\n$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $UserCredential -Authentication Basic -AllowRedirection\n<\/pre><\/div>\n\n\n

Step Three – Connect the session <\/p>\n\n\n

\nImport-PSSession $Session -DisableNameChecking\n<\/pre><\/div>\n\n\n

If you don’t see any errors, you can move onto the next step. If you see the following error: <\/p>\n\n\n\n

Import-PSSession :<\/g> Files cannot be loaded because running scripts is disabled on this system.<\/p><\/blockquote>\n\n\n\n

You will need to change your PowerShell Execution Policy<\/a><\/p>\n\n\n\n

Step Four – Create the shared mailboxes <\/p>\n\n\n

\nNew-Mailbox -Name "Social Mailbox" -Shared -PrimarySmtpAddress social@domain2.com\n\n<\/pre><\/div>\n\n\n

Step Five – Remove the session<\/p>\n\n\n

\nRemove-PSSession $Session\n<\/pre><\/div>\n\n\n

PowerShell Execution Policy <\/h2>\n\n\n\n

I found this information over on Tachytelic.net<\/a> thanks Paulie! <\/p>\n\n\n\n

Open PowerShell as the administrator <\/p>\n\n\n

\nSet-ExecutionPolicy RemoteSigned\n<\/pre><\/div>\n\n\n

Select ‘Y’ when prompted and you’ll be able to connect. <\/p>\n","protected":false},"excerpt":{"rendered":"

If you’re hosting your email with Microsoft’s Office 365 service, you may be using shared mailboxes. You should if you aren’t, they’re a great way to create email addresses that don’t consume a license. Shared mailboxes can also be shared. The Problem I have a quite a few domains added …<\/p>\n

How to have Office 365 Shared Mailbox with Multiple Domains<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":532,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[5],"tags":[59,60,124,136,152,179,217,218],"yoast_head":"\nHow to have Office 365 Shared Mailbox with Multiple Domains - Random Adult<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to have Office 365 Shared Mailbox with Multiple Domains\" \/>\n<meta property=\"og:description\" content=\"If you’re hosting your email with Microsoft’s Office 365 service, you may be using shared mailboxes. You should if you aren’t, they’re a great way to create email addresses that don’t consume a license. Shared mailboxes can also be shared. The Problem I have a quite a few domains added … How to have Office 365 Shared Mailbox with Multiple Domains Read More \u00bb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/\" \/>\n<meta property=\"og:site_name\" content=\"Random Adult\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-11T04:34:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/randomadult.local\/wp-content\/uploads\/2019\/07\/Windows_10_x64.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1702\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"digitalchild\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dcwhatwhat\" \/>\n<meta name=\"twitter:site\" content=\"@dcwhatwhat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"digitalchild\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/\"},\"author\":{\"name\":\"digitalchild\",\"@id\":\"https:\/\/randomadult.local\/#\/schema\/person\/b0b954202434291ace51b4e7a0a81c04\"},\"headline\":\"How to have Office 365 Shared Mailbox with Multiple Domains\",\"datePublished\":\"2019-07-11T04:34:09+00:00\",\"dateModified\":\"2019-07-11T04:34:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/\"},\"wordCount\":336,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/randomadult.local\/#organization\"},\"keywords\":[\"email\",\"email hosting\",\"microsoft\",\"office365\",\"powershell\",\"shared mailboxes\",\"windows 10\",\"windows10\"],\"articleSection\":[\"Geek\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/\",\"url\":\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/\",\"name\":\"How to have Office 365 Shared Mailbox with Multiple Domains - Random Adult\",\"isPartOf\":{\"@id\":\"https:\/\/randomadult.local\/#website\"},\"datePublished\":\"2019-07-11T04:34:09+00:00\",\"dateModified\":\"2019-07-11T04:34:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/randomadult.local\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to have Office 365 Shared Mailbox with Multiple Domains\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/randomadult.local\/#website\",\"url\":\"https:\/\/randomadult.local\/\",\"name\":\"Random Adult\",\"description\":\"Ramblings of a random adult\",\"publisher\":{\"@id\":\"https:\/\/randomadult.local\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/randomadult.local\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/randomadult.local\/#organization\",\"name\":\"Random Adult\",\"url\":\"https:\/\/randomadult.local\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/randomadult.local\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/randomadult.local\/wp-content\/uploads\/2020\/01\/logo.png\",\"contentUrl\":\"https:\/\/randomadult.local\/wp-content\/uploads\/2020\/01\/logo.png\",\"width\":320,\"height\":134,\"caption\":\"Random Adult\"},\"image\":{\"@id\":\"https:\/\/randomadult.local\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/twitter.com\/dcwhatwhat\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/randomadult.local\/#\/schema\/person\/b0b954202434291ace51b4e7a0a81c04\",\"name\":\"digitalchild\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/randomadult.local\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e0331079f6730910bc7760cb8f781237?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e0331079f6730910bc7760cb8f781237?s=96&d=mm&r=g\",\"caption\":\"digitalchild\"},\"url\":\"https:\/\/randomadult.local\/author\/digitalchild\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to have Office 365 Shared Mailbox with Multiple Domains - Random Adult","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/","og_locale":"en_US","og_type":"article","og_title":"How to have Office 365 Shared Mailbox with Multiple Domains","og_description":"If you’re hosting your email with Microsoft’s Office 365 service, you may be using shared mailboxes. You should if you aren’t, they’re a great way to create email addresses that don’t consume a license. Shared mailboxes can also be shared. The Problem I have a quite a few domains added … How to have Office 365 Shared Mailbox with Multiple Domains Read More \u00bb","og_url":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/","og_site_name":"Random Adult","article_published_time":"2019-07-11T04:34:09+00:00","og_image":[{"width":1702,"height":680,"url":"https:\/\/randomadult.local\/wp-content\/uploads\/2019\/07\/Windows_10_x64.jpg","type":"image\/jpeg"}],"author":"digitalchild","twitter_card":"summary_large_image","twitter_creator":"@dcwhatwhat","twitter_site":"@dcwhatwhat","twitter_misc":{"Written by":"digitalchild","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/#article","isPartOf":{"@id":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/"},"author":{"name":"digitalchild","@id":"https:\/\/randomadult.local\/#\/schema\/person\/b0b954202434291ace51b4e7a0a81c04"},"headline":"How to have Office 365 Shared Mailbox with Multiple Domains","datePublished":"2019-07-11T04:34:09+00:00","dateModified":"2019-07-11T04:34:09+00:00","mainEntityOfPage":{"@id":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/"},"wordCount":336,"commentCount":0,"publisher":{"@id":"https:\/\/randomadult.local\/#organization"},"keywords":["email","email hosting","microsoft","office365","powershell","shared mailboxes","windows 10","windows10"],"articleSection":["Geek"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/","url":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/","name":"How to have Office 365 Shared Mailbox with Multiple Domains - Random Adult","isPartOf":{"@id":"https:\/\/randomadult.local\/#website"},"datePublished":"2019-07-11T04:34:09+00:00","dateModified":"2019-07-11T04:34:09+00:00","breadcrumb":{"@id":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/randomadult.local\/how-to-have-office-365-shared-mailbox-with-multiple-domains\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/randomadult.local\/"},{"@type":"ListItem","position":2,"name":"How to have Office 365 Shared Mailbox with Multiple Domains"}]},{"@type":"WebSite","@id":"https:\/\/randomadult.local\/#website","url":"https:\/\/randomadult.local\/","name":"Random Adult","description":"Ramblings of a random adult","publisher":{"@id":"https:\/\/randomadult.local\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/randomadult.local\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/randomadult.local\/#organization","name":"Random Adult","url":"https:\/\/randomadult.local\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/randomadult.local\/#\/schema\/logo\/image\/","url":"https:\/\/randomadult.local\/wp-content\/uploads\/2020\/01\/logo.png","contentUrl":"https:\/\/randomadult.local\/wp-content\/uploads\/2020\/01\/logo.png","width":320,"height":134,"caption":"Random Adult"},"image":{"@id":"https:\/\/randomadult.local\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/twitter.com\/dcwhatwhat"]},{"@type":"Person","@id":"https:\/\/randomadult.local\/#\/schema\/person\/b0b954202434291ace51b4e7a0a81c04","name":"digitalchild","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/randomadult.local\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e0331079f6730910bc7760cb8f781237?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e0331079f6730910bc7760cb8f781237?s=96&d=mm&r=g","caption":"digitalchild"},"url":"https:\/\/randomadult.local\/author\/digitalchild\/"}]}},"_links":{"self":[{"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/posts\/530"}],"collection":[{"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/comments?post=530"}],"version-history":[{"count":0,"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/posts\/530\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/media\/532"}],"wp:attachment":[{"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/media?parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/categories?post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomadult.local\/wp-json\/wp\/v2\/tags?post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}