Category: Office 365

Connect to Office 365 via PowerShell
article #804, updated 545 days ago

Contributed by the excellent Matt Quick:

Categories:   Exchange and Exchange Online   Office 365


Outlook Autodiscover After Migrating To Office 365 / Exchange Online
article #839, updated 659 days ago

After migrating all email accounts from an on-premises Exchange 2008 or later server to Exchange Online, there remains the problem of what to do about new Outlook profile creation. Outlook will still look for the old server name, and especially if you want to keep the old server alive for a while, you will have significant problems getting Outlook 2013 to do anything with Exchange Online. Here is what the extraordinary Matt Quick and I did recently with beautiful results.

For the sake of this discussion, “localdomain.local” is the LAN-local AD-enabled domain, and “” is the Internet domain. The on-prem Exchange originally had local DNS name “exchange.localdomain.local” and Internet DNS name “”.

  1. Migrated all mailboxes from on-premises Exchange 2010 to Exchange Online. Dirsync was used for initial account setup, then turned off for the actual copyover process which was done with MessageOps.
  2. In Exchange Management Shell, ran Get-ClientAccessServer to get the canonical name of on-prem Exchange (we’ll say it was EXCHANGENAME), and then Set-ClientAccessServer -Identity EXCHANGENAME -AutoDiscoverServiceInternalUri $NULL (replacing EXCHANGENAME with the actual name) to nullify as many defaults as possible.
  3. Set autodiscover.localdomain.local as a CNAME to
  4. Set as a CNAME to in Internet DNS. This LAN has a local copy of in its domain controllers, so copied this record to the local server as well.
  5. Unregistered the NIC for the on-premises Exchange server in DNS. The checkboxes are in the DNS tabs of both TCP/IPv4 and TCP/IPv6, within the Advanced area of the NIC. This is done so that DNS changes which are next, will not be undone automatically.
  6. Removed DNS A records exchange.localdomain.local and from local and Internet DNS respectively.
  7. Added DNS CNAME records exchange.localdomain.local and, both pointing to, to local and Internet DNS as appropriate.
  8. Set up oldexchange.localdomain.local and as A records pointing to the IP being used by the on-premises Exchange, to local and Internet DNS as appropriate, for archival uses and until we are ready to decommission the on-prem Exchange altogether.

Categories:   Exchange and Exchange Online   Office 365


Setting up Outlook for Office 365 / Exchange Online Etcetera
article #733, updated 978 days ago

Try this:

For Outlook 2007:

Categories:   Office 365   Outlook


Turn off WINMAIL.DAT in Office365
article #669, updated 1166 days ago

The widely recommended method, is to connect to the Office365 Exchange server via PowerShell. This may need to be done in PowerShell run as administrator; certainly the first line has to be run thusly, although that one line may have to be run only once per client machine.

Set-ExecutionPolicy Unrestricted

(type Y for Yes)

$LiveCred = Get-Credential

(enter your Office365 administrative credentials)

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
Set-RemoteDomain Default -TNEFEnabled $false
Remove-PSSession $Session

Categories:   Office 365