Install Microsoft Exchange Server

I. Preparation
File ISO Windows Server 2016
File ISO Windows Server 2019
File ISO Microsoft Exchange Server 2019
Các phần mềm cài đặt bổ sung để cài đặt Microsoft Exchange Server 2019
\=> Các file này mình để trong link google drive cho bạn nào cần nhé: https://drive.google.com/drive/folders/1jBwZbuuzmikBMy3VHuJ7SIP3LYA_Wn0X?usp=sharing
Một số lưu ý:
Yêu cầu của Active Directory đối với Exchange Server 2019
Domain Controllers: Windows Server 2012 R2, Windows Server 2016, hoặc Windows Server 2019.
Forest Functional Level: The minimum required AD forest functional level is Windows Server 2012 R2 or higher
II. Install Activate Directory
Mình cài Activate Directory Service trên máy Windows Server 2016, các bạn hãy chuẩn bị một máy ảo Windows Server 2016 nhé :v
Đầu tiên mình sẽ cần cấu hình Static IP cho máy ảo Windows Server 2016
Đổi tên máy Windows Server 2016 cho chill
Cài đặt Active Directory Domain Services role: Manage Add Roles and Futures
Promote the server to a Domain Controller
Next x 3.14
Configure this server as the first Active Directory domain controller in a new forest. The new domain name is "team98.lab". This is also the name of the new forest. The NetBIOS name of the domain: TEAM98 Forest Functional Level: Windows Server 2016 Domain Functional Level: Windows Server 2016 Additional Options: Global catalog: Yes DNS Server: Yes Create DNS Delegation: No Database folder: C:\Windows\NTDS Log file folder: C:\Windows\NTDS SYSVOL folder: C:\Windows\SYSVOL The DNS Server service will be configured on this computer. This computer will be configured to use this DNS server as its preferred DNS server. The password of the new domain Administrator will be the same as the password of the local Administrator of this computer.
Như này là xong nhé
Tạo một user mới trong domain để dùng cho máy chủ Exchange
Config DNS Tools DNS → Next x 3.14
III. Install Microsoft Exchange Server
Để cài đặt Microsoft Exchange Server 2019 thì các bạn cần chuẩn bị thêm một máy ảo Windows Server 2019 nhé
Microsoft Exchange Mailbox Server 2019 Software Pre-requisites: It is highly recommended to install Exchange 2019 on a member server 2019 not on a Domain Controller.
Download and install the below software on a member server.
NET Framework 4.8
Visual C Redistributable Package for Visual Studio 2013
Install Unified Communications Managed API 4.0.
Sau đó là cấu hình Static IP trên Windows Server 2019. Disable IPv6 và đặt địa chỉ DNS đến IP của máy Windows Server 2016 (Domain Controller)
Thử ping tới Domain Controller
Đổi tên máy và join vào domain team98.lab với người dùng
team98\ews
Check domain
Install the required Windows components for Exchange Setup. Open Windows PowerShell with Administration. Khi chạy lệnh thành công thì cần Restart lại máy
Install-WindowsFeature Server-Media-Foundation, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, 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
Extend the Active Directory schema
.\Setup.EXE /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /PrepareSchema or .\Setup.EXE /IAcceptExchangeServerLicenseTerms /PrepareSchema
Nếu bạn chạy lệnh trên khi đang login bằng Local User thì lệnh sẽ bị lỗi
Đăng nhập với user
team98/ews
, mở Windows PowerShell with Administration và cung cấp thông tin đăng nhập củateam98/Administration
rồi thử lạiTiếp tục chạy lệnh để Prepare Active Directory
.\Setup.EXE /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /PrepareAD /OrganizationName:"<organization name>"
Prepare Active Directory domains
.\Setup.EXE /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /PrepareAllDomains
Install MS Exchange 2019 on Windows Server 2019 Go to Exchange 2019 Setup folder Run file
Setup.exe
Bạn sẽ nhận được lỗi như này :) Để khắc phục thì chúng ta cần cài đặt thêm IIS URL Rewrite module. Sau đó Restart và run lại file
Setup.exe
Hết lỗi rồi nè, Install thôi. Install sẽ tốn khá nhiều thời gian, wait và enjoy nhé =))
III. Fix Bug
Something went wrong and we haven't been able to send your message yet.
Các dịch vụ bị Stop
Get-Service *exchange* | Where-Object {$_.Status -eq 'Stopped'}
Bật các dịch vụ bị Stop: Nhấn Windows + R, gõ
services.msc
và nhấn Enter.
The Active Directory schema isn't up-to-date, and this user account isn't a member of the 'Schema Admins' and/or 'Enterprise Admins' groups.
Subscribe to my newsletter
Read articles from team98 directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
