Home WindowsExchange ServerКонфигурация Exchange Server Настройка Internal и External URL адреса в Exchange server 2016

Настройка Internal и External URL адреса в Exchange server 2016

by admin
648 views
Exchange

Что дальше после установки Exchange Server и настройки внутреннего DNS, cледующим шагом является настройка internal и external URL-адресов в Exchange Server. Настроить URL-адреса можно с помощью Центра администрирования Exchange (EAC) или с помощью PowerShell.

Информация о внутреннем и внешнем URL-адресе в Exchange

У нас есть внутренний домен pentagon.local и внешний домен adlukashin.ru. В нашем примере мы настроим пространство имен mail.adlukashin. . Мы настроим внутренние и внешние URL-адреса с одинаковым именем. Почти все URL-адреса будут иметь mail.adlukashin в конфигурации.

ServiceInternal and External URL
AutoDiscoverhttps://autodiscover.adlukashin.ru/Autodiscover/Autodiscover.xml
Exchange Control Panelhttps://mail.adlukashin.ru/ecp
Exchange Web Serviceshttps://mail.adlukashin.ru/EWS/Exchange.asmx
Exchange ActiveSynchttps://mail.adlukashin.ru/Microsoft-Server-ActiveSync
Offline Address Bookhttps://mail.adlukashin.ru/OAB
Outlook Web Apphttps://mail.adlukashin.ru/owa
MAPI over HTTPhttps://mail.adlukashin.ru/mapi
Outlook Anywheremail.adlukashin.ru

Настройка Internal и External URL-адреса в Exchange с помощью PowerShell

Войдите на сервер Exchange. Запустите командную консоль Exchange от имени администратора. Установите виртуальный каталог для каждого компонента и проверьте его после. Если вы хотите установить URL-адреса на всех серверах Exchange, удалите -mbx1  из каждой команды.

В нашем примере нам нравится настраивать URL-адреса на этом конкретном сервере Exchange, поэтому мы будем использовать параметр -Server .

Настройте URL-адрес для автообнаружения .

[PS] C:\Windows\system32>Get-ClientAccessServer -Identity mbx1 | Set-ClientAccessServer -AutoDiscoverServiceInternalUri
https://autodiscover.adlukashin.ru/Autodiscover/Autodiscover.xml


[PS] C:\Windows\system32>Get-ClientAccessService -Identity mbx1 | Format-List Identity, AutoDiscoverServiceInternalUri


Identity                       : MBX1
AutoDiscoverServiceInternalUri : https://autodiscover.adlukashin.ru/Autodiscover/Autodiscover.xml

Настройте URL-адрес для панели управления Exchange (ECP) .

[PS] C:\>Get-EcpVirtualDirectory -Server mbx1 | Set-EcpVirtualDirectory -ExternalUrl https://mail.adlukashin.ru/ecp -InternalUrl https://mail.adlukashin.ru/ecp

[PS] C:\>Get-EcpVirtualDirectory -Server mbx1 | Format-List InternalUrl, ExternalUrl

InternalUrl : https://mail.adlukashin.ru/ecp
ExternalUrl : https://mail.adlukashin.ru/ecp

Настройте URL-адрес для веб-служб Exchange (EWS) .

[PS] C:\>Get-WebServicesVirtualDirectory -Server mbx1 | Set-WebServicesVirtualDirectory -ExternalUrl https://mail.adlukashin.ru/EWS/Exchange.asmx -InternalUrl https://mail.adlukashin.ru/EWS/Exchange.asmx

[PS] C:\>Get-WebServicesVirtualDirectory -Server mbx1 | Format-List InternalUrl, ExternalUrl

InternalUrl : https://mail.adlukashin.ru/EWS/Exchange.asmx
ExternalUrl : https://mail.adlukashin.ru/EWS/Exchange.asmx

Настройте URL-адрес для MAPI .

[PS] C:\>Get-MapiVirtualDirectory -Server mbx1 | Set-MapiVirtualDirectory -ExternalUrl https://mail.adlukashin.ru/mapi -InternalUrl https://mail.adlukashin.ru/mapi

[PS] C:\>Get-MapiVirtualDirectory -Server mbx1 | Format-List InternalUrl, ExternalUrl

