banner



How To Repair Exchange 2010-related Iis Virtual Directories

Today's commodity will show how to recreate virtual directories in Exchange Server. Later installing Exchange Server and looking in IIS Director, we tin meet ii sites configured. That's the Default Web Site and the Substitution Back Terminate. If there are issues and you like to reset virtual directories in Exchange Server, you're at the correct place. Read more on how to recreate virtual directories in Exchange Server.

Table of contents

  • Find and manage virtual directories in Commutation Server
  • Why you want to recreate Exchange virtual directories
  • Recreate Exchange virtual directories Default Web Site
    • Recreate ActiveSyncVirtualDirectory
    • Recreate AutoDiscoverVirtualDirectory
    • Recreate EcpVirtualDirectory
    • Recreate MapiVirtualDirectory
    • Recreate OABVirtualDirectory
    • Recreate OwaVirtualDirectory
    • Recreate PowerShellVirtualDirectory
    • Recreate WebServicesVirtualDirectory
  • Verify virtual directories in Exchange Admin Center
  • Decision

Find and manage virtual directories in Substitution Server

To find and manage virtual directories, you lot can utilise:

  • IIS Manager
  • Commutation Management Trounce (Ems)
  • Exchange Admin Heart (EAC)

Why y'all want to recreate Exchange virtual directories

Sometimes you have to start from a clean slate, as information technology will fix almost of the problems. Such as:

  • Permission bug
  • Blank screen
  • Missing files
  • Connectivity issues
  • Page errors

Recreate Substitution virtual directories Default Web Site

Start Cyberspace Data Services (IIS) 6.0 Director. Substitution Server installation creates two websites:

  • Default Web Site
  • Exchange Dorsum End
Recreate virtual directories in Exchange Server IIS default

To recreate virtual directories in IIS, we will apply PowerShell. We volition become the virtual directory, remove the virtual directory, and create the virtual directory. The list is in alphabetic guild:

  1. ActiveSyncVirtualDirectory (Microsoft-Server-ActiveSync)
  2. AutodiscoverVirtualDirectory (Autodiscover)
  3. EcpVirtualDirectory (ecp)
  4. MapiVirtualDirectory (mapi)
  5. OABVirtualDirectory (OAB)
  6. OwaVirtualDirectory (owa)
  7. PowerShellVirtualDirectory (PowerShell)
  8. WebServicesVirtualDirectory (EWS)

In our example, we will reset the virtual directories on Substitution Server EX01-2016. The internal and external URL is https://mail.exoip.com. We recommend changing the internal and external URLs to a generic namespace.

Read more: Commutation namespace design and planning »

Recreate ActiveSyncVirtualDirectory

Run Commutation Direction Crush as ambassador. Recreate Microsoft-Server-ActiveSync virtual directory.

          [PS] C:\>Become-ActiveSyncVirtualDirectory -Server "EX01-2016" | Format-Listing Server, Name, Identity, InternalUrl, ExternalUrl   Server      : EX01-2016 Proper name        : Microsoft-Server-ActiveSync (Default Spider web Site) Identity    : EX01-2016\Microsoft-Server-ActiveSync (Default Spider web Site) InternalUrl : https://mail.exoip.com/Microsoft-Server-ActiveSync ExternalUrl : https://mail.exoip.com/Microsoft-Server-ActiveSync   [PS] C:\>Remove-ActiveSyncVirtualDirectory -Identity "EX01-2016\Microsoft-Server-ActiveSync (Default Web Site)" -Confirm:$false   [PS] C:\>New-ActiveSyncVirtualDirectory -Server "EX01-2016" -InternalUrl "https://postal service.exoip.com/Microsoft-Server-ActiveSync" -ExternalUrl "https://mail.exoip.com/Microsoft-Server-ActiveSync"  Proper noun                                           Server    InternalUrl ----                                           ------    ----------- Microsoft-Server-ActiveSync (Default Web Site) EX01-2016 https://mail.exoip.com/Microsoft-Server-ActiveSync        

Do you become errors when creating the Exchange virtual directory? Read the article An error occurred while creating the IIS virtual directory.

Recreate AutoDiscoverVirtualDirectory

