Share via


autodiscover URL not showing in powershell

Question

Wednesday, April 25, 2018 9:55 AM

Hi

I have installed exchange 2016 into our organisation I ran all the URL configurations and all is working fine, however when I run a check to see what my autodisover URL is on the shell it is showing blank.

Set-ClientAccessService -Identity server -AutoDiscoverServiceInternalUri https://owa.domain.com/autodiscover/autodiscover.xml

went through fine

however when I run Get-AutodiscoverVirtualDirectory -Identity br-mx2016 |fl

I get this error

The operation couldn't be performed because object 'server.domain.lan\server' couldn't be found on
'DC.domain.lan'.

so I  ran Get-AutodiscoverVirtualDirectory  |fl and the server did show but the internal URL is blank

AdminDisplayVersion             : Version 15.1 (Build 1466.3)
Server                          : Server
InternalUrl                     :
ExternalUrl                     :

everything is working fine with autodiscover- it is finding the mailbox and setting it up fine.

any reason I am getting the error above and why the URL is blank?

Thank you.

All replies (1)

Thursday, April 26, 2018 5:43 AM ✅Answered

Hi mvaghji,

For your first question, the command you used is wrong, the parameter for “-Identity” is the name of virtual directory, if you want to use the server name as a parameter, you should use “-Server”:  
For your second question, the “-AutoDiscoverServiceInternalUri” is the value of SCP, it is different from the Autodiscover virtual directory.

By the way, the InternalURL and ExternalURL parameters are not filled in by default for any of the Autodiscover virtual directories, because, it has no effect on the using of Autodiscover for clients. 

  1. When a client to use Autodiscover, it will try to find the SCP value first.
  2. If it cannot find this value, it will try to connect to URLs below:
      https://<smtpdomain>/Autodiscover/Autodiscover.xml
      https://autodiscover.<smtpdomain>/Autodiscover/Autodiscover.xml
  3. If it stills failed, it will try to connect to the URL below:
      http://autodiscover.<smtpdomain>/Autodiscover/Autodiscover.xml   
  4. If it failed again, it will try to find the SRV record.

Those two article will be useful to you:

  1. Busting The Set-AutodiscoverVirtualDirectory Myth: https://blogs.technet.microsoft.com/rmilne/2013/04/02/busting-the-set-autodiscovervirtualdirectory-myth/
  2. White Paper: Exchange 2007 Autodiscover Service: https://technet.microsoft.com/en-us/library/bb332063(v=exchg.80).aspx 

Regards,

Kyle Xu

Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.