Exchange Server 2019 Kurulumu - Exchange Server 2019 kurulum adımları - Exchange Management Shell komutları

*** Adım Adım Exchange Server 2019 Kurulumu *** 

Exchange Server 2019 Prerequisites
Exchange Server 2019 ön koşulları.
İlk yapılacak işlem Exchange Server olacak sunucuya aşağıdaki yazılımları ve özellikleri yükleyerek hazırlamaktır.

1- .NET Framework 4.7.2 or later
Install .NET Framework 4.7.1 or .NET Framework 4.7.2 as supported by your OS. Note: .Net Framework 4.7.2 is already included and isn’t required to download or install with Windows Server 2019.

2- Download Visual C++ Redistributable Packages for Visual Studio 2013
Double click setup files to Install Visual C++ Redistributable Packages for Visual Studio 2013 Select I agree to the license terms and conditions and click Install.

3- Setup successful and click Close.

4-Download Unified Communications Managed API 4.0.
Double click setup files to Install Install Unified Communications Managed API (UCMA) 4.0 and click next.

5- Select I even have read and accept the license terms and click on install.

6- Installation completed and click finish.

7- Open a Windows PowerShell and type the below command
Install-WindowsFeature RSAT-ADDS

8- Run the below command to install the server prerequisites
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

9- Default running process.

10- Exchange server 2019 prerequisites Installation completed.

11- Prepare Schema
Command Prompt’u Run As Admin ile açıp Exchange Server 2019 kurulum medyasının için girin.
E: Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

12- Prepare Active Directory
Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD /OrganizationName: “xpertstec”

13- Prepare Domains
to type the following command.
Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms

14- Installing Exchange Server 2019
Mount the Exchange Server 2013 Installation Media
Double-clicking Setup.exe to start Exchange Server 2019 installation.

15- Check for Updates page > select connect to the Internet and check for updates for Exchange 2019 and click next.

16- The setup will copy the installation files to the local drive and prepare for the installation

17- Initializing setup.

18- The Introduction page and click next.

19- On the License Agreement page select I accept the terms in the license agreement and click next

20- Select the use of recommended settings and click next.


21- Microsoft Exchange 2019 only has a Mailbox role and Edge role only. Select Automatically install windows server roles and features that are required to install the exchange server and click next.


22- On the installation space and location page and click next.

23- Malware Protection Settings page. You can choose to enable or disable malware scanning and click next.

24- On the Readiness Checks page view the status to work out if the organization and server role prerequisite checks completed successfully and click on install

25- Now the installation started and that will take time to depend on your environment.

26- Exchange 2019 setup completed successfully > click Finish and reboot the server.

27- Open your web browser. Type URL https://localhost/ecp
Type username and password click sign in.

28- Select Language > Select Time zone and click save.

29- Review the tabs and sections in the Exchange Admin Center

30- Get-ExchangeServer.

31- Installing exchange server 2019 PowerShell command
Setup.EXE /Mode:Install /InstallWindowsComponents /IAcceptExchangeServerLicenseTerms /Roles:MB



*** Exchange Server 2019 kurulum adımları. ***

1-Visual C++ Redistributable Packages for Visual Studio 2013

2-Unified Communications Managed API 4.0 Runtime

3-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

4- Exchange Server 2019 DVD sini sunucuya bağlayıp komut satırından DVD sürücü harfine girin ve aşağıdaki .\setup ile başlayan komutları girin.

DFL ve FFL en az Windows Server 2012R2 seviyesinde olmak zorunda.

Prepare Schema:
.\Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

Prepare Active Directory:
.\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD /OrganizationName: “UfukYeter”

Prepare Domains:
.\Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms

5-Exchange Server 2019 DVD sinden setup.exe çalıştırılır, sihirbaz ile kurulum yapılır.


Sihirbaz kullanmadan Unattended kurulum için gerekli parametreler:
Setup.EXE /Mode:Install /InstallWindowsComponents /IAcceptExchangeServerLicenseTerms /Roles:MB



*** Exchange Server yönetimini PowerShell den yapmak için kullanabileceğimiz komut örnekleri. ***

Start-Transcript

Get-ExchangeServer
<%Systemroot%>\ExchangeSetupLogs\ExchangeSetup.log
Set-ExchangeServer Ex1 -ProductKey <Product Key>
Get-ServerHealth -Identity Lon-Ex1 -HealthSet MailboxSpace
Get-ExchangeServer | Format-List Name,Edition,AdminDisplayVersion
Get-Service | Where {$_.DisplayName -Like "*Exchange*"} | ft DisplayName, Name, Status

Mailbox Cmdlets

Get-Help New-mailbox -examples
Disable-Mailbox
Enable-Mailbox
Export-Mailbox
Get-Mailbox
Import-Mailbox
Move-Mailbox
New-Mailbox
Move-Mailbox
Remove-Mailbox
Restore-Mailbox
Search-Mailbox

New-Mailbox -Name "ABC Test" -UserPrincipalName abctest@contoso.com -Password (ConvertTo-SecureString -String 'Pa$$word1' -AsPlainText -Force) -FirstName ABC -LastName Test

Enable-Mailbox -Identity yeter@contoso.com -Database MailboxDatabase1

$password = Read-Host "Enter password" -AsSecureString; New-Mailbox -UserPrincipalName ufuk@adatum.com -Alias UFUK -Database "Mailbox Database 1" -Name UfukYeter -OrganizationalUnit Users -Password $password -FirstName Ufuk -LastName Yeter -DisplayName "Ufuk Yeter" -ResetPasswordOnNextLogon $true

1..10 | ForEach { Net User "Ufuk$_" Password1 /ADD /Domain; Enable-Mailbox "Ufuk$_" }

Get-Mailbox | Get-MailboxStatistics | Select DisplayName, TotalItemSize | Export-Csv -NoTypeInformation .\mailboxsizes.csv

Get-Mailbox | Get-Mailboxstatistics -warningAction silentlycontinue | Format-Table DisplayName, TotalItemsize

Get-MailboxDatabase -Status | Format-Table Name,*Size

Enable-Mailbox -Identity adatum\Bart -Database MailboxDatabase
New-MailboxExportRequest -Mailbox Bart -FilePath \\LON-EX1\PSTFileShare\Bart_Mailbox.pst
Get-MailboxStatistics -Database MailboxDatabase
New-MailboxDatabase -Name MailboxDatabase -Server LON-Ex1
Get-ExchangeServer -Status | Format-List
New-DynamicDistributionGroup -Name Ankara-Satis-DDG -Alias Ankara-Satis-DDG -OrganizationalUnit OU -IncludedRecipients MailboxUsers
New-Mailbox -Shared -Name "Sales Department" -DisplayName "Sales Department" -Alias Sales; Set-Mailbox -Identity Sales -GrantSendOnBehalfTo MarketingSG; Add-MailboxPermission -Identity Sales -User MarketingSG -AccessRights FullAccess -InheritanceType All
New-MoveRequest -Identity 'Ufuk'-TargetDatabase Executives
Get-Mailbox | Out-GridView

Stop-Transcript

(Ufuk YETER hocamıza bilgi paylaşımları için teşekkür ediyorum.)