This repository was archived by the owner on Apr 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ V1.01, 26/06/2015 - Added MAPI/HTTP URL configuration
84
84
V1.02, 27/08/2015 - Improved error handling, can now specify multiple servers to configure at once.
85
85
V1.03, 09/09/2015 - ExternalURL can now be $null
86
86
V1.04, 17/11/2016 - Removed Outlook Anywhere auth settings, script now sets URLs only
87
+ V1.05, 18/11/2016 - Added AutodiscoverSCP option so it can be set to a different URL than other services
87
88
#>
88
89
89
90
# requires -version 2
@@ -100,6 +101,9 @@ param(
100
101
[AllowEmptyString ()]
101
102
[string ]$ExternalURL ,
102
103
104
+ [Parameter ( Mandatory = $false )]
105
+ [string ]$AutodiscoverSCP ,
106
+
103
107
[Parameter ( Mandatory = $false )]
104
108
[Boolean ]$InternalSSL = $true ,
105
109
@@ -191,7 +195,13 @@ Process {
191
195
}
192
196
193
197
Write-Host " Configuring Autodiscover"
194
- Get-ClientAccessServer $i | Set-ClientAccessServer - AutoDiscoverServiceInternalUri https:// $internalurl / Autodiscover/ Autodiscover.xml
198
+ if ($AutodiscoverSCP ) {
199
+ Get-ClientAccessServer $i | Set-ClientAccessServer - AutoDiscoverServiceInternalUri https:// $AutodiscoverSCP / Autodiscover/ Autodiscover.xml
200
+ }
201
+ else {
202
+ Get-ClientAccessServer $i | Set-ClientAccessServer - AutoDiscoverServiceInternalUri https:// $internalurl / Autodiscover/ Autodiscover.xml
203
+ }
204
+
195
205
196
206
Write-Host " `r`n "
197
207
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Parameters:
26
26
- ** -Server** - The name(s) of the server(s) you are configuring.
27
27
- ** -InternalURL** - The internal namespace you are using.
28
28
- ** -ExternalURL** - The external namespace you are using.
29
- - ** -DefaultAuth ** - The default authentication method to set for Outlook Anywhere. Defaults to NTLM .
29
+ - ** -AutodiscoverSCP ** - Used to set a different Autodiscover URL if you need to.
30
30
- ** -InternalSSL** - Specifies the internal SSL requirement for Outlook Anywhere. Defaults to True (SSL required).
31
31
- ** -ExternalSSL** - Specifies the external SSL requirement for Outlook Anywhere. Defaults to True (SSL required).
32
32
@@ -40,6 +40,10 @@ Examples:
40
40
.\ConfigureExchangeURLs.ps1 -Server sydex1,sydex2 -InternalURL mail.exchangeserverpro.net -ExternalURL mail.exchangeserverpro.net
41
41
```
42
42
43
+ ```
44
+ .\ConfigureExchangeURLs.ps1 -Server sydex1 -InternalURL mail.exchangeserverpro.net -ExternalURL mail.exchangeserverpro.net -AutodiscoverSCP autodiscover.exchangeserverpro.net
45
+ ```
46
+
43
47
##More Info
44
48
45
49
http://exchangeserverpro.com/powershell-script-configure-exchange-urls/
You can’t perform that action at this time.
0 commit comments