@@ -23,9 +23,6 @@ The internal namespace you are using.
23
23
. PARAMETER ExternalURL
24
24
The external namespace you are using.
25
25
26
- . PARAMETER DefaultAuth
27
- The default authentication method to set for Outlook Anywhere. Defaults to NTLM.
28
-
29
26
. PARAMETER InternalSSL
30
27
Specifies the internal SSL requirement for Outlook Anywhere. Defaults to True (SSL required).
31
28
@@ -86,6 +83,7 @@ V1.00, 13/11/2014 - Initial version
86
83
V1.01, 26/06/2015 - Added MAPI/HTTP URL configuration
87
84
V1.02, 27/08/2015 - Improved error handling, can now specify multiple servers to configure at once.
88
85
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
89
87
#>
90
88
91
89
# requires -version 2
@@ -102,9 +100,6 @@ param(
102
100
[AllowEmptyString ()]
103
101
[string ]$ExternalURL ,
104
102
105
- [Parameter ( Mandatory = $false )]
106
- [string ]$DefaultAuth = " NTLM" ,
107
-
108
103
[Parameter ( Mandatory = $false )]
109
104
[Boolean ]$InternalSSL = $true ,
110
105
@@ -144,13 +139,15 @@ Process {
144
139
Write-Host " Values:"
145
140
Write-Host " - Internal URL: $InternalURL "
146
141
Write-Host " - External URL: $ExternalURL "
147
- Write-Host " - Outlook Anywhere default authentication: $DefaultAuth "
148
142
Write-Host " - Outlook Anywhere internal SSL required: $InternalSSL "
149
143
Write-Host " - Outlook Anywhere external SSL required: $ExternalSSL "
150
144
Write-Host " `r`n "
151
145
152
146
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
154
151
155
152
if ($externalurl -eq " " )
156
153
{
@@ -193,8 +190,6 @@ Process {
193
190
Get-MapiVirtualDirectory - Server $i | Set-MapiVirtualDirectory - ExternalUrl https:// $externalurl / mapi - InternalUrl https:// $internalurl / mapi
194
191
}
195
192
196
-
197
-
198
193
Write-Host " Configuring Autodiscover"
199
194
Get-ClientAccessServer $i | Set-ClientAccessServer - AutoDiscoverServiceInternalUri https:// $internalurl / Autodiscover/ Autodiscover.xml
200
195
0 commit comments