Recreate Autodiscover virtual directory.

          [PS] C:\>Get-AutodiscoverVirtualDirectory -Server "EX01-2016" | Format-Listing Server, Name, Identity   Server   : EX01-2016 Name     : Autodiscover (Default Web Site) Identity : EX01-2016\Autodiscover (Default Web Site)   [PS] C:\>Remove-AutodiscoverVirtualDirectory -Identity "EX01-2016\Autodiscover (Default Web Site)" -Confirm:$faux   [PS] C:\>New-AutodiscoverVirtualDirectory -Server "EX01-2016" -BasicAuthentication $true -WindowsAuthentication $true  Name                            Server    InternalUrl ----                            ------    ----------- Autodiscover (Default Web Site) EX01-2016   [PS] C:\>Prepare-ClientAccessServer -Identity "EX01-2016" -AutodiscoverServiceInternalUri https://autodiscover.exoip.com/Autodiscover/Autodiscover.xml        

Learn more than well-nigh Autodiscover in Commutation Server:

  • Configure autodiscover URL in Commutation with PowerShell
  • Detect autodiscover URL in Commutation with PowerShell

Recreate EcpVirtualDirectory

Recreate ecp virtual directory.

          [PS] C:\>Get-EcpVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, ExternalUrl, Identity   Server      : EX01-2016 Name        : ecp (Default Spider web Site) InternalUrl : https://mail.exoip.com/ecp ExternalUrl : https://post.exoip.com/ecp Identity    : EX01-2016\ecp (Default Web Site)   [PS] C:\>Remove-EcpVirtualDirectory -Identity "EX01-2016\ecp (Default Spider web Site)" -Ostend:$false   [PS] C:\>New-EcpVirtualDirectory -Server "EX01-2016" -InternalUrl "https://mail.exoip.com/ecp" -ExternalUrl "https://mail.exoip.com/ecp"  Name                   Server ----                   ------ ecp (Default Spider web Site) EX01-2016        

Recreate MapiVirtualDirectory

Recreate mapi virtual directory.

          [PS] C:\>Become-MapiVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, ExternalUrl, Identity   Server      : EX01-2016 Name        : mapi (Default Spider web Site) InternalUrl : https://mail service.exoip.com/mapi ExternalUrl : https://mail.exoip.com/mapi Identity    : EX01-2016\mapi (Default Web Site)   [PS] C:\>Remove-MapiVirtualDirectory -Identity "EX01-2016\mapi (Default Web Site)" -Ostend:$simulated   [PS] C:\>New-MapiVirtualDirectory -Server "EX01-2016" -InternalUrl https://mail.exoip.com/mapi -ExternalUrl https://mail.exoip.com/mapi -IISAuthenticationMethods Ntlm, OAuth, Negotiate  Name                    Server    InternalUrl                 ExternalUrl ----                    ------    -----------                 ----------- mapi (Default Web Site) EX01-2016 https://mail.exoip.com/mapi https://mail.exoip.com/mapi        

Recreate OABVirtualDirectory

Recreate OAB virtual directory.

          [PS] C:\>Get-OabVirtualDirectory -Server "EX01-2016" | Format-Listing Server, Proper noun, InternalUrl, ExternalUrl, Identity   Server      : EX01-2016 Proper name        : OAB (Default Web Site) InternalUrl : https://mail.exoip.com/OAB ExternalUrl : https://mail.exoip.com/OAB Identity    : EX01-2016\OAB (Default Web Site)   [PS] C:\>Remove-OabVirtualDirectory -Identity "EX01-2016\OAB (Default Web Site)" -Confirm:$false -Strength   [PS] C:\>New-OabVirtualDirectory -Server "EX01-2016" -InternalUrl "https://mail.exoip.com/OAB" -ExternalUrl "https://mail service.exoip.com/OAB" Server    Name                   Internal Url               External Url ------    ----                   ------------               ------------ EX01-2016 OAB (Default Web Site) https://mail.exoip.com/OAB https://mail.exoip.com/OAB        

Recreate OwaVirtualDirectory

Recreate owa virtual directory.

          [PS] C:\>Get-OwaVirtualDirectory -Server "EX01-2016" | Format-List Server, Proper noun, InternalUrl, ExternalUrl, Identity   Server      : EX01-2016 Name        : owa (Default Spider web Site) InternalUrl : https://mail.exoip.com/owa ExternalUrl : https://post.exoip.com/owa Identity    : EX01-2016\owa (Default Spider web Site)   [PS] C:\>Remove-OwaVirtualDirectory -Identity "EX01-2016\owa (Default Web Site)" -Confirm:$false   [PS] C:\>New-OwaVirtualDirectory -Server "EX01-2016" -InternalUrl "https://post.exoip.com/owa" -ExternalUrl "https://post.exoip.com/owa"  Proper noun                   Server    OwaVersion ----                   ------    ---------- owa (Default Web Site) EX01-2016 Exchange2013        

