前两天微软发布了Exchange Server 2016的预览版,今天有点时间就来跟大家分享一下,与2013的最大变化就是没有了前端,只剩下了邮箱服务器和边缘服务器,OWA界面更像O365或者Outlook.com的样子了,细节功能做了不少优化,废话不多说咱们就开始吧。


安装活动目录:

Install-WindowsFeature AD-Domain-Services,RSAT-ADDS,RSAT-DNS-Server

Import-Module ADDSDeployment

Install-ADDSForest -CreateDnsDelegation:$false -DatabasePath:"C:\Windows\NTDS" -LogPath "C:\Windows\NTDS" -SysvolPath "C:\Windows\SYSVOL" -DomainMode "Win2012R2" -DomainName "exchange.com" -DomainNetbiosName "exchange" -ForestMode "Win2012R2" -InstallDns:$true -NoRebootOnCompletion:$false -Force:$true

安装CA:

Install-WindowsFeature AD-Certificate,ADCS-Web-Enrollment,ADCS-Online-Cert,RSAT-Online-Responder,RSAT-ADCS-Mgmt

Import-Module ADCSDeployment

Install-AdcsCertificationAuthority -CACommonName "DEMO-Exchange-CA" -CAType EnterpriseRootCA -ValidityPeriod Years -ValidityPeriodUnits 10

Y

Install-AdcsWebEnrollment

Y

Install-ADcsOnlineResponder

Y

Exchange Server 2016预览版自动化部署及简单体验_Exchange 2016

添加Exchange DNS记录:

Add-DnsServerResourceRecordA -IPv4Address <IP Address> -Name <Record Name> -ZoneName <Zone FQDN>

Exchange Server 2016预览版自动化部署及简单体验_自动化部署_02

安装Exchange先决条件:

Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-ADDS,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

Exchange Server 2016预览版自动化部署及简单体验_体验_03

Exchange Server 2016预览版自动化部署及简单体验_体验_04

Exchange加域

Exchange Server 2016预览版自动化部署及简单体验_Exchange 2016_05

离线安装.NET 4.5.2

Exchange Server 2016预览版自动化部署及简单体验_预览_06

UCWA 4.0

Exchange Server 2016预览版自动化部署及简单体验_体验_07

申请证书:

Exchange Server 2016预览版自动化部署及简单体验_预览_08

Exchange Server 2016预览版自动化部署及简单体验_体验_09

Exchange Server 2016预览版自动化部署及简单体验_自动化部署_10

安装Exchange 2016:

Setup.exe /mode:Install /role:Mailbox /OrganizationName:Exchange /IAcceptExchangeServerLicenseTerms

Exchange Server 2016预览版自动化部署及简单体验_体验_11

//配置发送连接器:

New-SendConnector -Internet -Name SendToInternet -AddressSpaces *

Exchange Server 2016预览版自动化部署及简单体验_Exchange 2016_12

//定义变量:

$HostName = "EXCH"

$SvrAddress = "mail.exchange.com"

Exchange Server 2016预览版自动化部署及简单体验_体验_13

//配置自动发现地址

Set-ClientAccessServer -Identity $hostname -AutoDiscoverServiceInternalUri "https://$svraddress/autodiscover/autodiscover.xml"

Exchange Server 2016预览版自动化部署及简单体验_体验_14

//配置ECP内外部地址

Set-EcpVirtualDirectory "$HostName\ECP (Default Web Site)" -InternalUrl https://$svrAddress/ecp -ExternalUrl https://$svrAddress/ecp

Exchange Server 2016预览版自动化部署及简单体验_预览_15

//配置EWS内外部地址

Set-WebServicesVirtualDirectory "$HostName\EWS (Default Web Site)" -InternalUrl https://$svrAddress/EWS/Exchange.asmx -ExternalUrl https://$svrAddress/EWS/Exchange.asmx

Exchange Server 2016预览版自动化部署及简单体验_Exchange 2016_16

//配置ActiveSync内外部地址

Set-ActiveSyncVirtualDirectory "$HostName\Microsoft-Server-ActiveSync (Default Web Site)" -InternalUrl https://$svrAddress/Microsoft-Server-ActiveSync -ExternalUrl https://$svrAddress/Microsoft-Server-ActiveSync

Exchange Server 2016预览版自动化部署及简单体验_预览_17

//配置OAB内外部地址

Set-OabVirtualDirectory "$HostName\OAB (Default Web Site)" -InternalUrl https://$svrAddress/OAB -ExternalUrl https://$svrAddress/OAB

Exchange Server 2016预览版自动化部署及简单体验_Exchange 2016_18

//配置OWA内外部地址

Set-OwaVirtualDirectory "$HostName\OWA (Default Web Site)"-InternalUrl https://$svrAddress/OWA -ExternalUrl https://$svrAddress/OWA

Exchange Server 2016预览版自动化部署及简单体验_预览_19

//配置PowerShell内外部地址

Set-PowerShellVirtualDirectory "$HostName\PowerShell (Default Web Site)" -InternalUrl https://$svrAddress/PowerShell -ExternalUrl https://$svrAddress/PowerShell

Exchange Server 2016预览版自动化部署及简单体验_Exchange 2016_20

//配置证书:

$cert=Get-ChildItem -Path cert:localmachine\my -DnsName mail.exchange.com

Enable-ExchangeCertificate -Thumbprint $cert.thumbprint -Services POP,IMAP,SMTP,IIS

Exchange Server 2016预览版自动化部署及简单体验_Exchange 2016_21

//开启OutlookAnywhere:

Set-OutlookAnywhere -Identity "$hostname\rpc (Default Web Site)" -IISAuthenticationMethods Basic,NTLM

Exchange Server 2016预览版自动化部署及简单体验_体验_22

//新建邮箱数据库

$DbName= "EXCH-DB-01"

New-MailboxDatabase -Server $HostName -Name $DbName -EdbFilePath C:\ExchangeDatabases\$DbName\$DbName.edb -LogFolderPath C:\ExchangeDatabases\$DbName\Logs\

Restart-Service MSExchangeIS

Exchange Server 2016预览版自动化部署及简单体验_预览_23

稍等片刻,Get-Service看下服务状态。

Exchange Server 2016预览版自动化部署及简单体验_Exchange 2016_24

//配置邮箱配额

Set-MailboxDatabase $DbName -IssueWarningQuota 7.0GB -ProhibitSendQuota 9.0GB -ProhibitSendReceiveQuota 10.0GB

Exchange Server 2016预览版自动化部署及简单体验_预览_25

基本配置已完成,下面来看看图:

Exchange Server 2016预览版自动化部署及简单体验_自动化部署_26

Exchange Server 2016预览版自动化部署及简单体验_自动化部署_27

Exchange Server 2016预览版自动化部署及简单体验_自动化部署_28

Exchange Server 2016预览版自动化部署及简单体验_预览_29

Exchange Server 2016预览版自动化部署及简单体验_体验_30

Exchange Server 2016预览版自动化部署及简单体验_体验_31

Exchange Server 2016预览版自动化部署及简单体验_自动化部署_32

Exchange Server 2016预览版自动化部署及简单体验_预览_33

Exchange Server 2016预览版自动化部署及简单体验_体验_34