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

Commit

Permalink
Merge pull request #3 from cunninghamp/development
Browse files Browse the repository at this point in the history
V1.05
  • Loading branch information
cunninghamp authored Nov 17, 2016
2 parents 2b754d5 + 40928a7 commit 914bfaf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 11 additions & 1 deletion ConfigureExchangeURLs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ V1.01, 26/06/2015 - Added MAPI/HTTP URL configuration
V1.02, 27/08/2015 - Improved error handling, can now specify multiple servers to configure at once.
V1.03, 09/09/2015 - ExternalURL can now be $null
V1.04, 17/11/2016 - Removed Outlook Anywhere auth settings, script now sets URLs only
V1.05, 18/11/2016 - Added AutodiscoverSCP option so it can be set to a different URL than other services
#>

#requires -version 2
Expand All @@ -100,6 +101,9 @@ param(
[AllowEmptyString()]
[string]$ExternalURL,

[Parameter( Mandatory=$false)]
[string]$AutodiscoverSCP,

[Parameter( Mandatory=$false)]
[Boolean]$InternalSSL=$true,

Expand Down Expand Up @@ -191,7 +195,13 @@ Process {
}

Write-Host "Configuring Autodiscover"
Get-ClientAccessServer $i | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://$internalurl/Autodiscover/Autodiscover.xml
if ($AutodiscoverSCP) {
Get-ClientAccessServer $i | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://$AutodiscoverSCP/Autodiscover/Autodiscover.xml
}
else {
Get-ClientAccessServer $i | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://$internalurl/Autodiscover/Autodiscover.xml
}


Write-Host "`r`n"
}
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Parameters:
- **-Server** - The name(s) of the server(s) you are configuring.
- **-InternalURL** - The internal namespace you are using.
- **-ExternalURL** - The external namespace you are using.
- **-DefaultAuth** - The default authentication method to set for Outlook Anywhere. Defaults to NTLM.
- **-AutodiscoverSCP** - Used to set a different Autodiscover URL if you need to.
- **-InternalSSL** - Specifies the internal SSL requirement for Outlook Anywhere. Defaults to True (SSL required).
- **-ExternalSSL** - Specifies the external SSL requirement for Outlook Anywhere. Defaults to True (SSL required).

Expand All @@ -40,6 +40,10 @@ Examples:
.\ConfigureExchangeURLs.ps1 -Server sydex1,sydex2 -InternalURL mail.exchangeserverpro.net -ExternalURL mail.exchangeserverpro.net
```

```
.\ConfigureExchangeURLs.ps1 -Server sydex1 -InternalURL mail.exchangeserverpro.net -ExternalURL mail.exchangeserverpro.net -AutodiscoverSCP autodiscover.exchangeserverpro.net
```

##More Info

http://exchangeserverpro.com/powershell-script-configure-exchange-urls/
Expand Down

0 comments on commit 914bfaf

Please sign in to comment.