Recreate PowerShellVirtualDirectory

Recreate PowerShell virtual directory.

You must open PowerShell or PowerShell ISE and run the following cmdlets. That's because you can't recreate a PowerShell virtual directory if you are in a session (Exchange Direction Shell). The beginning cmdlet will load the Microsoft Exchange Management Powershell Snapin.

          PS C:\> Add-PSSnapin Microsoft.Substitution.Management.PowerShell.SnapIn   PS C:\> Become-PowerShellVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, Externalurl, Identity   Server      : EX01-2016 Proper name        : Powershell (Default Web Site) InternalUrl : https://mail.exoip.com/PowerShell ExternalUrl : https://mail.exoip.com/PowerShell Identity    : EX01-2016\Powershell (Default Web Site)   PS C:\> Remove-PowerShellVirtualDirectory -Identity "EX01-2016\PowerShell (Default Web Site)" -Confirm:$false   PS C:\> New-PowerShellVirtualDirectory -Server "EX01-2016" -Proper noun Powershell -InternalUrl https://www.post.exoip.com/PowerShell -ExternalUrl https://mail.exoip.com/PowerShell -RequireSSL:$imitation  Proper name                          Server ----                          ------ Powershell (Default Web Site) EX01-2016        

Recreate WebServicesVirtualDirectory

Recreate EWS virtual directory.

          [PS] C:\>Get-WebServicesVirtualDirectory -Server "EX01-2016" | Format-Listing Server, Name, InternalUrl, ExternalUrl, Identity   Server      : EX01-2016 Name        : EWS (Default Web Site) InternalUrl : https://mail.exoip.com/EWS/Substitution.asmx ExternalUrl : https://mail.exoip.com/EWS/Substitution.asmx Identity    : EX01-2016\EWS (Default Web Site)   [PS] C:\>Remove-WebServicesVirtualDirectory -Identity "EX01-2016\EWS (Default Web Site)" -Confirm:$false -Forcefulness Alarm: Outlook Spider web App won't role correctly if you remove the Exchange Web Services virtual directory "EX01-2016\EWS (Default Web Site)". To disable Substitution Web Services without blocking access to Outlook Web App, you can use "Gear up-CASMailbox -Identity <user> -EwsEnabled:$false" or "Set-OrganizationConfig -Identity <org> -EwsEnabled:$false".   [[PS] C:\>New-WebServicesVirtualDirectory -Server "EX01-2016" -InternalUrl "https://post.exoip.com/EWS/Commutation.asmx" -ExternalUrl "https://postal service.exoip.com/EWS/Exchange.asmx"  Name                   Server    InternalUrl ----                   ------    ----------- EWS (Default Web Site) EX01-2016 https://post.exoip.com/EWS/Exchange.asmx        

Restart IIS or reboot the Substitution Server.

Verify virtual directories in Exchange Admin Eye

Showtime your favorite browser and sign in to Exchange Server Admin Center (EAC). The localhost link is https://localhost/ecp. In the feature pane, click servers and click in the tabs on virtual directories. Select the server that you recreated the virtual directories on.

Recreate virtual directories in Exchange Server EAC

The Substitution virtual directories are recreated and showing successfully. Did it work for y'all?

Keep reading: Recreate mediation mailboxes in Exchange Server »

Conclusion

In this article, yous learned how to recreate virtual directories in Commutation Server. Nosotros did reset Substitution virtual directories with PowerShell. The cmdlets did get the virtual directory, remove the virtual directory and, as of last, create the virtual directory. It's always skilful to check the virtual directories in Substitution Admin Center to verify if they are created.

Did you enjoy this article? You may also similar Recreate inspect log mailbox in Commutation Server. Don't forget to follow us and share this article.

Source: https://www.alitajran.com/recreate-virtual-directories-in-exchange-server/

Posted by: wattsgase1970.blogspot.com

0 Response to "How To Repair Exchange 2010-related Iis Virtual Directories"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel