0%
Installation d'Exchange Server - Partie 1

Installation d'Exchange Server - Partie 1

Ce guide vous montre comment installer Exchange Server avec PowerShell.

10-15 min 1.9k vues

Installation d'Exchange Server - Partie 1

Prérequis

Avant d'installer Exchange Server, assurez-vous que :

  • Windows Server 2019 est installé et à jour
  • Les rôles Active Directory et DNS sont installés
  • Les prérequis .NET Framework sont installés
  • Les prérequis Exchange sont installés

Installation des prérequis

# Installer les rôles Windows nécessaires
Install-WindowsFeature RSAT-ADDS, RSAT-DNS-Server, RSAT-AD-PowerShell

# Installer les composants .NET Framework
Install-WindowsFeature NET-Framework-Core, NET-Framework-45-Core

# Installer les prérequis Exchange
Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-ASPNET, NET-WCF-HTTP-Activation45, NET-WCF-Pipe-Activation45, NET-WCF-TCP-Activation45, NET-WCF-TCP-PortSharing45, RPC-over-HTTP-proxy, Server-Media-Foundation, 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-Tools, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation

Préparation de l'environnement

# Créer un compte pour Exchange
New-ADUser -Name "ExchangeAdmin" -UserPrincipalName "ExchangeAdmin@lab.lan" -AccountPassword (ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force) -Enabled $true

# Ajouter le compte au groupe Domain Admins
Add-ADGroupMember -Identity "Domain Admins" -Members "ExchangeAdmin"

# Créer une OU pour Exchange
New-ADOrganizationalUnit -Name "Exchange Servers" -Path "DC=lab,DC=lan"

Installation d'Exchange Server

# Monter l'image ISO d'Exchange
Mount-DiskImage -ImagePath "D:\Exchange2019.iso"

# Accéder au dossier d'installation
cd "E:\"

# Lancer l'installation
.\Setup.exe /Mode:Install /Role:Mailbox /IAcceptExchangeServerLicenseTerms

Vérification de l'installation

# Vérifier les services Exchange
Get-Service -Name MSExchange*

# Vérifier les rôles installés
Get-ExchangeServer | Select-Object Name, Edition, AdminDisplayVersion

# Vérifier les certificats
Get-ExchangeCertificate

Configuration initiale

# Configurer le certificat auto-signé
New-ExchangeCertificate -FriendlyName "Exchange Server" -DomainName "mail.lab.lan" -Services SMTP,IMAP,POP,IIS

# Activer les services
Set-Service -Name MSExchangeIS -StartupType Automatic
Set-Service -Name MSExchangeTransport -StartupType Automatic
Set-Service -Name MSExchangeFrontendTransport -StartupType Automatic

Dépannage

Si vous rencontrez des problèmes lors de l'installation :

  1. Vérifiez les logs d'installation dans C:\ExchangeSetupLogs
  2. Assurez-vous que tous les prérequis sont installés
  3. Vérifiez les permissions du compte ExchangeAdmin
  4. Vérifiez la connectivité réseau et DNS
Lien copié !