After recently deploying a hybrid configuration for Office 365, many email settings that were easily configurable within Office 365 portal could not be changed as these settings were being managed by on-premise Active Directory servers. To get past this restriction, the next best option is to access the Exchange Online via PowerShell.
Note: PowerShell 3.0 is required. For Windows Server 2012 or Windows Server 2012 R2, PowerShell does not need to be updated by default as PowerShell 3.0 is part of the operating system.
Access Exchange Online with PowerShell
First, tell PowerShell which credentials will be needed to connect to Exchange Online. For the prompt that will appear, you will need to connect using an Exchange Online administrator. If you are in an O365 Hybrid configuration, this could be a user that is on your domain or could be a stand-alone user with administrative privileges in Exchange Online.
Note: When opening up PowerShell, you will want to use the Run as Administrator command.
$LiveCred = Get-Credential
Next, we will connect to Exchange Online.
$Session = New-PSSession – ConfigureationName Microsoft.Exchange –ConnectionUrl https://ps.outlook.com/powershell/ -Credential $LiveCred –Authentication Basic -AllowRedirection
By default, the execution policy will set to restricted. Changing this to allow commands to be ran from the PowerShell window requires us to allow commands to be remote-signed.
Typically, after I am finished utilizing PowerShell, I will set the execution policy back to a restricted policy as these settings do not revert on closing PowerShell.
About_Execution_Policies. http://go.microsoft.com/fwlink/?LinkID=135170, Accessed April 2, 2014
Access Office 365 PowerShell. http://help.outlook.com/en-us/140/cc952755.aspx, Accessed April 3rd, 2014
Connect to Exchange Online Using Remote PowerShell. http://technet.microsoft.com/en-us/library/jj984289(v=exchg.150).aspx, Accessed April 3, 2014
EOP / Office 365: Connect and Use PowerShell. http://msexchangeguru.com/2014/02/03/eop-o365-connect-powershell/, Accessed April 3, 2014
Installing Windows PowerShell 3.0. http://technet.microsoft.com/en-us/library/jj205328.aspx, Accessed April 10, 2014