none
Recreate Autodiscover Virtual directory

    Question

  • I removed the autodiscover virtualdirectory using the remove command. Because the autodiscover.xml file was empty.

    When I want to recreate the virtualdirectory I get an error

    [PS] C:\Windows\system32>New-AutodiscoverVirtualDirectory -WebsiteName "Default Web Site" -WindowsAuthentication $true -
    BasicAuthentication $true
    An error occurred while creating the IIS virtual directory 'IIS://servername/W3SVC/1/ROOT/Autodiscover' o
    n 'TONHQMAIL'.
        + CategoryInfo          : InvalidOperation: (servername\Autod...fault Web Site):ADObjectId) [New-AutodiscoverVirtua
       lDirectory], InvalidOperationException
        + FullyQualifiedErrorId : 51BD160,Microsoft.Exchange.Management.SystemConfigurationTasks.NewAutodiscoverVirtualDir
       ectory

    [PS] C:\Windows\system32>

    Tuesday, January 24, 2012 8:43 PM

Answers

  • Hello,

     

    Please check if an autodiscover is listed in Metabase Explorer. If there exists old autodiscover virtual directory, please delete it and recreate one.

     

    Please check if there are some errors in application log.

     

    Best Regards,

    Lisa.

    • Marked as answer by CP SOLUTIONS Wednesday, January 25, 2012 12:47 PM
    Wednesday, January 25, 2012 5:34 AM
    Moderator

All replies

  • You need to remove the Virtual Directory in order to Recreate it.

     

    Better use Exchange Management Console - Server Config - Client Access - Right Click on the Server - Reset Virtual Directory - Choose auto Discovery

     

    It should Remove and recreate automatically

     

    Regards

    Satheshwaran Manoharan

    Tuesday, January 24, 2012 8:58 PM
  • Hello,

     

    Please check if an autodiscover is listed in Metabase Explorer. If there exists old autodiscover virtual directory, please delete it and recreate one.

     

    Please check if there are some errors in application log.

     

    Best Regards,

    Lisa.

    • Marked as answer by CP SOLUTIONS Wednesday, January 25, 2012 12:47 PM
    Wednesday, January 25, 2012 5:34 AM
    Moderator