<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>msunified.net &#187; Script</title>
	<atom:link href="http://msunified.net/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://msunified.net</link>
	<description>Technical blog about Exchange, OCS and Lync by Ståle Hansen</description>
	<lastBuildDate>Tue, 07 Feb 2012 11:13:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='msunified.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/87139ddc4ba9c9960cf07f9364dfc9f4?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>msunified.net &#187; Script</title>
		<link>http://msunified.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://msunified.net/osd.xml" title="msunified.net" />
	<atom:link rel='hub' href='http://msunified.net/?pushpress=hub'/>
		<item>
		<title>Web Services InternalURL powershell configuration</title>
		<link>http://msunified.net/2009/04/21/web-services-internalurl-powershell-configuration/</link>
		<comments>http://msunified.net/2009/04/21/web-services-internalurl-powershell-configuration/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 11:12:46 +0000</pubDate>
		<dc:creator>Ståle Hansen</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://stalehansen.wordpress.com/?p=58</guid>
		<description><![CDATA[If you are using a loadbalancer in front of the ClientAccess server or want to reconfigure the internal URL to point to http and not https you need to reconfigure a couple of services with the correct url so that autodiscover functions properly. To do so I have created a simple script to ease the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=msunified.net&amp;blog=7420011&amp;post=58&amp;subd=stalehansen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are using a loadbalancer in front of the ClientAccess server or want to reconfigure the internal URL to point to http and not https you need to reconfigure a couple of services with the correct url so that autodiscover functions properly. To do so I have created a simple script to ease the process using powershell. The script does the following:</p>
<ul>
<li>The server path is specified in the variable</li>
<li>Then we use -identity * if you have more than one instance you need to specifiy wich instance you want to configure</li>
<li>The url is generated using the variable and the default location of the services files</li>
<li>After reconfiguring the services we do a test of the connectivity to verify the configuration</li>
<li>Note that custom user credentials is used so that default credentials is not nessesary</li>
<li>OWA internal url has to be set manually</li>
</ul>
<p>To run the script do the following:</p>
<ul>
<li>Copy this into a txt file and rename it to a ps1 file</li>
<li>Navigate to the location where the file is saved</li>
<li>Use tab to get the correct run syntax</li>
</ul>
<p><em><strong>NOTE:</strong> This script has been updated in a post related to Exchange 2010 here: </em><a href="http://msunified.net/2010/01/13/configure-exchange-2010-internalurl-powershell-script/"><em>http://msunified.net/2010/01/13/configure-exchange-2010-internalurl-powershell-script/</em></a></p>
<pre>$urlpath = "http://exchange-server.yourdomain.com"

Set-AutodiscoverVirtualDirectory -Identity * –internalurl “$urlpath/autodiscover/autodiscover.xml”
Set-ClientAccessServer –Identity * –AutodiscoverServiceInternalUri “$urlpath/autodiscover/autodiscover.xml”
Set-webservicesvirtualdirectory –Identity * –internalurl “$urlpath/ews/exchange.asmx”
Set-oabvirtualdirectory –Identity * –internalurl “$urlpath/oab”
Set-ActiveSyncVirtualDirectory -Identity * -InternalUrl "$urlpath/Microsoft-Server-ActiveSync"

Test-WebServicesConnectivity -MailboxCredential (Get-Credential &lt;Netbios domain name&gt;\&lt;username&gt;) -TrustAnySSLCertificate
Test-activesyncConnectivity -MailboxCredential (Get-Credential &lt;Netbios domain name&gt;\&lt;username&gt;) -TrustAnySSLCertificate</pre>
<br />Posted in Exchange 2007 Tagged: Exchange 2007, PowerShell, Script, Web Services <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stalehansen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stalehansen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stalehansen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stalehansen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/stalehansen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/stalehansen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/stalehansen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/stalehansen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stalehansen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stalehansen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stalehansen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stalehansen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stalehansen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stalehansen.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=msunified.net&amp;blog=7420011&amp;post=58&amp;subd=stalehansen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://msunified.net/2009/04/21/web-services-internalurl-powershell-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/961ad6f4a2b1289352341cb9964f2f36?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Ståle Hansen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
