{"id":15400,"date":"2022-10-18T03:46:26","date_gmt":"2022-10-18T03:46:26","guid":{"rendered":"https:\/\/www.insentragroup.com\/nz\/?p=15400"},"modified":"2024-10-10T07:59:43","modified_gmt":"2024-10-10T07:59:43","slug":"removing-your-last-exchange-server-part-1-managing-recipients","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/nz\/insights\/geek-speak\/modern-workplace\/removing-your-last-exchange-server-part-1-managing-recipients\/","title":{"rendered":"Removing Your Last Exchange Server: Part 1- Managing Recipients"},"content":{"rendered":"\n<p><a>So<\/a> my fellow Insentra crewmate, Dan Snape, has inspired you to finally get rid of your last Exchange server with his \u201c<a href=\"https:\/\/www.insentragroup.com\/nz\/insights\/geek-speak\/modern-workplace\/updates-to-microsoft-exchange-2019\/\" target=\"_blank\" rel=\"noreferrer noopener\">Updates to Microsoft Exchange 2019<\/a>\u201d <a>blog<\/a> article. What&#8217;s next?<\/p>\n\n\n\n<p>With Exchange 2019 CU 12 as your current schema version, you can do so in a fully supported environment.&nbsp; Once you\u2019ve completed the commands for removing your final Exchange server, you can walk through the below actions for managing your recipients since your source of authority (SOA) is still on-premises Active Directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Recipient Management EMT Security Group<\/h2>\n\n\n\n<p>IIf you\u2019ve followed the steps outlined in <strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/exchange\/manage-hybrid-exchange-recipients-with-management-tools\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Microsoft&#8217;s &#8216;Manage recipients in Exchange Hybrid environments using Management tools&#8217;<\/a><\/strong> article, you\u2019ll note a new active directory security group was created called the \u201cRecipient Management EMT.\u201d Members of this group will be able to manage recipients in your organisation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Recipient Management Commands<\/h2>\n\n\n\n<p>As a reminder, any changes made to the on-premises AD environment will be synced to Azure AD and M365 via your Azure AD Connect server.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>To manage your synchronised recipients and groups, connect to the new management server\u2019s PowerShell and execute the following command:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Add-PSSnapin *RecipientManagement<\/code><\/pre>\n\n\n\n<p>This will import all the required commands for managing your recipients. Run this command every time you need to manage recipients.<\/p>\n\n\n\n<p>I have broken down the available commands into the table below with a brief description for each:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr style=\"background-color: #F37237; color: #fff; border: 1px solid #F37237;\"><td>MailUser Commands<\/td><td>Notes<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/set-mailuser?view=exchange-ps\" rel=\"noopener nofollow\">Set-MailUser<\/a><\/strong><\/td><td>Used to set attributes onto a mail user<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/get-mailuser?view=exchange-ps\" rel=\"noopener nofollow\">Get-MailUser<\/a><\/strong><\/td><td>Used to get the results of a mail user<\/td><\/tr><tr><td><strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/new-mailuser?view=exchange-ps\" rel=\"nofollow noopener\" target=\"_blank\">New-MailUser<\/a><\/strong><\/td><td>Used to create a new mail user<\/td><\/tr><tr><td><strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/remove-mailuser?view=exchange-ps\" rel=\"nofollow noopener\" target=\"_blank\">Remove-MailUser<\/a><\/strong><\/td><td>Used to remove a mail user<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/disable-mailuser?view=exchange-ps\" rel=\"noopener nofollow\">Disable-MailUser<\/a><\/strong><\/td><td>Used to disable a mailbox for a mail user<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/enable-mailuser?view=exchange-ps\" rel=\"noopener nofollow\">Enable-MailUser<\/a><\/strong><\/td><td>Used to enable a new mail user<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr style=\"background-color: #F37237; color: #fff; border: 1px solid #F37237;\"><td>MailContact Commands<\/td><td>Notes<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/set-mailcontact?view=exchange-ps\" rel=\"noopener nofollow\">Set-MailContact<\/a><\/strong><\/td><td>Used to set attributes onto a mail contact<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/get-mailcontact?view=exchange-ps\" rel=\"noopener nofollow\">Get-MailContact<\/a><\/strong><\/td><td>Used to get the results of a mail contact<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/new-mailcontact?view=exchange-ps\" rel=\"noopener nofollow\">New-MailContact<\/a><\/strong><\/td><td>Used to create a new mail contact<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/remove-mailcontact?view=exchange-ps\" rel=\"noopener nofollow\">Remove-MailContact<\/a><\/strong><\/td><td>Used to remove a mail contact<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/disable-mailcontact?view=exchange-ps\" rel=\"noopener nofollow\">Disable-MailContact<\/a><\/strong><\/td><td>Used to disable a mail contact<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/enable-mailcontact?view=exchange-ps\" rel=\"noopener nofollow\">Enable-MailContact<\/a><\/strong><\/td><td>Used to enable a mail contact<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr style=\"background-color: #F37237; color: #fff; border: 1px solid #F37237;\"><td>RemoteMailbox<\/td><td>Notes<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/set-remotemailbox?view=exchange-ps\" rel=\"noopener nofollow\">Set-RemoteMailbox<\/a><\/strong><\/td><td>Used to set attributes onto a remote mailbox<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/get-remotemailbox?view=exchange-ps\" rel=\"noopener nofollow\">Get-RemoteMailbox<\/a><\/strong><\/td><td>Used to get attributes of a remote mailbox<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/new-remotemailbox?view=exchange-ps\" rel=\"noopener nofollow\">New-RemoteMailbox<\/a><\/strong><\/td><td>Used to create a new remote mailbox<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/remove-remotemailbox?view=exchange-ps\" rel=\"noopener nofollow\">Remove-RemoteMailbox<\/a><\/strong><\/td><td>Used to remove a remote mailbox<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/disable-remotemailbox?view=exchange-ps\" rel=\"noopener nofollow\">Disable-RemoteMailbox<\/a><\/strong><\/td><td>Used to disable a remote mailbox<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/enable-remotemailbox?view=exchange-ps\" rel=\"noopener nofollow\">Enable-RemoteMailbox<\/a><\/strong><\/td><td>Used to enable a remote mailbox<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr style=\"background-color: #F37237; color: #fff; border: 1px solid #F37237;\"><td>DistributionGroup<\/td><td>Notes<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/set-distributiongroup?view=exchange-ps\" rel=\"noopener nofollow\">Set-DistributionGroup<\/a><\/strong><\/td><td>Used to set attributes of a distribution group<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/get-distributiongroup?view=exchange-ps\" rel=\"noopener nofollow\">Get-DistributionGroup<\/a><\/strong><\/td><td>Used to get the results of a distribution group<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/new-distributiongroup?view=exchange-ps\" rel=\"noopener nofollow\">New-DistributionGroup<\/a><\/strong><\/td><td>Used to create a new distribution group<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/remove-distributiongroup?view=exchange-ps\" rel=\"noopener nofollow\">Remove-DistributionGroup<\/a><\/strong><\/td><td>Used to remove a distribution group<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/disable-distributiongroup?view=exchange-ps\" rel=\"noopener nofollow\">Disable-DistributionGroup<\/a><\/strong><\/td><td>Used to disable a distribution group<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/enable-distributiongroup?view=exchange-ps\" rel=\"noopener nofollow\">Enable-DistributionGroup<\/a><\/strong><\/td><td>Used to enable a distribution group<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr style=\"background-color: #F37237; color: #fff; border: 1px solid #F37237;\"><td>DistributionGroupMember<\/td><td>Notes<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/get-distributiongroupmember?view=exchange-ps\" rel=\"noopener nofollow\">Get-DistributionGroupMember<\/a><\/strong><\/td><td>Used to get the members of a distribution group<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/add-distributiongroupmember?view=exchange-ps\" rel=\"noopener nofollow\">Add-DistributionGroupMember<\/a><\/strong><\/td><td>Used to add a member to a distribution group<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/remove-distributiongroupmember?view=exchange-ps\" rel=\"noopener nofollow\">Remove-DistributionGroupMember<\/a><\/strong><\/td><td>Used to remove a member from a distribution group<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/update-distributiongroupmember?view=exchange-ps\" rel=\"noopener nofollow\">Update-DistributionGroupMember<\/a><\/strong><\/td><td>Used to update the distribution group membership<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr style=\"background-color: #F37237; color: #fff; border: 1px solid #F37237;\"><td>EmailAddressPolicy<\/td><td>Notes<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/set-emailaddresspolicy?view=exchange-ps\" rel=\"noopener nofollow\">Set-EmailAddressPolicy<\/a><\/strong><\/td><td>Used to set an email address policy<\/td><\/tr><tr><td><strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/get-emailaddresspolicy?view=exchange-ps\" rel=\"nofollow noopener\" target=\"_blank\">Get-EmailAddressPolicy<\/a><\/strong><\/td><td>Used to get the results of an email address policy<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/new-emailaddresspolicy?view=exchange-ps\" rel=\"noopener nofollow\">New-EmailAddressPolicy<\/a><\/strong><\/td><td>Used to create a new email address policy<\/td><\/tr><tr><td><strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/remove-emailaddresspolicy?view=exchange-ps\" rel=\"nofollow noopener\" target=\"_blank\">Remove-EmailAddressPolicy<\/a><\/strong><\/td><td>Used to remove an email address policy<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/update-emailaddresspolicy?view=exchange-ps\" rel=\"noopener nofollow\">Update-EmailAddressPolicy<\/a><\/strong><\/td><td>Used to update an email address policy<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr style=\"background-color: #F37237; color: #fff; border: 1px solid #F37237;\"><td>User<\/td><td>Notes<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/set-user?view=exchange-ps\" rel=\"noopener nofollow\">Set-User<\/a><\/strong><\/td><td>Used to set the attributes of a user<\/td><\/tr><tr><td><strong><a target=\"_blank\" href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/exchange\/get-user?view=exchange-ps\" rel=\"noopener nofollow\">Get-User<\/a><\/strong><\/td><td>Used to get the results of a user<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>At first glance, this looks like a lot of commands and the list can look quite overwhelming (especially if you&#8217;re not comfortable with or don\u2019t use PowerShell regularly). It may help if you look at this in a different way. Instead of seeing a long list of commands, break it down into seven categories (as demonstrated in the table above):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Mail users<\/li><li>Mail contacts<\/li><li>Remote mailboxes<\/li><li>Distribution groups<\/li><li>Distribution group memberships<\/li><li>Email address policies<\/li><li>Users<\/li><\/ul>\n\n\n\n<p>This brings us to the end of part 1 of Managing Recipients when Removing Your Last Exchange Server.<\/p>\n\n\n\n<p>In part 2, &#8220;Removing Your Last Exchange Server: Part 2 &#8211; <a href=\"https:\/\/www.insentragroup.com\/nz\/insights\/geek-speak\/modern-workplace\/removing-your-last-exchange-server-part-2-remote-recipient-commands\/\" target=\"_blank\" rel=\"noreferrer noopener\">Remote Recipient Commands<\/a>&#8221; we will dive into the seven categories of recipient commands.<\/p>\n\n\n\n<p>For any questions or feedback, as always, you are welcome to <a href=\"https:\/\/www.insentragroup.com\/au\/contact\/\">contact us<\/a> (we\u2019d love to hear from you!).<\/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>Completed the commands for removing your final Exchange server? Follow the steps for managing your recipients outlined in this blog series. <\/p>\n","protected":false},"author":71,"featured_media":15403,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-15400","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-modern-workplace","entry"],"_links":{"self":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts\/15400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/comments?post=15400"}],"version-history":[{"count":8,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts\/15400\/revisions"}],"predecessor-version":[{"id":15453,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts\/15400\/revisions\/15453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/media\/15403"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/media?parent=15400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/categories?post=15400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/tags?post=15400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}