{"id":15412,"date":"2022-10-18T07:00:33","date_gmt":"2022-10-18T07:00:33","guid":{"rendered":"https:\/\/www.insentragroup.com\/nz\/?p=15412"},"modified":"2024-10-10T08:05:26","modified_gmt":"2024-10-10T08:05:26","slug":"removing-your-last-exchange-server-part-2-remote-recipient-commands","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/nz\/insights\/geek-speak\/modern-workplace\/removing-your-last-exchange-server-part-2-remote-recipient-commands\/","title":{"rendered":"Removing Your Last Exchange Server: Part 2 &#8211; Remote Recipient Commands"},"content":{"rendered":"\n<p>Welcome back to my three-part blog series on Removing Your Last Exchange Server. To recap part one of this series, we reviewed what commands were available on your new management server after retiring your last Exchange server in your synced environment. We also covered how a new security group called \u201c<a href=\"https:\/\/www.insentragroup.com\/nz\/insights\/geek-speak\/modern-workplace\/removing-your-last-exchange-server-part-1-managing-recipients\/\" target=\"_blank\" rel=\"noreferrer noopener\">Recipient Management EMT<\/a>\u201d was created when you finished running through the steps of creating an Exchange hybrid management only server.<\/p>\n\n\n\n<p>In part two, we are going to cover the basics of Remote Recipient Commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The \u201cGet\u201d Command<\/h2>\n\n\n\n<p>\u201cGet\u201d in PowerShell will output the results of a PowerShell cmdlet, such as Get-MailUser. Used by itself it will not modify attributes. For example, \u201cGet-MailUser -Identity \u201cMickey Mantle\u201d will return the results of the mail user, Mickey Mantle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The \u201cSet\u201d Command<\/h2>\n\n\n\n<p>\u201cSet\u201d in PowerShell will modify the existing attributes of the specified cmdlet. For example, if you run \u201cSet-DistributionGroup -Identity &#8220;HumanResources&#8221; -DisplayName &#8220;Human Resources&#8221;\u201d, you will have modified the display name of the distribution Group \u201cHumanResources.\u201d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The \u201cNew\u201d Command<\/h2>\n\n\n\n<p>\u201cNew\u201d commands will create new objects. For example, running \u201cNew-MailContact -Name &#8220;Aaron Judge&#8221; -ExternalEmailAddress &#8220;AaronJudge@Yankees.com&#8221;, will create a new mail contact called Aaron Judge with his external email address set to AaronJudge@Yankees.com.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The \u201cRemove\u201d Command<\/h2>\n\n\n\n<p>Remove command will delete items. If you were to run \u201cRemove-DistributionGroup -Identity \u201cHumanResources\u201d, you will have deleted the distribution group named HumanResources.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The \u201cDisable\u201d Command<\/h2>\n\n\n\n<p>The \u201cdisable\u201d command will disable the object of the specified property. Such as, Disable-RemoteMailbox -Identity \u201cMikeTrout@Angels.com\u201d. In this case, it will disable the remote mailbox attributes (causing the mailbox to be removed in Exchange Online upon a successful directory sync) but will maintain the on-premises AD user account for the user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The \u201cEnable\u201d Command<\/h2>\n\n\n\n<p>The \u201cenable\u201d command will enable the specified action against a pre-existing AD object. For example, running \u201cEnable-MailUser -Identity \u201cJustin Turner -ExternalEmailAddress JustinTurner@alex-lugoodgers.com\u201d will enable Justin Turner\u2019s on-premises AD user account with an external email address but will not create a remote mailbox.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Commands<\/h2>\n\n\n\n<p>The \u201cset\u201d, \u201cget\u201d, \u201cnew\u201d, \u201cremove\u201d, and \u201cdisable\u201d actions are common among most of the managed recipient commands. DistributionGroupMember has two primary commands \u201cadd\u201d and \u201cupdate\u201d.<\/p>\n\n\n\n<p>Add-DistributionGroupMember will add a user to the specified distribution group and Update-DistributionGroupmember will update all members of the specified distribution group to the users you\u2019ve identified in the script.<\/p>\n\n\n\n<p>As well as the actions for DistributionGroupMember, you\u2019ll note the EmailAddressPolicy has an \u201cupdate\u201d action. Update-EmailAddressPolicy is used for pushing out changes applied to the email address policy to all recipients assigned to the policy.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>This completes our summary of the actions and commands available for managing your recipients.<\/p>\n\n\n\n<p>Join us for the final part of Removing Your Last Exchange Server: Part 3- <a href=\"https:\/\/www.insentragroup.com\/nz\/insights\/geek-speak\/modern-workplace\/removing-your-last-exchange-server-part-3-reviewing-common-commands\/\" target=\"_blank\" rel=\"noreferrer noopener\">Reviewing Common Commands<\/a>.<\/p>\n\n\n\n<p>For more information, questions or feedback, as always, please <a href=\"https:\/\/www.insentragroup.com\/nz\/contact\/\" target=\"_blank\" rel=\"noreferrer noopener\">get in touch<\/a> with us!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In part two Removing Your Last Exchange Server, we cover the basics of Remote Recipient Commands.<\/p>\n","protected":false},"author":71,"featured_media":15413,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-15412","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\/15412","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=15412"}],"version-history":[{"count":7,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts\/15412\/revisions"}],"predecessor-version":[{"id":15455,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts\/15412\/revisions\/15455"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/media\/15413"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/media?parent=15412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/categories?post=15412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/tags?post=15412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}