{"id":5606,"date":"2019-09-08T12:04:26","date_gmt":"2019-09-08T17:04:26","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=5606"},"modified":"2023-07-13T16:21:55","modified_gmt":"2023-07-13T21:21:55","slug":"create-a-new-exchange-account-with-powershell","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5606","title":{"rendered":"Create a New Exchange Account with Powershell"},"content":{"rendered":"<p>We use unique e-mail addresses every time we give out our address. Because that occasionally means I need to <em>reply<\/em> to someone using that address, I set up a quick web form to send e-mail from any arbitrary address in my domain. Every now and again, though &#8230; we need to actually <em>reply<\/em> to a message (attach pictures, get some really specific formatting without wasting a lot of time coming up with the appropriate HTML, etc).<\/p>\n<p>If the Exchange powershell snap-in is not loaded (the new-mailbox command is not found), load the snap-in:<\/p>\n<pre>Add-PSSnapIn -Name Microsoft.Exchange.Management.PowerShell.SnapIn<\/pre>\n<p>Then create a new Exchange account and granting full access to the person who wants to send mail from that address.<\/p>\n<pre>New-Mailbox -Name \"NewAccount\" -Alias NewAccount -LastName \"NewAccount\" -UserPrincipalName NewAccount@example.com -Password (ConvertTo-SecureString -String 'haW29oihOI#192QHe983QHR9' -AsPlainText -Force)\r\nAdd-MailboxPermission -Identity \"NewAccount@example.com\" -User \"me@example.com\" -AccessRights FullAccess -InheritanceType All<\/pre>\n<p>Or adding a new primary SMTP address to an existing account:<\/p>\n<pre>set-mailbox -Identity NewAccount@example.com -PrimarySmtpAddress \"ANewAddress@example.com\" -EmailAddressPolicyEnabled $false<\/pre>\n<p>When adding a new address, the existing primary SMTP address becomes a secondary proxy address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We use unique e-mail addresses every time we give out our address. Because that occasionally means I need to reply to someone using that address, I set up a quick web form to send e-mail from any arbitrary address in my domain. Every now and again, though &#8230; we need to actually reply to a &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[64,821],"class_list":["post-5606","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-exchange","tag-microsoft-exchange"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5606"}],"version-history":[{"count":5,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5606\/revisions"}],"predecessor-version":[{"id":5643,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5606\/revisions\/5643"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}