Prepping for coexistence or want to review the existing virtual directory URLs? To check the virtual directory URLs in an Exchange 2013 and newer environment, use the following commands…
ACTIVESYNC (EAS)
Get-ExchangeServer | Get-ActiveSyncVirtualDirectory | fl Identity, *ternalurl*
AUTODISCOVER
Get-ExchangeServer | Get-ClientAccessService | fl Identity, *ternaluri*
EXCHANGE CONTROL PANEL (ECP)
Get-ExchangeServer | Get-EcpVirtualDirectory | fl Identity, *ternalurl*
EXCHANGE WEB SERVICES (EWS)
Get-ExchangeServer | Get-WebServicesVirtualDirectory | fl Identity, *ternalurl*
MAPI (MAPI)
Get-ExchangeServer | Get-MapiVirtualDirectory | fl Identity, *ternalurl*
OFFLINE ADDRESS BOOK (OAB)
Get-ExchangeServer | Get-OabVirtualDirectory | fl Identity, *ternalurl*
OUTLOOK ANYWHERE (OA)
Get-ExchangeServer | Get-OutlookAnywhere | fl Identity, *ternalhost*, *ticationmeth*
OUTLOOK WEB APP (OWA)
Get-ExchangeServer | Get-OwaVirtualDirectory | fl Identity, *ternalurl*
POWERSHELL
Get-ExchangeServer | Get-PowerShellVirtualDirectory | fl Identity, *ternalurl*