Remove internal Autodiscover when migrating to Office 365

posted in: Uncategorized, Windows | 0

WARRING **** Do not do this before you migrate to Office 365 ****

Remove internal Autodiscover when migrating to Office 365
Use at your own risk :

You should change the MX record and after enough time has passed you feel no more mail will be delivered to your on-site server then do the final sync.

You should only do following after your final sync.

Addition you can also run this line in Exchange management shell

Set-ClientAccessServer SERVERName -AutoDiscoverServiceInternalUri $null

  1. Open an elevated command prompt and back-up the IIS configuration:

%windir%\system32\inetsrv\appcmd.exe add backup “Before Removing Autodiscover”

  1. Open an elevated Exchange Management Shell and retrieve the current autodiscover virtual directory:

Get-AutodiscoverVirtualDirectory | fl Name, Server, InternalUrl, Identity

  1. In the Exchange Management Shell, remove the autodiscover virtual directory:

Remove-AutodiscoverVirtualDirectory -Identity “SBS01\Autodiscover (SBS Web Applications)”

Replace this “SBS01\Autodiscover (SBS Web Applications)” with the value from Step 2

You will have to confirm by typing a “Y”.

  1. Check that the autodiscover virtual directory is gone:

Get-AutodiscoverVirtualDirectory | fl Name, Server, InternalUrl, Identity

This should now return nothing.

Not sure exactly what need to be restarted if you can restart the server if not restart all Exchange services and IIS.



Leave a Reply

Your email address will not be published. Required fields are marked *