Saturday 11 January 2014

Set Exchange 2010 and 2013 Internal and External Virtual Directory URLs in PowerShell

Here are the elevated PowerShell commands to run to set the virtual directory URLs

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

5 comments:

Anonymous said...

good Posst - but Set-AutodiscoverVirtualDirectory has no -externalIrl paarameter :)

Greeting from Germany
Steffen

Anonymous said...

Do you run these commands against BOTH 2010 and 2013 servers?

Philip Elder Cluster MVP said...

These commands work for either version as of today.

Philip

dragii said...

Hello Philip,

The 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

Anonymous said...

You can. And you really have to.

https://technet.microsoft.com/en-us/library/aa998601(v=exchg.160).aspx