Here are the elevated PowerShell commands to run to set the virtual directory URLs
- Get-ActiveSyncVirtualDirectory -server EXCHANGE | Set-ActiveSyncVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.ca/Microsoft-Server-ActiveSync' -InternalUrl 'https://mail.DOMAIN.ca/Microsoft-Server-ActiveSync'
- Get-AutodiscoverVirtualDirectory -server EXCHANGE | Set-AutodiscoverVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.ca/Autodiscover/Autodiscover.xml' -InternalUrl 'https://mail.DOMAIN.ca/Autodiscover/Autodiscover.xml'
- Get-ECPVirtualDirectory -server EXCHANGE | Set-ECPVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.ca/ECP' -InternalUrl 'https://mail.DOMAIN.ca/ECP'
- Get-OabVirtualDirectory -server EXCHANGE | Set-OabVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.ca/OAB' -InternalUrl 'https://mail.DOMAIN.ca/OAB'
- Get-WebServicesVirtualDirectory -server EXCHANGE | Set-WebServicesVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.ca/EWS/Exchange.asmx' -InternalUrl 'https://mail.DOMAIN.ca/EWS/Exchange.asmx'
The elevated PowerShell commands to verify the settings:
- Get-ActiveSyncVirtualDirectory | fl internalurl,externalurl
- Get-AutoDiscoverVirtualDirectory | fl internalurl,externalurl
- Get-ECPVirtualDirectory | fl internalurl,externalurl
- Get-OabVirtualDirectory | fl internalurl,externalurl
- Get-WebServicesVirtualDirectory | fl internalurl,externalurl
Please note that we run a split DNS setup to have the external URL map to an internal IP address while folks are in the office (as per SBS STD).
UPDATE 2014-02-14: Dave Shackelford was kind enough to point out the errors in my copy & paste methodology. The proper syntax for each Set command has been done. :)
Philip Elder
Microsoft Cluster MVP
MPECS Inc.
Co-Author: SBS 2008 Blueprint Book
Chef de partie in the SMBKitchen
Find out more at
Third Tier: Enterprise Solutions for Small Business
good Posst - but Set-AutodiscoverVirtualDirectory has no -externalIrl paarameter :)
ReplyDeleteGreeting from Germany
Steffen
Do you run these commands against BOTH 2010 and 2013 servers?
ReplyDeleteThese commands work for either version as of today.
ReplyDeletePhilip
Hello Philip,
ReplyDeleteThe command for the Autodiscover does not work. It does not exist. You can't modify that one.
If you can please let me know how. :)
On technet it says " Microsoft reserved"
Br,
Mihnea
You can. And you really have to.
ReplyDeletehttps://technet.microsoft.com/en-us/library/aa998601(v=exchg.160).aspx