May 18 2020 10:57 AM - edited May 20 2020 06:55 AM
Microsoft'un en değer verdiği servislerinden biri olan Exchange hizmeti her geçen yıl yenilenyor ve güçlenerek servis edilmeye devam ediyor. Cloud ortamının yanı sıra On-Primeses ortamlarında vazgeçilmezi olan Exchange ürün ailesinin son sürümü Exchange 2019 bugün on-primeses ortamda Powershell ile kurulumunu gerçekleştireceğim.
Exchange kurması ve yapılandırması biraz zahmetli bir servisdir bu sebeple kurulumu sizler için biraz dah basit bir hale getirerek web sayfalarında gezinip exchnage yüklemesi için gereken özelikleri aramanıza gerek yok.
İlk olarka kurulum için gerekli olan Windows Server roles and features yükleyerek başlıyoruz.
Exchange için Microsoft Windows Server roles and features yükleyici komutu
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
Exchange için gerekli olan iki harici uygulamayıda internetten PowerShell ile indirip yüklüyoruz.
Windows server için Microsoft .NET Framework 4.8 çevrimdışı yükleyici komutu
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://go.microsoft.com/fwlink/?linkid=2088631","C:\dotnet.exe")
Windows server için Microsoft Visual C++ Redistributable for Visual Studio 2012 Update 4 yükleyici komutu
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://www.microsoft.com/en-us/download/confirmation.aspx?id=30679&6B49FDFB-8E5B-4B07-BC31-15695C5A2143=1","C:\VSU_4.exe")
Yüklemek için C:\ dizinine gelip ilgili uygulamaların yükleme paketlerini çalıştırıyoruz.
C:\dotnet.exe
C:\VSU_4.exe
Exchange kurulumu için Wİndows Server işletim sistemimiz hazırdır. PowerShell de ISO nuzu mount ettiğiniz dizine gidiniz ve aşağıdaki komutları sırası ile çalıştırınız.
Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareSchema
Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD /OrganizationName: <Domain adi>
Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAllDomains
Setup.exe /mode:Install /role:Mailbox /IAcceptExchangeServerLicenseTerms
ISO dizininde çalıştırabilceğiniz diğer komutlar
NOT:
Setup.exe [/Mode:] [/IAcceptExchangeServerLicenseTerms]
[/Role:] [/InstallWindowsComponents]
[/OrganizationName:]
[/TargetDir:] [/SourceDir:]
[/UpdatesDir:]
[/DomainController:] [/DisableAMFiltering]
[/AnswerFile:] [/DoNotStartTransport]
[/EnableErrorReporting] [/CustomerFeedbackEnabled:]
[/AddUmLanguagePack:]
[/RemoveUmLanguagePack:]
[/NewProvisionedServer:] [/RemoveProvisionedServer:]
[/MdbName:] [/DbFilePath:]
[/LogFolderPath:] [/ActiveDirectorySplitPermissions:]
[/TenantOrganizationConfig:]
Kurulum sonrası virtual directory yapılandırması için hostnamenizi yazıp scripti çalıştırınız.
$hostname = ""
Set-EcpVirtualDirectory "$HostName\ECP (Default Web Site)" -InternalUrl ((Get-EcpVirtualDirectory "$HostName\ECP (Default Web Site)").ExternalUrl)
Set-WebServicesVirtualDirectory "$HostName\EWS (Default Web Site)" -InternalUrl ((Get-WebServicesVirtualDirectory "$HostName\EWS (Default Web Site)").ExternalUrl)
Set-ActiveSyncVirtualDirectory "$HostName\Microsoft-Server-ActiveSync (Default Web Site)" -InternalUrl ((Get-ActiveSyncVirtualDirectory "$HostName\Microsoft-Server-ActiveSync (Default Web Site)").ExternalUrl)
Set-OabVirtualDirectory "$HostName\OAB (Default Web Site)" -InternalUrl ((Get-OabVirtualDirectory "$HostName\OAB (Default Web Site)").ExternalUrl)
Set-OwaVirtualDirectory "$HostName\OWA (Default Web Site)" -InternalUrl ((Get-OwaVirtualDirectory "$HostName\OWA (Default Web Site)").ExternalUrl)
Set-PowerShellVirtualDirectory "$HostName\PowerShell (Default Web Site)" -InternalUrl ((Get-PowerShellVirtualDirectory "$HostName\PowerShell (Default Web Site)").ExternalUrl)
Son olarak send ve recive connectorlerinizi yapılandırınız.
Set-ReceiveConnector
Set-SendConnector
Önemli not domaininiz için DNS A kayıtları MX ve SPF kayıtlarınız için ilgili yönlendirmeleri yaptıktan sonra Exchange ile mail alım ve gönderim işlemine başlayabilirsiniz.