- Open an elevated Exchange Management Shell and retrieve the current autodiscover virtual directory:
Code:Get-AutodiscoverVirtualDirectory | fl Name, Server, InternalUrl, Identity
- Copy the Identity value to the clipboard.
- In the Exchange Management Shell, remove the autodiscover virtual directory:
Code:
Remove-AutodiscoverVirtualDirectory -Identity “SBS01\Autodiscover (SBS Web Applications)”
When you’re identity contains a space, use the quotation marks ”
You will have to confirm by typing a “Y”. - Check that the autodiscover virtual directory is gone:
Code:Get-AutodiscoverVirtualDirectory | fl Name, Server, InternalUrl, Identity
This should now return nothing.
5. Now, with Outlook running on a desktop, hold the Ctrl button, right-click on the Outlook icon in the system tray, and select Test E-mail AutoConfiguration. Enter your email address and password and click the Test button. The results should come from the Office 365 server.