在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

时间:2022-04-27 17:52:19

最新的Exchange 2016 CU3 新增支持最新的Windows Server 2016 RTM,接下我们就来通过,用纯命令(PowerShell)安装和配置Exchange 的基体功能。

1.下载 Ex2016 cu3:

Exchange 2016 CU3:ExchangeServer2016-x64-cu3.iso

Fixes and improvements are:

Download: Cumulative Update 3 for Exchange Server 2016 (KB3152589)    
Download: Exchange Server 2016 CU3 UM Language Packs    
View: Description of Cumulative Update 3 for Exchange Server 2016    
View: Blog post of the Exchange Team about CU3 for Exchange Server 2016

2.安装 Windows Feature:

Install-WindowsFeature 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

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

3.下载并安装 Unified Communications Managed API 4.0 Runtime

Start-BitsTransfer -Source -Destination c:\temp\UcmaRuntimeSetup.exe

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

c:\temp\UcmaRuntimeSetup.exe /q

安装 Exchange server 2016 CU3:

1)扩展 AD

.\Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

.\Setup.exe /PrepareAD /OrganizationName:"SEN" /IAcceptExchangeServerLicenseTerms

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

.\Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

2)安装 Ex2016 CU3:

.\Setup.exe /mode:Install /role:Mailbox /InstallWindowsComponents /TargetDir:"D:\ExchangeServer\V15" /MdbName:"MBDB001" /DbFilePath:"D:\ExchangeServer\V15\Mailbox\MBDBFile\MBDB001.edb" /LogFolderPath:"D:\ExchangeServer\V15\Mailbox\MBDBLog" /CustomerFeedbackEnabled:false /IAcceptExchangeServerLicenseTerms

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

   
. Post-Installation Tasks:

Set-ExchangeServer –Identity SEN-Ex01 –ProductKey *******


1) 新增 accepted domains

New-AcceptedDomain -Name Aplusnb -DomainName aplusnb.cn -DomainType Authoritative

2)启用指定OU下 用户邮箱:

get-user -OrganizationalUnit "sen.hi.cn/SEN" | where-object {$_.RecipientType –eq “User”} | Enable-Mailbox | get-mailbox | select name,windowsemailaddress,database

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

   
3) 新建 Email address policy

New-EmailAddressPolicy -Name Aplusnb -IncludedRecipients AllRecipients -ConditionalCompany "Aplusnb" -EnabledEmailAddressTemplates "SMTP:@aplusnb.cn"

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

Update-EmailAddressPolicy -Identity Aplusnb

get-mailbox | select name,windowsemailaddress,EmailAddresses,database

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3


4)配置 connectors

1. 发送连接: 可以使Exchange向外部Internet发送邮件。

New-SendConnector -Name "Send To Internet" -Internet -AddressSpaces "*" -DNSRoutingEnabled:$TRUE -SourceTransportServers "SEN-Ex01"

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3

2.配置接收连接:使Exchange 可以接收外部Internet发过来的邮件。

Get-ReceiveConnector –Server SEN-Ex01

Get-ReceiveConnector “Default SEN-Ex01” | select Identity,PermissionGroups

Get-ReceiveConnector “Default SEN-Ex01” | Set-ReceiveConnector -PermissionGroups AnonymousUsers, ExchangeUsers, ExchangeServers, ExchangeLegacyServers

Get-ReceiveConnector

在Windows server 2016 RTM下用PoweShell无人值守安装配置Exchange 2016 CU3


5) 配置Exchange 证书

申请证书: