Alan's sysadmin Blog

Working smarter not harder

Script to configure Internal & External URL’s for Exchange 2010

Posted by Alan McBurney on August 25, 2010


Stale has updated his script over at to break the dependancy on the CASArray. I have used the script a few times and can highly recommend it. Its definitely a must have for your Exchange 2010 toolbox



I no longer recommend using this script as the CAS Array should not use the same name as Internal\External namespace. this is due to the fact the when using RPC over HTTPS a delay of 30 seconds will  occur when connecting to the mailbox as the default transport mechanism of TCP\IP is used when namespaces  are identical.

You can of course use this script and then delete the CAS Array and recreate it with a different name.


When working with Exchange 2007 Exchange ninjas has a great script for configuring all VDirs on Exchange 2007  which can be found here.

However now that 2010 is here I was looking for a new script. I found this excellent script by Ståle Hansen. One thing to be aware of is that the script relies on detection of an Exchange Client Access Array which can and imo should be set even when using a single server.

Script can be found here

2 Responses to “Script to configure Internal & External URL’s for Exchange 2010”

  1. Hi Alan.

    I have updated the script to ask for internal FQDN as well, and not use the cas array. It is not recommended to use the same fqdn when using hardware load balancing as well as your point in this post. Thanks for linking to my script.


    • Alan McBurney said


      Thanks for your efforts and hard work in creating and updating the script. I find it invaluable and as mentioned in the update I simply create the CAS Array based on the external name, run the script and then delete the CAS Array and recreate it using

      Looking forward to using your new script.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: