<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>FreeDriverSiteBlog - SBS 2008</title>
    <link>http://blog.freedriversite.com/</link>
    <description>Discussions for current technology topics.</description>
    <language>en-us</language>
    <copyright>FREEDRIVERSITE 2009</copyright>
    <lastBuildDate>Mon, 22 Feb 2010 18:50:27 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.1.8102.813</generator>
    <managingEditor>freedriversite@gmail.com</managingEditor>
    <webMaster>freedriversite@gmail.com</webMaster>
    <item>
      <trackback:ping>http://blog.freedriversite.com/Trackback.aspx?guid=975d4e5d-7e01-4872-8168-b35175084b0d</trackback:ping>
      <pingback:server>http://blog.freedriversite.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.freedriversite.com/PermaLink,guid,975d4e5d-7e01-4872-8168-b35175084b0d.aspx</pingback:target>
      <dc:creator>FreeDriverSiteAdmin</dc:creator>
      <wfw:comment>http://blog.freedriversite.com/CommentView,guid,975d4e5d-7e01-4872-8168-b35175084b0d.aspx</wfw:comment>
      <wfw:commentRss>http://blog.freedriversite.com/SyndicationService.asmx/GetEntryCommentsRss?guid=975d4e5d-7e01-4872-8168-b35175084b0d</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I had an issue with a Small Business Server SBS 2003 to SBS 2008 migration where once
everything was up and running, I had problems with Outlook 2007 Clients giving certificate
errors.  Also, OWA Outlook Web Access would redirect to <a href="http://sites/owa">http://sites/owa</a>. 
The problem was the internal and external URL settings on the various transports in
Exchange 2007.  This powershell script helped to fix the problem.  Note,
some errors occurred for me but I was able to just step through the code and issue
the commands to the Exchange Shell manually to get the job finished.  The main
problem was the AutoDiscover Internal URI - once that was fixed the rest fell into
place.
</p>
        <p>
 
</p>
        <p>
          <span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span">
            <span style="TEXT-ALIGN: left; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: rgb(0,153,204); FONT-SIZE: 14px" class="Apple-style-span">#
Script to allow you to set all virtual directories to a common name like mail.company.com<br /><br />
Start-Transcript<br /><br />
# Variables<br /><br />
[string]$UMExtend = "/UnifiedMessaging/Service.asmx"<br />
[string]$OABExtend = "/OAB"<br />
[string]$SCPExtend = "/Autodiscover/Autodiscover.xml"<br />
[string]$EWSExtend = "/EWS/Exchange.asmx"<br />
[string]$ConfirmPrompt = "Set this Value? (Y/N)"<br />
[string]$NoChangeForeground = "white"<br />
[string]$NoChangeBackground = "red"<br /><br />
Write-host "This will allow you to set the virtual directories associated with Autodiscover
provided services to the name you provide."<br />
Write-host ""<br />
[string]$base = Read-host "Base name of virtual directory (e.g. mail.company.com)"<br />
write-host ""<br />
# =======================================================<br />
# Validate if a third party trusted certificate is being used<br />
# because BITS won't use untrusted certificates<br />
[string]$set = Read-host "Is the certificate being used an internally generated certificate?
(Y/N)"<br />
Write-host ""<br /><br />
if ($set -eq "Y")    {<br />
    [string]$OABprefix = "http://"<br />
}    else    {<br />
    [string]$OABprefix = "https://"<br />
}<br /><br />
# =======================================================<br />
# Build the Autodiscover URL and set the SCP Value<br /><br />
Write-host "Setting Autodiscover Service Connection Point" -foregroundcolor Yellow<br />
write-host ""<br /><br />
$SCPURL = "https://" + $base + $SCPExtend<br /><br />
[array]$SCPCurrent = Get-ClientAccessServer<br /><br />
Foreach ($value in $SCPCurrent) {<br />
    Write-host "Looking at Server: " $value.name<br />
    Write-host "Current SCP value: " $value.AutoDiscoverServiceInternalUri.absoluteuri<br />
    Write-host "New SCP Value:     " $SCPURL<br />
    [string]$set = Read-host $ConfirmPrompt<br />
    write-host ""<br />
    <br />
    if ($set -eq "Y")    {<br />
         Set-ClientAccessServer -id $value.identity
-AutoDiscoverServiceInternalUri $SCPURL<br />
    }    else {<br />
        write-host "Autodiscover Service Connection
Point internal value NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor
$NoChangeBackground<br />
    }<br />
}<br /><br />
# =======================================================<br />
# Build the EWS URL and set the internal Value<br /><br />
Write-host "Setting Exchange Web Services Virtual Directories" -foregroundcolor Yellow<br />
write-host ""<br /><br />
$EWSURL = "https://" + $base + $EWSExtend<br /><br />
[array]$EWSCurrent = Get-WebServicesVirtualDirectory<br /><br />
Foreach ($value in $EWSCurrent) {<br />
    Write-host "Looking at Server: " $value.server<br />
    Write-host "Current Internal Value: " $value.internalURL<br />
    Write-host "New Internal Value:     " $EWSUrl<br />
    [string]$set = Read-host $ConfirmPrompt<br />
    write-host ""<br /><br />
    if ($set -eq "Y")    {<br />
        Set-WebServicesVirtualDirectory -id $value.identity
-InternalURL $EWSURL<br />
     } else {<br />
        write-host "Exchange Web Services Virtual Directory
internal value NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor
$NoChangeBackground<br />
     }<br /><br />
    Write-host "Looking at Server: " $value.server<br />
    Write-host "Current External Value: " $value.externalURL<br />
    Write-host "New External Value:     " $EWSUrl<br />
    [string]$set = Read-host $ConfirmPrompt<br />
    write-host ""<br /><br />
    if ($set -eq "Y")    {<br />
        Set-WebServicesVirtualDirectory -id $value.identity
-ExternalURL $EWSURL<br />
    } else {<br />
        write-host "Exchange Web Services Virtual Directory
external value NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor
$NoChangeBackground<br />
    }<br />
}<br /><br />
# ======================================================<br />
# Build the OAB URL and set the internal Value<br /><br />
Write-host "Setting OAB Virtual Directories" -foregroundcolor Yellow<br />
write-host ""<br /><br />
$OABURL = $OABprefix + $base + $OABExtend<br /><br />
[array]$OABCurrent = Get-OABVirtualDirectory<br /><br />
Foreach ($value in $OABcurrent) {<br />
    Write-host "Looking at Server: " $value.server<br />
    Write-host "Current Internal Value: " $value.internalURL<br />
    Write-host "New Internal Value:     " $OABUrl<br />
    [string]$set = Read-host $ConfirmPrompt<br />
    write-host ""<br /><br />
    if ($set -eq "Y")    {<br />
        Set-OABVirtualDirectory -id $value.identity
-InternalURL $OABURL<br />
    } else {<br />
        write-host "OAB Virtual Directory internal value
NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br />
    }<br /><br />
    Write-host "Looking at Server: " $value.server<br />
    Write-host "Current External Value: " $value.externalURL<br />
    Write-host "New External Value:     " $OABUrl<br />
    [string]$set = Read-host $ConfirmPrompt<br />
    write-host ""<br /><br />
    if ($set -eq "Y") {<br />
        Set-OABVirtualDirectory -id $value.identity
-ExternalURL $OABURL<br />
    } else {<br />
        write-host "OAB Virtual Directory external value
NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br />
    }<br />
}<br /><br />
# =======================================================<br />
# Build the UM URL and set the internal Value<br /><br />
Write-host "Setting UM Virtual Directories" -foregroundcolor Yellow<br />
write-host ""<br /><br />
$UMURL = "https://" + $base + $UMExtend<br /><br />
[array]$UMCurrent = Get-UMVirtualDirectory<br /><br />
foreach ($value in $UMCurrent) {<br />
    Write-host "Looking at Server: " $value.server<br />
    Write-host "Current Internal Value: " $value.internalURL<br />
    Write-host "New Internal Value:     " $UMUrl<br />
    [string]$set = Read-host $ConfirmPrompt<br />
    write-host ""<br /><br />
    if ($set -eq "Y") {<br />
        Set-UMVirtualDirectory -id $value.identity -InternalURL
$UMURL<br />
    } else {<br />
        write-host "UM Virtual Directory internal value
NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br />
    }<br /><br />
    Write-host "Looking at Server: " $value.server<br />
    Write-host "Current External Value: " $value.externalURL<br />
    Write-host "New External Value:     " $UMUrl<br />
    [string]$set = Read-host $ConfirmPrompt<br />
    write-host ""<br /><br />
    if ($set -eq "Y") {<br />
        Set-UMVirtualDirectory -id $value.identity -ExternalURL
$UMURL<br />
    } else {<br />
        write-host "UM Virtual Directory external value
NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br />
    }<br />
}<br />
Stop-Transcript</span>
          </span>
        </p>
        <p>
          <span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span">
            <span style="TEXT-ALIGN: left; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: rgb(0,153,204); FONT-SIZE: 14px" class="Apple-style-span">
            </span>
          </span> 
