Commands for working with Shared Mailboxes in AD3
- The ExchangeOnlineManagement module installed. See Commands for Required Module script for installation commands
- The account running the shell session must be in one of the uConnect RBAC "<dept>-MSGADMINS" groups
Import Exchange Online Management Module and Connect
Import-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline
Show Connection Information
Get-ConnectionInformation
Close Connection (Run When Done Working with Exchange)
Disconnect-ExchangeOnline
Show Mailbox Information
Get-EXOMailbox -Identity "[email protected]" -PropertySets All
Show Mailbox Custom and Delivery Settings
Get-EXOMailbox -Identity "[email protected]" -PropertySets Custom,Delivery
#Mailbox Property Sets
<#
All
Minimum
AddressList
Archive
Custom
Delivery
Moderation
Policy
Quota
Retention
#>
Show Mailbox Statistics (Including Last Login Time)
Get-EXOMailboxStatistics -Identity "[email protected]" -PropertySets All
Show Mailbox Permissions
Get-EXOMailboxPermission -Identity "[email protected]"
Show Mailbox Folder Permissions
Get-EXOMailboxFolderPermission -Identity "[email protected]:\Calendar"
Show Mobile Devices for User Account
Get-EXOMobileDeviceStatistics -Mailbox "[email protected]"
Show Send-As Rights for Mailbox
Get-EXORecipientPermission -Identity "[email protected]"
Show Distribution Group
Get-DistributionGroup -Identity "[email protected]"
Configure Mailbox to Shared
Set-Mailbox -Identity "[email protected]" -Type shared
Set Sent-As Message Copy
Set-Mailbox -Identity "[email protected]" -MessageCopyForSentAsEnabled $True
Grant Full Mailbox Access to Distribution Group
Add-MailboxPermission -Identity "[email protected]" -User "[email protected]" -AccessRights FullAccess
Remove Full Mailbox Access to Distribution Group
Remove-MailboxPermission -Identity "[email protected]" -User "[email protected]" -AccessRights FullAccess
Grant Send-As Rights to Distribution Group
#Add-RecipientPermission -Identity "[email protected]" -Trustee "[email protected]" -AccessRights SendAs
#Currently not working. Need to work with uConnect admins on the issue