BIG: Memory like a sieve

By brendon on February 21st, 2012

I personally have a memory like a sieve. Unless I use something regularly I often forget the exact commands to configure it. (Go GUI!) – The most useful PS commands I have for managing Office365/ Exchange are:

PowerShell (From server with Exchange Extensions):

$LiveCred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $Session

Send-As mailbox access:

Add-RecipientPermission -Identity <sharedEmail> -Trustee <userEmail> -AccessRights SendAs


 Add Full Mailbox Access:

Add-MailboxPermission <sharedEmail> -User <userEmail> -AccessRights FullAccess

Remove Mailbox Access

Remove-MailboxPermission -Identity <SharedMailbox>  -AccessRights <MailboxRights>  -User <UserEmail>

Removing Distribution Groups

Use the Remove-DistributionGroup cmdlet together with the BypassSecurityGroupManagerCheck parameter to remove the distribution group as follows:

Remove-DistributionGroup <name of the group> -BypassSecurityGroupManagerCheck

Forwarding Email With Copy

Set-Mailbox user -DeliverToMailboxAndForward:$True -ForwardingAddress $forward       (NOTE must be user within Exchange Org, otherwise use ForwardingSMTPAddress)

Removing Forward

Set-Mailbox $user -DeliverToMailboxAndForward:$False -ForwardingAddress $null

Create a Shared Mailbox (

set-mailbox <shared> -type shared

New-Mailbox -Name “<Shared>” -Alias <Shared> -Shared

Set-Mailbox <Shared> -ProhibitSendReceiveQuota 5GB -ProhibitSendQuota 4.75GB -IssueWarningQuota 4.5GB