InternalUrl : https://mail.adlukashin.ru/mapi
ExternalUrl : https://mail.adlukashin.ru/mapi

Настройте URL для ActiveSync .

[PS] C:\>Get-ActiveSyncVirtualDirectory -Server mbx1 | Set-ActiveSyncVirtualDirectory -ExternalUrl https://mail.adlukashin.ru/Microsoft-Server-ActiveSync -InternalUrl https://mail.adlukashin.ru/Microsoft-Server-ActiveSync

[PS] C:\>Get-ActiveSyncVirtualDirectory -Server mbx1 | Format-List InternalUrl, ExternalUrl


InternalUrl : https://mail.adlukashin.ru/Microsoft-Server-ActiveSync
ExternalUrl : https://mail.adlukashin.ru/Microsoft-Server-ActiveSync

Настройте URL-адрес для автономной адресной книги (OAB) .

[PS] C:\>Get-OabVirtualDirectory -Server mbx1 | Set-OabVirtualDirectory -ExternalUrl https://mail.adlukashin.ru/OAB -InternalUrl https://mail.adlukashin.ru/OAB

[PS] C:\>Get-OabVirtualDirectory -Server mbx1 | Format-List InternalUrl, ExternalUrl

InternalUrl : https://mail.adlukashin.ru/OAB
ExternalUrl : https://mail.adlukashin.ru/OAB

Настройте URL-адрес для Outlook Web Access (OWA).

[PS] C:\>Get-OwaVirtualDirectory -Server mbx1 | Set-OwaVirtualDirectory -ExternalUrl https://mail.adlukashin.ru/owa -InternalUrl https://mail.adlukashin.ru/owa


[PS] C:\>Get-OwaVirtualDirectory -Server mbx1 | Format-List InternalUrl, ExternalUrl

InternalUrl : https://mail.adlukashin.ru/owa
ExternalUrl : https://mail.adlukashin.ru/owa

Настройте URL-адрес для PowerShell .

[PS] C:\>Get-PowerShellVirtualDirectory -Server mbx1 | Set-PowerShellVirtualDirectory -ExternalUrl https://mail.adlukashin.ru/powershell -InternalUrl https://mail.adlukashin.ru/powershell

[PS] C:\>Get-PowerShellVirtualDirectory -Server mbx1 | Format-List InternalUrl, ExternalUrl

InternalUrl : https://mail.adlukashin.ru/powershell
ExternalUrl : https://mail.adlukashin.ru/powershell

Настройте URL-адрес для мобильного Outlook .

[PS] C:\>Get-OutlookAnywhere -Server mbx1 | Set-OutlookAnywhere -ExternalHostname mail.adlukashin.ru -InternalHostname mail.adlukashin.ru -ExternalClientsRequireSsl $true -InternalClientsRequireSsl $true -DefaultAuthenticationMethod NTLM

[PS] C:\>Get-OutlookAnywhere -Server mbx1 | Format-List ExternalHostname, InternalHostname

ExternalHostname : mail.adlukashin.ru
InternalHostname : mail.adlukashin.ru

Настройка внутреннего и внешнего URL-адресов в Exchange Server успешно завершена.

Настройка URL-адресов Exchange Server с помощью сценария PowerShell

Скачайте скрипты с гитхаба либо напрямую с моего сайта

Установить виртуальные каталоги

Более быстрый способ установить все внутренние и внешние URL-адреса — использовать сценарий PowerShell .\ConfigureExchangeURLs.ps1 . 

[PS] C:\Users\administrator.PENTAGON\Desktop>.\ConfigureExchangeURLs.ps1

cmdlet ConfigureExchangeURLs.ps1 at command pipeline position 1
Supply values for the following parameters:
Server[0]: mbx1
Server[1]:
InternalURL: mail.adlukashin.ru
ExternalURL: mail.adlukashin.ru

         Welcome to the Exchange Management Shell!

Full list of cmdlets: Get-Command
Only Exchange cmdlets: Get-ExCommand
Cmdlets that match a specific string: Help *<string>*
Get general help: Help
Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
Exchange team blog: Get-ExBlog
Show full output for a command: <command> | Format-List

Show quick reference guide: QuickRef
VERBOSE: Connecting to MBX1.pentagon.loc.
VERBOSE: Connected to MBX1.pentagon.loc.
----------------------------------------
 Configuring mbx1
