In exchange powershell :

# Configure Virtual Directories for the “Default Web Site”

Set-WebServicesVirtualDirectory -Identity Exch2007\"EWS (Default Web Site)" -InternalUrl https://exch2007.yourdomain.com/ews/exchange.asmx -ExternalUrl https://exch2007.yourdomain.com/ews/exchange.asmx
Set-OabVirtualDirectory -Identity Exch2007\"OAB (Default Web Site)" -InternalUrl https://exch2007.yourdomain.com/OAB -ExternalUrl https://exch2007.yourdomain.com/OAB -RequireSSL:$True
Set-UMVirtualDirectory -Identity Exch2007\"UnifiedMessaging (Default Web Site)" -InternalUrl https://exch2007.yourdomain.com/unifiedmessaging/service.asmx -ExternalUrl https://exch2007.yourdomain.com/unifiedmessaging/service.asmx
Set-OWAVirtualDirectory -Identity Exch2007\"OWA (Default Web Site)" -InternalURL https://exch2007.yourdomain.com/owa -ExternalUrl https://yourdomain.com/owa -LogonFormat username -DefaultDomain internaldomain.com
# Set URL for AutoDiscover
Set-ClientAccessServer -Identity Exch2007 -AutodiscoverServiceInternalURI https://exch2007.yourdomain.com/autodiscover/autodiscover.xml -AutodiscoverSiteScope:$null
Set-AutoDiscoverVirtualDirectory -identity Exch2007\"Autodiscover (Default Web Site)" -InternalUrl https://exch2007.yourdomain.com/autodiscover/autodisover.xml -ExternalUrl https://exch2007.yourdomain.com/autodiscover/autodisover.xml
# Reset IIS
IISRESET -NoForce

Ref : http://www.msexchange.org/articles-tutorials/exchange-server-2007/migration-deployment/exchange-2007-install-configuration-command-line-part2.html
Tagged with: