1. Exchange Shell Commands проверка версий of Exchange серверов

[PS] C:\Windows\system32>Get-ExchangeServer | Format-List Name, Edition, AdminDisplayVersion

Name : E2010

Edition : StandardEvaluation

AdminDisplayVersion : Version 14.3 (Build 123.4)

2. Exchange Shell Commands проверка Owa Virtual Directory

[PS] C:\Windows\system32>Get-OwaVirtualDirectory | Format-List

InternalUrl : https://mail.niyasitpro.com/OWA

ExternalUrl : https://mail.niyasitpro.com/OWA

3. Configuring Exchange Server Prerequisites – запускаем в powershell для установки необходимых компонентов.

Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience,NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering,

RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation, RSAT-ADDS

4. Установить .Net Framework 4.5 Prerequisites

http://support.microsoft.com/kb/2901907

5. Установить Microsoft unified communications managed API c

http://go.microsoft.com/fwlink/p/?linkId=258269

6. Подготовка Active Directory

setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms

setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms

7. Обновление Service Connection Point

Set-ClientAccessService -Identity E2016 -AutodiscoverServiceInternalURI https://autodiscover.niyasitpro.com/Autodiscover/Autodiscover.xml

8. Настройка Exchange Server URL для каждой виртуальной директории

$Server = “ServerName”

$HTTPS_FQDN = “mail.domain.com”

Get-OWAVirtualDirectory -Server $Server | Set-OWAVirtualDirectory -InternalURL “https://$($HTTPS_FQDN)/owa” -ExternalURL “https://$($HTTPS_FQDN)/owa”

Get-ECPVirtualDirectory -Server $Server | Set-ECPVirtualDirectory -InternalURL “https://$($HTTPS_FQDN)/ecp” -ExternalURL “https://$($HTTPS_FQDN)/ecp”

Get-OABVirtualDirectory -Server $Server | Set-OABVirtualDirectory -InternalURL “https://$($HTTPS_FQDN)/oab” -ExternalURL “https://$($HTTPS_FQDN)/oab”

Get-ActiveSyncVirtualDirectory -Server $Server | Set-ActiveSyncVirtualDirectory -InternalURL “https://$($HTTPS_FQDN)/Microsoft-Server-ActiveSync” -ExternalURL “https://$($HTTPS_FQDN)/Microsoft-Server-ActiveSync”

Get-WebServicesVirtualDirectory -Server $Server | Set-WebServicesVirtualDirectory -InternalURL “https://$($HTTPS_FQDN)/EWS/Exchange.asmx” -ExternalURL “https://$($HTTPS_FQDN)/EWS/Exchange.asmx”

Get-MapiVirtualDirectory -Server $Server | Set-MapiVirtualDirectory -InternalURL “https://$($HTTPS_FQDN)/mapi” -ExternalURL https://$($HTTPS_FQDN)/mapi

9. Переименование и перемещение базы данных

Get-MailboxDatabase -Server <Server> | Set-MailboxDatabase -Name DB01

Move-DatabasePath -Identity DB01 -EdbFilePath E:\ExchangeDatabases\DB01\DB01.EDB -LogFolderPath E:\ExchangeDatabases\DB01_Log

10. Обновление Exchange Server 2010 virtual directory URLS

$Server = “E2010”

$HTTPS_FQDN = “mail.niyasitpro.com”

Get-OWAVirtualDirectory -Server $Server | Set-OWAVirtualDirectory -ExternalURL $null

Get-ECPVirtualDirectory -Server $Server | Set-ECPVirtualDirectory -ExternalURL $null

Get-OABVirtualDirectory -Server $Server | Set-OABVirtualDirectory -ExternalURL $null

Get-ActiveSyncVirtualDirectory -Server $Server | Set-ActiveSyncVirtualDirectory -ExternalURL $null

Get-WebServicesVirtualDirectory -Server $Server | Set-WebServicesVirtualDirectory -ExternalURL $null

Enable-OutlookAnywhere -Server $Server -ClientAuthenticationMethod Basic -SSLOffloading $False -ExternalHostName $HTTPS_FQDN -IISAuthenticationMethods NTLM, Basic

11. Перемещение почтовых ящиков из Exchange 2010 в Exchange 2016

Get-Mailbox -Database Mailbox1 | New-MoveRequest -TargetDatabase DB01 -BatchName DB01

Get-MoveRequest -BatchName “DB01” | Get-MoveRequestStatistics