</p>
        <p>
          <span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span">
            <span style="TEXT-ALIGN: left; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: rgb(0,153,204); FONT-SIZE: 14px" class="Apple-style-span">(<a href="http://www.exchangeninjas.com/set-allvdirs">http://www.exchangeninjas.com/set-allvdirs</a>)</span>
          </span>
        </p>
        <img width="0" height="0" src="http://blog.freedriversite.com/aggbug.ashx?id=975d4e5d-7e01-4872-8168-b35175084b0d" />
      </body>
      <title>Outlook 2007 and Exchange 2007 - Outlook gets certificate error when opening - trying to resolve to "sites" which is not on the UCC</title>
      <guid isPermaLink="false">http://blog.freedriversite.com/PermaLink,guid,975d4e5d-7e01-4872-8168-b35175084b0d.aspx</guid>
      <link>http://blog.freedriversite.com/2010/02/22/Outlook2007AndExchange2007OutlookGetsCertificateErrorWhenOpeningTryingToResolveToSitesWhichIsNotOnTheUCC.aspx</link>
      <pubDate>Mon, 22 Feb 2010 18:50:27 GMT</pubDate>
      <description>&lt;p&gt;
I had an issue with a Small Business Server SBS 2003 to SBS 2008 migration where once
everything was up and running, I had problems with Outlook 2007 Clients giving certificate
errors.&amp;nbsp; Also, OWA Outlook Web Access would redirect to &lt;a href="http://sites/owa"&gt;http://sites/owa&lt;/a&gt;.&amp;nbsp;
The problem was the internal and external URL settings on the various transports in
Exchange 2007.&amp;nbsp; This powershell script helped to fix the problem.&amp;nbsp; Note,
some errors occurred for me but I was able to just step through the code and issue
the commands to the Exchange Shell manually to get the job finished.&amp;nbsp; The main
problem was the AutoDiscover Internal URI - once that was fixed the rest fell into
place.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span&gt;&lt;span style="TEXT-ALIGN: left; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: rgb(0,153,204); FONT-SIZE: 14px" class=Apple-style-span&gt;#
Script to allow you to set all virtual directories to a common name like mail.company.com&lt;br&gt;
&lt;br&gt;
Start-Transcript&lt;br&gt;
&lt;br&gt;
# Variables&lt;br&gt;
&lt;br&gt;
[string]$UMExtend = "/UnifiedMessaging/Service.asmx"&lt;br&gt;
[string]$OABExtend = "/OAB"&lt;br&gt;
[string]$SCPExtend = "/Autodiscover/Autodiscover.xml"&lt;br&gt;
[string]$EWSExtend = "/EWS/Exchange.asmx"&lt;br&gt;
[string]$ConfirmPrompt = "Set this Value? (Y/N)"&lt;br&gt;
[string]$NoChangeForeground = "white"&lt;br&gt;
[string]$NoChangeBackground = "red"&lt;br&gt;
&lt;br&gt;
Write-host "This will allow you to set the virtual directories associated with Autodiscover
provided services to the name you provide."&lt;br&gt;
Write-host ""&lt;br&gt;
[string]$base = Read-host "Base name of virtual directory (e.g. mail.company.com)"&lt;br&gt;
write-host ""&lt;br&gt;
# =======================================================&lt;br&gt;
# Validate if a third party trusted certificate is being used&lt;br&gt;
# because BITS won't use untrusted certificates&lt;br&gt;
[string]$set = Read-host "Is the certificate being used an internally generated certificate?
(Y/N)"&lt;br&gt;
Write-host ""&lt;br&gt;
&lt;br&gt;
if ($set -eq "Y")&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$OABprefix = "http://"&lt;br&gt;
}&amp;nbsp;&amp;nbsp; &amp;nbsp;else&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$OABprefix = "https://"&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
# =======================================================&lt;br&gt;
# Build the Autodiscover URL and set the SCP Value&lt;br&gt;
&lt;br&gt;
Write-host "Setting Autodiscover Service Connection Point" -foregroundcolor Yellow&lt;br&gt;
write-host ""&lt;br&gt;
&lt;br&gt;
$SCPURL = "https://" + $base + $SCPExtend&lt;br&gt;
&lt;br&gt;
[array]$SCPCurrent = Get-ClientAccessServer&lt;br&gt;
&lt;br&gt;
Foreach ($value in $SCPCurrent) {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Looking at Server: " $value.name&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Current SCP value: " $value.AutoDiscoverServiceInternalUri.absoluteuri&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "New SCP Value:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " $SCPURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$set = Read-host $ConfirmPrompt&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host ""&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($set -eq "Y")&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Set-ClientAccessServer -id $value.identity
-AutoDiscoverServiceInternalUri $SCPURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&amp;nbsp;&amp;nbsp; &amp;nbsp;else {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host "Autodiscover Service Connection
Point internal value NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor
$NoChangeBackground&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
# =======================================================&lt;br&gt;
# Build the EWS URL and set the internal Value&lt;br&gt;
&lt;br&gt;
Write-host "Setting Exchange Web Services Virtual Directories" -foregroundcolor Yellow&lt;br&gt;
write-host ""&lt;br&gt;
&lt;br&gt;
$EWSURL = "https://" + $base + $EWSExtend&lt;br&gt;
&lt;br&gt;
[array]$EWSCurrent = Get-WebServicesVirtualDirectory&lt;br&gt;
&lt;br&gt;
Foreach ($value in $EWSCurrent) {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Looking at Server: " $value.server&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Current Internal Value: " $value.internalURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "New Internal Value:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " $EWSUrl&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$set = Read-host $ConfirmPrompt&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host ""&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($set -eq "Y")&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Set-WebServicesVirtualDirectory -id $value.identity
-InternalURL $EWSURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; } else {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host "Exchange Web Services Virtual Directory
internal value NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor
$NoChangeBackground&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Looking at Server: " $value.server&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Current External Value: " $value.externalURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "New External Value:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " $EWSUrl&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$set = Read-host $ConfirmPrompt&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host ""&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($set -eq "Y")&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Set-WebServicesVirtualDirectory -id $value.identity
-ExternalURL $EWSURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;} else {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host "Exchange Web Services Virtual Directory
external value NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor
$NoChangeBackground&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
# ======================================================&lt;br&gt;
# Build the OAB URL and set the internal Value&lt;br&gt;
&lt;br&gt;
Write-host "Setting OAB Virtual Directories" -foregroundcolor Yellow&lt;br&gt;
write-host ""&lt;br&gt;
&lt;br&gt;
$OABURL = $OABprefix + $base + $OABExtend&lt;br&gt;
&lt;br&gt;
[array]$OABCurrent = Get-OABVirtualDirectory&lt;br&gt;
&lt;br&gt;
Foreach ($value in $OABcurrent) {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Looking at Server: " $value.server&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Current Internal Value: " $value.internalURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "New Internal Value:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " $OABUrl&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$set = Read-host $ConfirmPrompt&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host ""&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($set -eq "Y")&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Set-OABVirtualDirectory -id $value.identity
-InternalURL $OABURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;} else {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host "OAB Virtual Directory internal value
NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Looking at Server: " $value.server&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Current External Value: " $value.externalURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "New External Value:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " $OABUrl&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$set = Read-host $ConfirmPrompt&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host ""&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($set -eq "Y") {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Set-OABVirtualDirectory -id $value.identity
-ExternalURL $OABURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;} else {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host "OAB Virtual Directory external value
NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
# =======================================================&lt;br&gt;
# Build the UM URL and set the internal Value&lt;br&gt;
&lt;br&gt;
Write-host "Setting UM Virtual Directories" -foregroundcolor Yellow&lt;br&gt;
write-host ""&lt;br&gt;
&lt;br&gt;
$UMURL = "https://" + $base + $UMExtend&lt;br&gt;
&lt;br&gt;
[array]$UMCurrent = Get-UMVirtualDirectory&lt;br&gt;
&lt;br&gt;
foreach ($value in $UMCurrent) {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Looking at Server: " $value.server&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Current Internal Value: " $value.internalURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "New Internal Value:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " $UMUrl&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$set = Read-host $ConfirmPrompt&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host ""&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($set -eq "Y") {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Set-UMVirtualDirectory -id $value.identity -InternalURL
$UMURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;} else {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host "UM Virtual Directory internal value
NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Looking at Server: " $value.server&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "Current External Value: " $value.externalURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Write-host "New External Value:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " $UMUrl&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;[string]$set = Read-host $ConfirmPrompt&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host ""&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($set -eq "Y") {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Set-UMVirtualDirectory -id $value.identity -ExternalURL
$UMURL&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;} else {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;write-host "UM Virtual Directory external value
NOT changed" -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br&gt;
}&lt;br&gt;
Stop-Transcript&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span&gt;&lt;span style="TEXT-ALIGN: left; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: rgb(0,153,204); FONT-SIZE: 14px" class=Apple-style-span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span&gt;&lt;span style="TEXT-ALIGN: left; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: rgb(0,153,204); FONT-SIZE: 14px" class=Apple-style-span&gt;(&lt;a href="http://www.exchangeninjas.com/set-allvdirs"&gt;http://www.exchangeninjas.com/set-allvdirs&lt;/a&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.freedriversite.com/aggbug.ashx?id=975d4e5d-7e01-4872-8168-b35175084b0d" /&gt;</description>
      <comments>http://blog.freedriversite.com/CommentView,guid,975d4e5d-7e01-4872-8168-b35175084b0d.aspx</comments>
      <category>Exchange 2007</category>
      <category>SBS 2008</category>
    </item>
  </channel>
</rss>