From 07eb54a6ee7474fa50167b235b03d6e4f29f28df Mon Sep 17 00:00:00 2001 From: EdTheDev Date: Sun, 26 Nov 2023 23:23:54 -0600 Subject: [PATCH 1/1] Add Exchange Online shared mailbox or distribution group --- doc/exchange_online.md | 82 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 doc/exchange_online.md diff --git a/doc/exchange_online.md b/doc/exchange_online.md new file mode 100644 index 0000000..6b04807 --- /dev/null +++ b/doc/exchange_online.md @@ -0,0 +1,82 @@ + +## Setup + +1. LOL. It defaults to `bash`. Change that. + +2. Probably one-time install + + ```powershell + Install-Module -Name PSWSMan -AcceptLicense -Confirm + Install-WSMan # Web services for management + Import-Module ExchangeOnlineManagement + ``` + +3. Probably per session: + + ```powershell + Import-Module ExchangeOnlineManagement + Connect-ExchangeOnline + ``` + +## Tasks + +### Distribution Group + +Seems like this is an older way to do it. + +1. Create distribution group + + ```powershell + $groupname = 'loves_tacos' + new-distributiongroup $groupname + ``` + +2. Add some folks to it + + ```powershell + Add-DistributionGroupMember -Identity $groupname -Member bob + Add-DistributionGroupMember -Identity $groupname -Member larry + ``` + +3. Verify the list is as desired + + + ```powershell + get-distributiongroupmember -identity $groupname + ``` + +4. Add an email alias + + ```powershell + $domain = 'tacos.net' + set-distributiongroup -identity $groupname -EmailAddresses @{add="$groupname@$domain"} + get-distributiongroup $groupname | Select Alias, EmailAddresses, ManagedBy, DistinguishedName | Format-List + ``` + + + +### Or create an entire shared mailbox + +1. Create a shared mailbox + + ```powershell + $groupname = 'tacos' + $displayname = 'Loves Tacos' + New-Mailbox -Shared -Name "$groupname" -DisplayName $displayname + ``` + +2. Decide who to add. + + You can review your mailbox users with `Get-Mailbox` + +3. Add people + + ```powershell + Add-MailboxPermission -Identity $groupname -AccessRights FullAccess -User + ``` + +4. Review + + ```powershell + Get-MailboxPermission $groupname + ``` -- 2.47.3