ComputerBasForum

Hier tips en tricks

Je bent niet ingelogd.

#1 2020-08-31 05:24:04

Bas
Administrator
Geregistreerd: 2019-11-10
Posts: 79

Install Exchange 2019

Met deze handleiding krijg je Exchange 2019.

Zorg dat je netwerk er klaar voor is!
Zorg dat je netwerkkaarten goed geconfigureerd zijn.
Zorg dat de drivers voor je hardware componenten goed geïnstalleerd staan.
Zorg dat je dns records goed staan om verwarring te voorkomen.
Zorg dat je certificaten in orde zijn om verwarring te voorkomen.
Zorg dat je domein klaar is voor een Exchange installatie.
Zorg dat alle services nodig voor Exchange geïnstalleerd zijn en up en running zijn.

Maak een backup van je domein.

Open PowerShell admin en typ in (copy/paste)

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-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation,RSAT-ADDS

Installeer .Net Framework 4.8
Installeer Unified Communications Managed API 4.0 Runtime
Instaleer Microsoft Visual C++ Redistributable for Visual Studio 2012, 2013, 2015, 2017 and 2019

Reboot
Update je servers
Reboot check reboot check again
Maak een tweede backup van je domein

on dvd drive letter:

.\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareSchema
.\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD /OrganizationName: "ComputerBas"
.\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAllDomains

maak een derde! backup van je domein want er is nu iets (..) veranderd.

Finally!! autorun dvd

kies mailbox install..

do not use recommended settings

wachten...

wachten...

Reboot

Open Exchange Management Shell en check install:

Get-ExchangeServer

Set-ExchangeServer your.mail.domain.com -ProductKey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Open Exchange Admin Panel on https://your.domain.here/ecp

Get-OwaVirtualDirectory | Select Server,ExternalURL,InternalURL | fl

$namespace = "your.domain.here"

Set-OwaVirtualDirectory -Identity "HOSTNAME\OWA (Default Web Site)" -ExternalUrl https://$Namespace/owa -InternalUrl https://$Namespace/owa

in powershell:

Restart-Service MSExchangeIS

In https://mailserver/ecp

Maak Mailboxen en een Send Connector: * voor alles
Configureer eventueel de rest.

Voor Edge Transport Role:

Installeer:

Microsoft Visual C++ Redistributable for Visual Studio 2012, 2013, 2015, 2017 and 2019
Microsoft .NET Framework 4.8

in Powershell:

Install-WindowsFeature ADLDS

http://go.microsoft.com/fwlink/?LinkId=224859

Mount ISO

Setup

No updates
Not recommended installation

kies Edge Transport Role

wachten...

(zet effe je virusscanner uit!)

Reboot

https://docs.microsoft.com/Exchange/pla … erver-2019

New-EdgeSubscription -FileName "C:\EdgeSubscriptionInfo.xml"

copy naar mailbox server

Op mailboxserver:

New-EdgeSubscription -FileData ([byte[]]$(Get-Content -Path "C:\EdgeSubscriptionInfo.xml" -Encoding Byte -ReadCount 0)) -Site "Default-First-Site-Name" -CreateInternetSendConnector $true -CreateInboundSendConnector $true

Start-EdgeSynchronization

Test-EdgeSynchronization -FullCompareMode

Op Edge server:

Get-AcceptedDomain

Delete Exchange logfiles:
Maak een bestand cleanMX.ps1
Run in ADMIN powershell:
.\cleanMX.ps1

# Set execution policy if not set
$ExecutionPolicy = Get-ExecutionPolicy
if ($ExecutionPolicy -ne "RemoteSigned") {
    Set-ExecutionPolicy RemoteSigned -Force
}

# Cleanup logs older than the set of days in numbers
$days = 1

# Path of the logs that you like to cleanup
$IISLogPath = "C:\inetpub\logs\LogFiles\"
$ExchangeLoggingPath = "C:\Program Files\Microsoft\Exchange Server\V15\Logging\"
$ETLLoggingPath = "C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\ETLTraces\"
$ETLLoggingPath2 = "C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\Logs\"

# Clean the logs
Function CleanLogfiles($TargetFolder) {
    Write-Host -Debug -ForegroundColor Yellow -BackgroundColor Cyan $TargetFolder

    if (Test-Path $TargetFolder) {
        $Now = Get-Date
        $LastWrite = $Now.AddDays(-$days)
        $Files = Get-ChildItem $TargetFolder -Recurse | Where-Object { $_.Name -like "*.log" -or $_.Name -like "*.blg" -or $_.Name -like "*.etl" } | Where-Object { $_.lastWriteTime -le "$lastwrite" } | Select-Object FullName  
        foreach ($File in $Files) {
            $FullFileName = $File.FullName  
            Write-Host "Deleting file $FullFileName" -ForegroundColor "yellow"; 
            Remove-Item $FullFileName -ErrorAction SilentlyContinue | out-null
        }
    }
    Else {
        Write-Host "The folder $TargetFolder doesn't exist! Check the folder path!" -ForegroundColor "red"
    }
}
CleanLogfiles($IISLogPath)
CleanLogfiles($ExchangeLoggingPath)
CleanLogfiles($ETLLoggingPath)
CleanLogfiles($ETLLoggingPath2)

Offline

Forum footer

Powered by FluxBB 1.5.11