Recreate a Virtual Directory

Hi All,

I've been working on this issue for a while now, but haven't had any luck.  I am missing the Autodiscover Virtual Directory in IIS. I have run the following command in Exchange Powershell...

New-AutodiscoverVirtualDirectory -Websitename "Default Web Site" -BasicAuthentication:$true -WindowsAuthentication:$true

Unfortunately, I am receiving this error...

The virtual directory 'Autodiscover' already exists under 'EXCHANGE.CORP.AD/Default Web Site'.
Parameter name: VirtualDirectoryName
    + CategoryInfo          : InvalidArgument: (EXCHANGE\Autodiscover (Default Web Site):ADObjectId) [New-Autodiscover
   VirtualDirectory], ArgumentException
    + FullyQualifiedErrorId : 779E2C6B,Microsoft.Exchange.Management.SystemConfigurationTasks.NewAutodiscoverVirtualDi
   rectory

IIS does not show the directory.  I have found several articles suggesting I should delete Autodiscover from the IIS Metabase, but there's no entry for Autodiscover found via IIS Metabase Explorer.  Also, there's no entry regarding Autodiscover in...

C:\Windows\System32\inetsrv\config\applicationHost.config

Any suggestions are more than welcome.

July 20th, 2015 1:59pm

Hello,

Make sure that 'Autodiscover' entry is not presented in ADSIEDIT

Open ADSIEDIT->Configuration-->CN=Services-->CN=Microsoft Exchange-->CN=Organization-->CN=Administrative Groups-->CN=Exchange Administrative Groups-->CN=Servers-->CN=Exchange-->CN=Protocols-->CN=HTTP

In the right pane, check whether the CN=Autodiscover (Default Web Site) is present.

If it is not present there, you can assume that there can be a replication issue in active directory. Fix that, or wait for replication to happen

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 2:13pm

Hi ManU PhiliP,

Thank you for your quick response.  I earlier found that object and renamed it to CN=Autodiscover (Default Web Site)-OLD.  I then performed the New-AutodiscoverVirtualDirectory command.  I received the same error, and found a new entry in ADSI.  I have since deleted the renamed object and kept the newly created one.  Would you suggest the Autodiscover object be completely deleted from the Protocols --> CN=HTTP container?

July 20th, 2015 2:18pm

Hi,

Actually, there is no point in keeping multiple Autodiscoverentries in an infrastructure. So remove the old one's entries completely

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 2:36pm

Hi ManU PhiliP,

I deleted CN=Autodiscover (Default Web Site) from CN=HTTP and ensured replication occurred.  After confirming, the

New-AutodiscoverVirtualDirectory -Websitename "Default Web Site" -BasicAuthentication:$true -WindowsAuthentication:$true

command again failed with the same error.  Again, a new object for autodiscover in CN=HTTP was generated.

July 20th, 2015 3:10pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics