4 1. LOL. It defaults to `bash`. Change that.
6 2. Probably one-time install
9 Install-Module -Name PSWSMan -AcceptLicense -Confirm
10 Install-WSMan # Web services for management
11 Import-Module ExchangeOnlineManagement
14 3. Probably per session:
17 Import-Module ExchangeOnlineManagement
18 Connect-ExchangeOnline
23 ### Distribution Group
25 Seems like this is an older way to do it.
27 1. Create distribution group
30 $groupname = 'loves_tacos'
31 new-distributiongroup $groupname
34 2. Add some folks to it
37 Add-DistributionGroupMember -Identity $groupname -Member bob
38 Add-DistributionGroupMember -Identity $groupname -Member larry
41 3. Verify the list is as desired
45 get-distributiongroupmember -identity $groupname
52 set-distributiongroup -identity $groupname -EmailAddresses @{add="$groupname@$domain"}
53 get-distributiongroup $groupname | Select Alias, EmailAddresses, ManagedBy, DistinguishedName | Format-List
58 ### Or create an entire shared mailbox
60 1. Create a shared mailbox
64 $displayname = 'Loves Tacos'
65 New-Mailbox -Shared -Name "$groupname" -DisplayName $displayname
70 You can review your mailbox users with `Get-Mailbox`
75 Add-MailboxPermission -Identity $groupname -AccessRights FullAccess -User <user>
81 Get-MailboxPermission $groupname