How to Install and Configure Exchange Server 2019 on a Server Core 2019

How to Install and Configure Exchange Server 2019 on a Server Core 2019

CHUONG K. NGUYEN – BSc., MCSEx2, MCSAx2, MCP, MCTS, MCITP, CCNA

In this lab we will install and configure Exchange Server 2019 on a Server Core 2019 using a single server setting. When you install Windows Server 2019, choose this option.

After setting up Windows Server 2019, you need to change the password for the first time. At this point the server will load up and show the Command Prompt on the main screen. Enter this command to launch PowerShell:

start powershell

Rename the server to “EXCHANGE2019″ using the command below:

Rename-computer "EXCHANGE2019"

Then restart the server:

Restart-computer

After the computer restart, launch PowerShell again using the above command.

Use the following commands to set the correct time zone and time on the server.

Get-Timezone
Set-Timezone
Set-Date "7:00:00 PM"

Obtain the Interface index by issuing this command:

Get-NetIPAddress

With the interface index returned, use the following command to set the IP address for the server. In this case, the interface index is 6 and I wanted to set the IP address of 192.168.1.220 to the server.

New-NetIPAddress -InterfaceIndex 6 -IPAddress 192.168.1.220 -PrefixLength 24 -DefaultGateway 192.168.1.1

Now we will set the DNS server to be itself. This is because we will be installing DNS server role on this server as well.

Set-DNSClientServerAddress -InterfaceIndex 6 -ServerAddress "192.168.1.220"

Enable Remote Desktop:

cscript C:\Windows\System32\Scregedit.wsf /ar 0 

At this point you should be able to RDP to the server. Install Domain Services and management tools using the following command:

Install-WindowsFeature AD-Domain-Services –IncludeManagementTools

Wait until you see successful result.

Enter this command to install a new Forest and make a new domain in the forest.

Install-ADDSForest –DomainName "Dalaris.Local" –DomainMode Win2012R2 –ForestMode Win2012R2 –InstallDNS –force

Supply the Safe Mode Administrator Password when asked. Wait for the successful result to appear.

After the server restarts, wait for 5-10 minutes as the server has to apply Group Policy Client. Then do the following to verify that ADDS was installed properly.

First, verify that DNS, AD services are running:

get-service adws,dns,netlogon,kdc

Verify that Netlogon and sysvol shares are present:

get-smbshare

Check the Event log:

get-eventlog "Directory Service" | select entrytype, source, eventid, message
get-eventlog "Active Directory Web Services" | select entrytype, source, eventid, message

We need the following for UMCA and AD setup.

Install-WindowsFeature Server-Media-Foundation, RSAT-ADDS

Where “Server-Media-Foundation” is the required component for Lync Server or Skype for Business Server components.

Now make a new shared folder to store installation files.

mkdir C:\Shared
New-SMBShare -Name "Share" -Path "C:\Shared" -FullAccess "everyone"

On a computer, download the following items and copy to \\Exchange2019\Share

Download all pre-requisites.
a. Install .NET Framework 4.7.2 or later
b. Visual C++ Redistributable Package for Visual Studio 2012
c. Visual C++ Redistributable Package for Visual Studio 2013
 

To install the above pre-requisites, just RDP to the exchange server, switch directory to C:\Shared and enter:

.\EXECUTABLE_FILE

Also copy the file mu_exchange_server_2019_cumulative_update_3_x64_dvd_8af30956.iso to \\Exchange2019\Share

Install the UCMA, mount ISO file:

Mount-DiskImage c:\Shared\mu_exchange_server_2019_cumulative_update_3_x64_dvd_8af30956.iso

Change to E: drive

cd .\UCMARedist\
dir
.\setup

If the Exchange server is installed on a separate server, join the server computer to domain, otherwise continue at the Prepare Schema step below.

Add-Computer -DomainName dalaris.local -NewName EX -DomainCredential dalaris\administrator

Then restart the server

Restart-Computer -Force

Log back into the exchange server as Dalaris\Administrator

Remount and install:

Mount-DiskImage c:\Shared\mu_exchange_server_2019_cumulative_update_3_x64_dvd_8af30956.iso

Change to E: drive

cd\

Prepare Schema:

.\Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

Prepare AD:

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

Install Exchange:

.\Setup.exe /m:install /roles:m /IAcceptExchangeServerLicenseTerms /InstallWindowsComponents

To install management tool:

.\Setup.exe /Role:ManagementTools /IAcceptExchangeServerLicenseTerms

To Launch EMS, type:

LaunchEMS

Note: Accoring to Microsoft, you need to pay attention to the following scenarios:

A/ Exchange 2019 prerequisites for preparing Active Directory

- Install .NET Framework 4.7.2 or later
– Install Visual C++ Redistributable Package for Visual Studio 2012
– Install-WindowsFeature RSAT-ADDS

 

B/ Exchange 2019 Mailbox servers on Windows Server 2019

- Install .NET Framework 4.7.2 or later
– Install Visual C++ Redistributable Package for Visual Studio 2012
– Install Visual C++ Redistributable Package for Visual Studio 2013
– Install-WindowsFeature Server-Media-Foundation
– Install Unified Communications Managed API 4.0. (located on \UCMARedist folder on the Exchange Server media.)

Also, If you aren’t going to use Exchange Setup to install the required Windows components, use the following command:

On Desktop Experience:

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

 

On Server Core:

Install-WindowsFeature Server-Media-Foundation, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, 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-Metabase, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, RSAT-ADDS

 

C/ Exchange 2019 Edge Transport servers on Windows Server 2019

- Install the Visual C++ Redistributable Package for Visual Studio 2012

Also, If you aren’t going to use Exchange Setup to install the required Windows components, use the following command:

Install-WindowsFeature ADLDS

 

D/ Windows 10 client prerequisites for the Exchange 2019 management tools

Log in as a domain user

Copy Visual C++ 2012 redistributable to C:\Users\User\Downloads

Copy mu_exchange_server_2019_cumulative_update_3_x64_dvd_8af30956.iso to C:\Users\User\Downloads

Install the Visual C++ Redistributable Package for Visual Studio 2012

Mount-DiskImage c:\users\user\downloads\mu_exchange_server_2019_cumulative_update_3_x64_dvd_8af30956.iso

 

Also, If you aren’t going to use Exchange Setup to install the required Windows components, use the following command:

Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementScriptingTools,IIS-ManagementScriptingTools,IIS-IIS6ManagementCompatibility,IIS-LegacySnapIn,IIS-ManagementConsole,IIS-Metabase,IIS-WebServerManagementTools,IIS-WebServerRole

 

Then restart the PC and then

To install management tool:
<

.\Setup.exe /Role:ManagementTools /IacceptExchangeServerLicenseTerms

 

Once the setup is complete, on a client computer launch the browser and go to this site:

 

https://192.168.1.220/ecp and login as Administrator.

 

The following is the main screen of Exchange Server 2019 Exchange Control Panel.

 

 

From here, you can perform many administrative tasks. Take a look at other posts on this web site to get an idea what to do next.