Skip to content
This repository was archived by the owner on Apr 21, 2020. It is now read-only.

Commit 2b754d5

Browse files
authored
Merge pull request #2 from cunninghamp/development
V1.04
2 parents c9d02e4 + 4942613 commit 2b754d5

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

ConfigureExchangeURLs.ps1

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ The internal namespace you are using.
2323
.PARAMETER ExternalURL
2424
The external namespace you are using.
2525
26-
.PARAMETER DefaultAuth
27-
The default authentication method to set for Outlook Anywhere. Defaults to NTLM.
28-
2926
.PARAMETER InternalSSL
3027
Specifies the internal SSL requirement for Outlook Anywhere. Defaults to True (SSL required).
3128
@@ -86,6 +83,7 @@ V1.00, 13/11/2014 - Initial version
8683
V1.01, 26/06/2015 - Added MAPI/HTTP URL configuration
8784
V1.02, 27/08/2015 - Improved error handling, can now specify multiple servers to configure at once.
8885
V1.03, 09/09/2015 - ExternalURL can now be $null
86+
V1.04, 17/11/2016 - Removed Outlook Anywhere auth settings, script now sets URLs only
8987
#>
9088

9189
#requires -version 2
@@ -102,9 +100,6 @@ param(
102100
[AllowEmptyString()]
103101
[string]$ExternalURL,
104102

105-
[Parameter( Mandatory=$false)]
106-
[string]$DefaultAuth="NTLM",
107-
108103
[Parameter( Mandatory=$false)]
109104
[Boolean]$InternalSSL=$true,
110105

@@ -144,13 +139,15 @@ Process {
144139
Write-Host "Values:"
145140
Write-Host " - Internal URL: $InternalURL"
146141
Write-Host " - External URL: $ExternalURL"
147-
Write-Host " - Outlook Anywhere default authentication: $DefaultAuth"
148142
Write-Host " - Outlook Anywhere internal SSL required: $InternalSSL"
149143
Write-Host " - Outlook Anywhere external SSL required: $ExternalSSL"
150144
Write-Host "`r`n"
151145

152146
Write-Host "Configuring Outlook Anywhere URLs"
153-
Get-OutlookAnywhere -Server $i | Set-OutlookAnywhere -ExternalHostname $externalurl -InternalHostname $internalurl -ExternalClientsRequireSsl $ExternalSSL -InternalClientsRequireSsl $InternalSSL -DefaultAuthenticationMethod $DefaultAuth
147+
$OutlookAnywhere = Get-OutlookAnywhere -Server $i
148+
$OutlookAnywhere | Set-OutlookAnywhere -ExternalHostname $externalurl -InternalHostname $internalurl `
149+
-ExternalClientsRequireSsl $ExternalSSL -InternalClientsRequireSsl $InternalSSL `
150+
-ExternalClientAuthenticationMethod $OutlookAnywhere.ExternalClientAuthenticationMethod
154151

155152
if ($externalurl -eq "")
156153
{
@@ -193,8 +190,6 @@ Process {
193190
Get-MapiVirtualDirectory -Server $i | Set-MapiVirtualDirectory -ExternalUrl https://$externalurl/mapi -InternalUrl https://$internalurl/mapi
194191
}
195192

196-
197-
198193
Write-Host "Configuring Autodiscover"
199194
Get-ClientAccessServer $i | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://$internalurl/Autodiscover/Autodiscover.xml
200195

0 commit comments

Comments
 (0)