----------------------------------------

Values:
 - Internal URL: mail.adlukashin.ru
 - External URL: mail.adlukashin.ru
 - Outlook Anywhere internal SSL required: True
 - Outlook Anywhere external SSL required: True


Configuring Outlook Anywhere URLs
Configuring Outlook Web App URLs
WARNING: You've changed the InternalURL or ExternalURL for the OWA virtual directory. Please make the same change for
the ECP virtual directory in the same website.
Configuring Exchange Control Panel URLs
Configuring ActiveSync URLs
Configuring Exchange Web Services URLs
Configuring Offline Address Book URLs
Configuring MAPI/HTTP URLs
Configuring Autodiscover
WARNING:  The Get-ClientAccessServer cmdlet will be removed in a future version of Exchange. Use the
Get-ClientAccessService cmdlet instead. If you have any scripts that use the Get-ClientAccessServer cmdlet, update them
 to use the Get-ClientAccessService cmdlet.  For more information, see http://go.microsoft.com/fwlink/p/?LinkId=254711.
WARNING:  The Set-ClientAccessServer cmdlet will be removed in a future version of Exchange. Use the
Set-ClientAccessService cmdlet instead. If you have any scripts that use the Set-ClientAccessServer cmdlet, update them
 to use the Set-ClientAccessService cmdlet.  For more information, see http://go.microsoft.com/fwlink/p/?LinkId=254711.


Finished processing all servers specified. Consider running Get-CASHealthCheck.ps1 to test your Client Access namespace and SSL configuration.
Refer to http://exchangeserverpro.com/testing-exchange-server-2013-client-access-server-health-with-powershell/ for more details.
[PS] C:\Users\administrator.PENTAGON\Desktop>

Получить список виртуальных каталогов

используйте сценарий PowerShell .\GetExchangeURLs.ps1

[PS] C:\Users\administrator.PENTAGON\Desktop>.\GetExchangeURLs.ps1

cmdlet GetExchangeURLs.ps1 at command pipeline position 1
Supply values for the following parameters:
Server[0]: mbx1
Server[1]:

         Welcome to the Exchange Management Shell!

Full list of cmdlets: Get-Command
Only Exchange cmdlets: Get-ExCommand
Cmdlets that match a specific string: Help *<string>*
Get general help: Help
Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
Exchange team blog: Get-ExBlog
Show full output for a command: <command> | Format-List

Show quick reference guide: QuickRef
VERBOSE: Connecting to MBX1.pentagon.loc.
VERBOSE: Connected to MBX1.pentagon.loc.
----------------------------------------
 Querying mbx1
----------------------------------------



Outlook Anywhere
 - Internal: mail.adlukashin.ru
 - External: mail.adlukashin.ru


Outlook Web App
 - Internal: https://mail.adlukashin.ru/owa
 - External: https://mail.adlukashin.ru/owa


Exchange Control Panel
 - Internal: https://mail.adlukashin.ru/ecp
 - External: https://mail.adlukashin.ru/ecp


Offline Address Book
 - Internal: https://mail.adlukashin.ru/OAB
 - External: https://mail.adlukashin.ru/OAB


Exchange Web Services
 - Internal: https://mail.adlukashin.ru/EWS/Exchange.asmx
 - External: https://mail.adlukashin.ru/EWS/Exchange.asmx


MAPI
 - Internal: https://mail.adlukashin.ru/mapi
 - External: https://mail.adlukashin.ru/mapi


ActiveSync
 - Internal: https://mail.adlukashin.ru/Microsoft-Server-ActiveSync
 - External: https://mail.adlukashin.ru/Microsoft-Server-ActiveSync


WARNING:  The Get-ClientAccessServer cmdlet will be removed in a future version of Exchange. Use the
Get-ClientAccessService cmdlet instead. If you have any scripts that use the Get-ClientAccessServer cmdlet, update them
 to use the Get-ClientAccessService cmdlet.  For more information, see http://go.microsoft.com/fwlink/p/?LinkId=254711.
Autodiscover
 - Internal SCP: https://mail.adlukashin.ru/Autodiscover/Autodiscover.xml


Finished querying all servers specified.
[PS] C:\Users\administrator.PENTAGON\Desktop>

Статьи из этой категории

Leave a Comment