25.9 C
Wednesday, December 7, 2022

Error while running ‘ldifde.exe’ to import the schema file

PS F:\> .\Setup.EXE /Prepareschema /IAcceptExchangeServerLicenseTerms /domaincontroller:dc01.azure365pro.local

Microsoft Exchange Server 2016 Cumulative Update 17 Unattended Setup

Copying Files...
File copy complete. Setup will now collect additional information needed for installation.

Performing Microsoft Exchange Server Prerequisite Check

Prerequisite Analysis COMPLETED

Configuring Microsoft Exchange Server

Extending Active Directory schema FAILED

The following error was generated when "$error.Clear();
install-ExchangeSchema -LdapFileName ($roleInstallPath +
"Setup\Data\"+$RoleSchemaPrefix + "schema2.ldf")

" was run: "Microsoft.Exchange.Configuration.Tasks.TaskException:
There was an error while running 'ldifde.exe' to import the schema file
'C:\windows\Temp\ExchangeSetup\Setup\Data\PostExchange2003_schema2.ldf'. The error code is: 8224. More details can be
found in the error file: 'C:\Users\administrator\AppData\Local\Temp\2\ldif.err'
Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target,
String helpUrl)
at Microsoft.Exchange.Management.Deployment.InstallExchangeSchema.ImportSchemaFile(String
schemaMasterServer, String schemaFilePath, String macroName, String macroValue, WriteVerboseDelegate writeVerbose)
Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean

The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the
<SystemDrive>:\ExchangeSetupLogs folder.
PS F:\>

Solution –

Make sure all Domain Controllers are reachable.
Remove any orphaned domain controllers.
Try running on domain controller itself holding the schema master.


Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Specialized in Microsoft Azure - Office 365 / Microsoft Exchange; conducted numerous projects worldwide in designing, supporting, and implementing messaging and virtualization infrastructure for medium-sized and large enterprises. Further, I am a Cloud Architect and Technical Advisor for various start-ups.

Related Articles


Please enter your comment!
Please enter your name here

× How can I help you?