{"id":580,"date":"2018-06-25T08:00:39","date_gmt":"2018-06-25T14:00:39","guid":{"rendered":"https:\/\/practicalpowershell.com\/?p=580"},"modified":"2020-03-14T16:35:59","modified_gmt":"2020-03-14T22:35:59","slug":"remote-shared-mailbox-exo","status":"publish","type":"post","link":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/","title":{"rendered":"Remote Shared Mailbox (ExO)"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2020\/03\/shared-mailbox.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2020\/03\/shared-mailbox.png?resize=100%2C100&#038;ssl=1\" alt=\"\" width=\"100\" height=\"100\" class=\"alignleft size-full wp-image-581\" \/><\/a>For this tip of the week we&#8217;ll talk about something specific in Exchange Hybrid and PowerShell. Specifically it has to do with the creation of Remote Mailboxes in you Exchange Online tenant. From your Exchange on-premises server there is a cmdlet called New-RemoteMailbox. While this cmdlet is great for creating mailboxes in Exchange Online as well as their connected AD object for you in one fell swoop, there was a limit to its functionality. Simply put, you could not add a remote mailbox directly with the cmdlet. <BR><br \/>\nWe can now create a Shared Mailbox like so:<BR><br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\nNew-RemoteMailbox -Name &quot;Accounts Payable&quot; -Shared -UserPrincipalName AccountsPayable@domain.com -OnPremisesOrganizationalUnit &quot;domain.com\/Shared&quot;<br \/>\n[\/sourcecode]<br \/>\nNotice the one-liner is similar to how you were able to create a remote resource mailbox in Exchange Online. Those mailboxes could be created with the -Equipment or -Room switch as needed.<BR><br \/>\nPrior to these changes in order to create a Shared Remote Mailbox prior to these changes you would have to do the following in PowerShell:<BR><br \/>\n(1) From your Exchange on-premises server, run something similar to this:<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\nNew-RemoteMailbox \u2026\u2026<br \/>\n[\/sourcecode]<br \/>\n(2) Then you would start a delta sync from your Azure AD Connect server:<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\nStart-ADSyncSyncCycle Delta<br \/>\n[\/sourcecode]<br \/>\n(3) Finally, once that mailbox was in your Exchange Online tenant, you would be able to convert the mailbox into a shared mailbox. However, you would need to connect to Exchange Online PowerShell which could be complicated by an MFA login. [** Note ** If you haven&#8217;t turned on MFA for those who have access to Exchange Online PowerShell, you should. It is a best practice as per Microsoft.]<BR><br \/>\n<em>Non-MFA Method<\/em><br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\n$LiveCred = Get-Credential<br \/>\n$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/ps.outlook.com\/powershell\/ -Credential $LiveCred -Authentication Basic -AllowRedirection<br \/>\nImport-PSSession $Session<br \/>\n[\/sourcecode]<br \/>\nMFA Method<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\n$LiveCred = Get-Credential<br \/>\nConnect-EXOPSSession -Credential $LiveCred<br \/>\n[\/sourcecode]<br \/>\nOnce connected, you were then able to convert the mailbox, with PowerShell, to a shared mailbox with a one-liner like this:<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\nGet-Mailbox NewShared | Set-Mailbox -Type Shared<br \/>\n[\/sourcecode]<br \/>\n<em>Notes from Microsoft<BR><\/em><br \/>\n<a href=\"https:\/\/github.com\/MicrosoftDocs\/office-docs-powershell\/blob\/master\/exchange\/exchange-ps\/exchange\/federation-and-hybrid\/New-RemoteMailbox.md\">https:\/\/github.com\/MicrosoftDocs\/office-docs-powershell\/blob\/master\/exchange\/exchange-ps\/exchange\/federation-and-hybrid\/New-RemoteMailbox.md<\/a><BR><br \/>\n<em>&#8220;-Shared<br \/>\nNote: This switch is available only in Exchange 2013 CU21 or later and Exchange 2016 CU10 or later. To use this switch, you also need to run setup.exe \/PrepareAD. For more information, see KB4133605.<br \/>\nThe Shared switch specifies that the mailbox in the service should be created as a shared mailbox. You don&#8217;t need to specify a value with this switch.<br \/>\nYou can&#8217;t use this switch with the Room or Equipment switches.&#8221;<\/em><br \/>\n** Caveats to the new parameter &#8211; you will need to run this prior to seeing the parameter available in PowerShell:<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\nsetup \/preparead \/IAcceptExchangeServerLicenseTerms<br \/>\n[\/sourcecode]<br \/>\nMake sure to also read the just posted article about Shared Mailbox sizing and provisioning at the EHLO blog &#8211; <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/exchange-team-blog\/correcting-shared-mailbox-provisioning-and-sizing\/ba-p\/607991\">https:\/\/techcommunity.microsoft.com\/t5\/exchange-team-blog\/correcting-shared-mailbox-provisioning-and-sizing\/ba-p\/607991<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this tip of the week we&#8217;ll talk about something specific in Exchange Hybrid and PowerShell. Specifically it has to do with the creation of Remote Mailboxes in you Exchange Online tenant. From your Exchange on-premises server there is a cmdlet called New-RemoteMailbox. While this cmdlet is great for creating mailboxes in Exchange Online as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Remote Shared Mailbox (ExO) - Practical PowerShell<\/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:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Remote Shared Mailbox (ExO) - Practical PowerShell\" \/>\n<meta property=\"og:description\" content=\"For this tip of the week we&#8217;ll talk about something specific in Exchange Hybrid and PowerShell. Specifically it has to do with the creation of Remote Mailboxes in you Exchange Online tenant. From your Exchange on-premises server there is a cmdlet called New-RemoteMailbox. While this cmdlet is great for creating mailboxes in Exchange Online as [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/\" \/>\n<meta property=\"og:site_name\" content=\"Practical PowerShell\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-25T14:00:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-14T22:35:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/practicalpowershell.com\/wp-content\/uploads\/2020\/03\/shared-mailbox.png\" \/>\n<meta name=\"author\" content=\"damian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"damian\" \/>\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:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/\"},\"author\":{\"name\":\"damian\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#\\\/schema\\\/person\\\/4d0733c81966e744aabbb49f56d64deb\"},\"headline\":\"Remote Shared Mailbox (ExO)\",\"datePublished\":\"2018-06-25T14:00:39+00:00\",\"dateModified\":\"2020-03-14T22:35:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/\"},\"wordCount\":492,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#\\\/schema\\\/person\\\/4d0733c81966e744aabbb49f56d64deb\"},\"image\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/practicalpowershell.com\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/shared-mailbox.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/\",\"url\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/\",\"name\":\"Remote Shared Mailbox (ExO) - Practical PowerShell\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/practicalpowershell.com\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/shared-mailbox.png\",\"datePublished\":\"2018-06-25T14:00:39+00:00\",\"dateModified\":\"2020-03-14T22:35:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/practicalpowershell.com\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/shared-mailbox.png?fit=100%2C100&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/practicalpowershell.com\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/shared-mailbox.png?fit=100%2C100&ssl=1\",\"width\":100,\"height\":100},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/remote-shared-mailbox-exo\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/practicalpowershell.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Remote Shared Mailbox (ExO)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#website\",\"url\":\"https:\\\/\\\/practicalpowershell.com\\\/\",\"name\":\"Practical PowerShell\",\"description\":\"PowerShell books written by experts\",\"publisher\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#\\\/schema\\\/person\\\/4d0733c81966e744aabbb49f56d64deb\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/practicalpowershell.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#\\\/schema\\\/person\\\/4d0733c81966e744aabbb49f56d64deb\",\"name\":\"damian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g\",\"caption\":\"damian\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Remote Shared Mailbox (ExO) - Practical PowerShell","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:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/","og_locale":"en_US","og_type":"article","og_title":"Remote Shared Mailbox (ExO) - Practical PowerShell","og_description":"For this tip of the week we&#8217;ll talk about something specific in Exchange Hybrid and PowerShell. Specifically it has to do with the creation of Remote Mailboxes in you Exchange Online tenant. From your Exchange on-premises server there is a cmdlet called New-RemoteMailbox. While this cmdlet is great for creating mailboxes in Exchange Online as [&hellip;]","og_url":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/","og_site_name":"Practical PowerShell","article_published_time":"2018-06-25T14:00:39+00:00","article_modified_time":"2020-03-14T22:35:59+00:00","og_image":[{"url":"https:\/\/practicalpowershell.com\/wp-content\/uploads\/2020\/03\/shared-mailbox.png","type":"","width":"","height":""}],"author":"damian","twitter_card":"summary_large_image","twitter_misc":{"Written by":"damian","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/#article","isPartOf":{"@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/"},"author":{"name":"damian","@id":"https:\/\/practicalpowershell.com\/#\/schema\/person\/4d0733c81966e744aabbb49f56d64deb"},"headline":"Remote Shared Mailbox (ExO)","datePublished":"2018-06-25T14:00:39+00:00","dateModified":"2020-03-14T22:35:59+00:00","mainEntityOfPage":{"@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/"},"wordCount":492,"commentCount":0,"publisher":{"@id":"https:\/\/practicalpowershell.com\/#\/schema\/person\/4d0733c81966e744aabbb49f56d64deb"},"image":{"@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/#primaryimage"},"thumbnailUrl":"https:\/\/practicalpowershell.com\/wp-content\/uploads\/2020\/03\/shared-mailbox.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/","url":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/","name":"Remote Shared Mailbox (ExO) - Practical PowerShell","isPartOf":{"@id":"https:\/\/practicalpowershell.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/#primaryimage"},"image":{"@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/#primaryimage"},"thumbnailUrl":"https:\/\/practicalpowershell.com\/wp-content\/uploads\/2020\/03\/shared-mailbox.png","datePublished":"2018-06-25T14:00:39+00:00","dateModified":"2020-03-14T22:35:59+00:00","breadcrumb":{"@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/#primaryimage","url":"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2020\/03\/shared-mailbox.png?fit=100%2C100&ssl=1","contentUrl":"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2020\/03\/shared-mailbox.png?fit=100%2C100&ssl=1","width":100,"height":100},{"@type":"BreadcrumbList","@id":"https:\/\/practicalpowershell.com\/remote-shared-mailbox-exo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/practicalpowershell.com\/"},{"@type":"ListItem","position":2,"name":"Remote Shared Mailbox (ExO)"}]},{"@type":"WebSite","@id":"https:\/\/practicalpowershell.com\/#website","url":"https:\/\/practicalpowershell.com\/","name":"Practical PowerShell","description":"PowerShell books written by experts","publisher":{"@id":"https:\/\/practicalpowershell.com\/#\/schema\/person\/4d0733c81966e744aabbb49f56d64deb"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/practicalpowershell.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/practicalpowershell.com\/#\/schema\/person\/4d0733c81966e744aabbb49f56d64deb","name":"damian","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g","caption":"damian"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g"}}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":1,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":582,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/posts\/580\/revisions\/582"}],"wp:attachment":[{"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}