Erreur lorsque vous exécutez /PrepareSchema

22 janvier 2020 Non Par Rached CHADER

Erreur a l’installation d’un nouveau server exchange en cohabitation avec un autre serveur Exchange en mode hybride / Office 365

Un déploiement hybride avec Office 365 a été détecté. Veuillez vous assurer que vous exécutez le programme d’installation avec / TenantOrganizationConfig

 

Beaucoup de sociétés utilisent Exchange 2010 en mode hybride avec Office 365, mais avec la fin de vie d’Exchange 2010, il est temps de migrer vers une version plus récente.

Lors de la préparation d’Active Directory pour Exchange 2016 à l’aide du commutateur /PrepareSchema, l’erreur suivante est affichée :

1
2
3
4
5
6
7
8
9
A hybrid deployment with Office 365 has been detected. Please ensure that you are running setup with the /TenantOrganizationConfig switch. To use the TenantOrganizationConfig switch you must first connect to your Exchange Online tenant via PowerShell and execute the

following command: "Get-OrganizationConfig | Export-Clixml -Path MyTenantOrganizationConfig.XML". Once the XML file has been generated, run setup with the TenantOrganizationConfig switch as follows "/TenantOrganizationConfig MyTenantOrganizationConfig.XML".

If you continue to see this this message then it indicates that either the XML file specified is corrupt, or you are attempting to upgrade your on-premises Exchange installation to a build that isn't compatible with the Exchange version of your Office 365 tenant. Your Office

365 tenant must be upgraded to a compatible version of Exchange before upgrading your on-premises Exchange installation. For more information, see: http://go.microsoft.com/fwlink/?LinkId=262888

For more information, visit: <a href="http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DidTenantSettingCreatedAnException.aspx">http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DidTenantSettingCreatedAnException.aspx</a>

 

Pour pouvoir préparer votre Active Directory dans un scénario de coexistence avec Exchange Online, vous devez exporter la configuration de votre organisation vers un fichier XML.

Nous allons nous connecter à notre tenant Office 365 avec le script suivant :

1
2
3
4
5
6
7
Set-ExecutionPolicy RemoteSigned

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session -DisableNameChecking

 

Une fois connecter sur le tenant Office 365 nous allons lancer la commande suivante :

1
Get-OrganizationConfig | Export-Clixml -Path C:\chader\MyTenantOrganizationConfig.XML

 

Ce qui récupère la configuration de l’organisation à partir d’Exchange Online et l’exporte dans un fichier XML.

Nous allons préparer Active directory avec la commande suite :

1
.\Setup.EXE /PrepareAD /TenantOrganizationConfig C:\chader\MyTenantOrganizationConfig.xml /IAcceptExchangeServerLicenseTerms

 

/PrepareSchema ne peut pas être utilisé avec le paramètre « /TenantOrganizationConfig », c’est pour ca qu’on utilise /PrepareAD.

Vous pouvez maintenant continuer votre installation exchange.

Visits: 1005