Note about MFA: If using MFA to authenticate your Admin user(s), you'll need to download a special PowerShell app (Basic Auth not supported) - see MS Article here
The full Microsoft article is here: http://technet.microsoft.com/en-us/library/jj984289(v=exchg.150).aspx but you may find our solution easier to follow. Read on...
Run PowerShell as an Administrator on your local computer, then type these commands:
(Agree to the policy change)
$UserCredential = Get-Credential
(Enter the credentials of a user with Administrator rights to Exchange Online)
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
(Wait whilst the remote commands are imported)
You should now be able to use PowerShell to communicate directly to the Exchange Online server as if it were attached to your local network!
Now you can test communication using a simple command such as this:
A full list of commands are available here: http://technet.microsoft.com/en-us/library/jj200780(v=exchg.150).aspx
Create a rule to send auto-replies from a shared mailbox:
Set-MailboxAutoReplyConfiguration -Identity firstname.lastname@example.org -AutoReplyState Enabled -InternalMessage "Internal auto-reply message." -ExternalMessage "External auto-reply message." ### Set IMAP ### Get-CasMailbox email@example.com Set-CasMailbox firstname.lastname@example.org -ImapEnabled $true