Answered by:
Restart "Autdodiscover service" without rebooting server? (Because Godaddy SSL certificate install)

Question
-
Hello,
Exchange 2010 SP1 here, Windows 2008R2.
Short question: I don't see autodiscover in services.msc; how do you restart the "Autodiscover service" without rebooting the CAS server?
Longer explanation on "why"...
I am having trouble getting the Autodiscover "service" to pick up the changes I've made to my AutodiscoverVirtualDirectory. Initially "Get-AutodiscoverVirtualDirectory" had a value of "https://mail01.localdomain.local"
After setting a DNS entry for my CAS server IP, I ran "Set-AutodiscoverVirtualDirectory -Identity "MAIL01\Autodiscover (Default Web Site)" -InternalUrl "https://client.myinternetdomain.tld/Autodiscover/Autodiscover.xml" and "Set-AutodiscoverVirtualDirectory -Identity "MAIL01\Autodiscover (Default Web Site)" -ExternalUrl "https://client.myinternetdomain.tld/Autodiscover/Autodiscover.xml"
Then I issued:
net stop w3svc
net stop iisadmin
net start iisadmin
net start w3svcThen I tried to test my new Autodiscover settings with:
[PS] C:\Windows\system32>Test-OutlookWebServices -ClientAccessServer "MAIL01" myuser@myinternetdomain.tld
Creating a new session for implicit remoting of "Test-OutlookWebServices" command...RunspaceId : 5ec4f659-f5d3-41e3-8131-ed046679f86a
Id : 1019
Type : Information
Message : A valid Autodiscover service connection point was found. The Autodiscover URL on this object is https://mail01.localdomain.local/Autodiscover/Autodiscover.xml.
Double checking my "Set" attemps show this:
[PS] C:\Windows\system32>Get-AutodiscoverVirtualDirectory -server MAIL01 | fl Identity,InternalUrl,ExternalUrlIdentity : MAIL01\Autodiscover (Default Web Site)
InternalUrl : https://client.myinternetdomain.tld/Autodiscover/Autodiscover.xml
ExternalUrl : https://client.myinternetdomain.tld/Autodiscover/Autodiscover.xml
I started this journey because Outlook complains about the Godaddy SSL certificate I installed.- Edited by edjin Wednesday, September 14, 2011 7:12 PM
Wednesday, September 14, 2011 5:34 PM
Answers
-
Hi,
We are not able to restart the Autodiscover service from Services.msc tool. Actually, the autodiscover service is a mechanism that helps Outlook clients find out the CAS related configuration. It is hardcoded in Outlook client; it is used to configure and maintain server settings for Outlook. That’s why we are not able to find this service form the server side. For more information, please refer to the Microsoft articles below:
White Paper: Exchange 2007 Autodiscover Service
http://technet.microsoft.com/en-us/library/bb332063(EXCHG.80).aspx
Understanding the Autodiscover Service
http://technet.microsoft.com/en-us/library/bb124251.aspx
To apply the change on Autodiscover virtual directory, run “IISreset /noforce”. The change will then stamped on SCP (Service Connection Point) object.
I appreciate your updating and sharing your experience for the issue you are encountering. Just a reminder, the parameter InternalUrl of cmdlet “Set-AutodiscoverVirtualDirectory” specifies the URL used to connect to the virtual directory from inside the network firewall. It is NOT the URL to access autodiscover service.
Refer to:
Set-ClientAccessServer
http://technet.microsoft.com/en-us/library/bb125157.aspx
Set-AutodiscoverVirtualDirectory
http://technet.microsoft.com/en-us/library/aa998601.aspx
All the best J
Fiona- Proposed as answer by Fiona_LiaoModerator Monday, September 19, 2011 3:12 AM
- Marked as answer by edjin Monday, September 19, 2011 3:14 AM
Monday, September 19, 2011 3:11 AMModerator
All replies
-
Haven't figured out how to restart the Autodiscover service but I did find that AutoDiscoverServiceInternalUri was set wrong:
[PS] C:\Windows\system32>Get-ClientAccessServer | fl AutoDiscoverServiceInternalUri
AutoDiscoverServiceInternalUri : https://mail01.localdomain.local/Autodiscover/Autodiscover.xml
Issued this:
[PS] C:\Windows\system32>Set-ClientAccessServer -Identity MAIL01 -AutoDiscoverServiceInternalUri "https://client.myinternetdomain.tld/Autodiscover/Autodiscover.xml"
and now I don't get the Certificate mismatch warning when opening Outlook so far.
Wednesday, September 14, 2011 7:09 PM -
Hi,
We are not able to restart the Autodiscover service from Services.msc tool. Actually, the autodiscover service is a mechanism that helps Outlook clients find out the CAS related configuration. It is hardcoded in Outlook client; it is used to configure and maintain server settings for Outlook. That’s why we are not able to find this service form the server side. For more information, please refer to the Microsoft articles below:
White Paper: Exchange 2007 Autodiscover Service
http://technet.microsoft.com/en-us/library/bb332063(EXCHG.80).aspx
Understanding the Autodiscover Service
http://technet.microsoft.com/en-us/library/bb124251.aspx
To apply the change on Autodiscover virtual directory, run “IISreset /noforce”. The change will then stamped on SCP (Service Connection Point) object.
I appreciate your updating and sharing your experience for the issue you are encountering. Just a reminder, the parameter InternalUrl of cmdlet “Set-AutodiscoverVirtualDirectory” specifies the URL used to connect to the virtual directory from inside the network firewall. It is NOT the URL to access autodiscover service.
Refer to:
Set-ClientAccessServer
http://technet.microsoft.com/en-us/library/bb125157.aspx
Set-AutodiscoverVirtualDirectory
http://technet.microsoft.com/en-us/library/aa998601.aspx
All the best J
Fiona- Proposed as answer by Fiona_LiaoModerator Monday, September 19, 2011 3:12 AM
- Marked as answer by edjin Monday, September 19, 2011 3:14 AM
Monday, September 19, 2011 3:11 AMModerator -
Fiona,
Would Address Book generation be affected by the Autodiscover Virtual Directory ?
If the generating server were changed to a new server and no IIS reset was performed.
Wednesday, September 2, 2015 5:00 PM