{"id":15564,"date":"2022-10-18T07:27:27","date_gmt":"2022-10-18T07:27:27","guid":{"rendered":"https:\/\/www.insentragroup.com\/au\/insights\/uncategorized\/removing-your-last-exchange-server-part-3-reviewing-common-commands\/"},"modified":"2024-10-10T08:08:02","modified_gmt":"2024-10-10T08:08:02","slug":"removing-your-last-exchange-server-part-3-reviewing-common-commands","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/au\/insights\/geek-speak\/modern-workplace\/removing-your-last-exchange-server-part-3-reviewing-common-commands\/","title":{"rendered":"Removing Your Last Exchange Server: Part 3 \u2013 Reviewing Common Commands"},"content":{"rendered":"\n<p>Welcome back to Removing Your Last Exchange Server blog series. In part two Remote Recipient Commands, we summarised the actions available for the <a href=\"https:\/\/www.insentragroup.com\/au\/insights\/geek-speak\/modern-workplace\/removing-your-last-exchange-server-part-2-remote-recipient-commands\/\" target=\"_blank\" rel=\"noreferrer noopener\">Recipient Management PowerShell Commands<\/a>, such as \u201cget\u201d, \u201cset\u201d, \u201cenable\u201d and \u201cremove.\u201d<\/p>\n\n\n\n<p>For the third and final part of this series we will be reviewing the more common commands you will likely be using regularly to <a href=\"https:\/\/www.insentragroup.com\/au\/insights\/geek-speak\/migrations\/a-modern-migration-challenge\/\" target=\"_blank\" rel=\"noreferrer noopener\">manage your recipients synced from on-premises to M365<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RemoteMailbox<\/h2>\n\n\n\n<p>When you finally remove your last Exchange server, the most common scenarios you will likely encounter will deal with managing your remote mailboxes. My colleague, Aaron Parker, also wrote a blog about using the Enable-RemoteMailbox Command which I highly recommend.<\/p>\n\n\n\n<p>From the perspective of your on-premises environment, all of your mailboxes will now be M365 mailboxes\u2026remote mailboxes.<br>The most likely scenario will be when you are creating new user accounts. Often my customers have first created the AD user account in Active Directory and then executed the following command to enable an M365 mailbox for the user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Enable-RemoteMailbox -Identity \u201cTed Williams\u201d -RemoteRoutingAddress TedWilliams@GreatestHitter.mail.onmicrosoft.com<\/code><\/pre>\n\n\n\n<p>The above command will take the AD user \u201cTed Williams\u201d and add the Exchange attributes to his user account. Upon a successful sync to M365, M365 will create a mailbox for Ted Williams. Remember to license the user in M365! In some cases, you may want to review the properties of a remote mailbox. To do so, you can run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-RemoteMailbox -Identity \u201cTed Williams\u201d | FL<\/code><\/pre>\n\n\n\n<p>This will provide all the attributes for the specified user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Remove-RemoteMailbox vs Disable-RemoteMailbox<\/h2>\n\n\n\n<p>Please note Disable-RemoteMailbox will disable the user\u2019s M365 mailbox but keep the on-premises AD account. Remove-RemoteMailbox only applies to shared mailboxes in the cloud. It will delete both the shared mailbox and the associated on-premises AD account.<\/p>\n\n\n\n<p>To remove the mailbox but keep the AD account:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Disable-RemoteMailbox \u201cDerek Jeter\u201d<\/code><\/pre>\n\n\n\n<p>Derek Jeter will still have an AD user account, but his mailbox will be deleted by M365.<\/p>\n\n\n\n<p>To delete a user in AD and its mailbox, I would recommend following the easiest method, which is to delete the AD object. This will remove the mailbox from M365 upon the next sync.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>As you would have noted throughout this blog series, there are several commands which come with the Remote Recipients management toolset. It may seem overwhelming at first if you\u2019re used to using a GUI, but over time you will become comfortable with the process of managing your remote recipients from on-premises. Heck, you may even decide to script your user onboarding process through scripting. Go crazy!<\/p>\n\n\n\n<p>If you would like Insentra&#8217;s <a href=\"https:\/\/www.insentragroup.com\/au\/services\/professional-services\/migrations\/\" target=\"_blank\" rel=\"noreferrer noopener\">IT Migrations<\/a> to help your company with removing your last Exchange server in your hybrid configuration, please <a href=\"https:\/\/www.insentragroup.com\/au\/contact\/\" target=\"_blank\" rel=\"noreferrer noopener\">contact us<\/a>.<\/p>\n\n\n\n<style>\nbody .wp-block-code>code {\n    color: #000;\n    background: #ccc;\n}\n<\/style>\n","protected":false},"excerpt":{"rendered":"<p>Learn about the more common Exchange PowerShell Commands you will likely be using regularly to manage your recipients synced from on-premises to M365.  <\/p>\n","protected":false},"author":71,"featured_media":15565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-15564","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-modern-workplace","entry"],"_links":{"self":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/15564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/comments?post=15564"}],"version-history":[{"count":1,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/15564\/revisions"}],"predecessor-version":[{"id":15570,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/15564\/revisions\/15570"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/media\/15565"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/media?parent=15564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/categories?post=15564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/tags?post=15564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}