This section explains how to correct problems when Adprep.exe fails. Adprep.exe errors are logged in the %windir%\Debug\Adprep\Logs folder. There will be a separate file each time that you run ADPREP. At the bottom of the file, you can see what the problem
is. Some common causes for Adprep.exe errors include the following:
For more information, see Troubleshooting ADPREP Errors (http://go.microsoft.com/fwlink/?LinkId=138881).
Each Adprep.exe command requires a different set of credentials. The following table lists the credential requirements for each command.
Credentials that are required to run the command
adprep /domainprep /gpprep
If Adprep.exe cannot contact the operations master role holders that are required to complete the command, the command fails with an error. Because the
adprep /forestprep and adprep /domainprep /gpprep commands must be run directly on the schema master and the infrastructure master, respectively, these commands are less likely to generate this type of error.
The adprep /rodcprep command, however, can be run from any computer. This command runs remotely, and it must contact the domain naming master for the forest to obtain a list of application directory partitions that are in the forest. It
then must contact the infrastructure master for each of the application directory partitions. If an infrastructure master is offline or if it has been forcefully removed from the domain, the
adprep /rodcprep command fails. For more information, see article 949257 in the Microsoft Knowledge Base (http://go.microsoft.com/fwlink/?LinkID=140285).
Schema conflicts can cause the following Adprep errors:
This error message can appear when an external function called by adprep /forestprep or
adprep /domainprep /gpprep causes locks on files or folders that are used by antivirus software utilities running on the schema master or the infrastructure master.
adprep /domainprep /gpprep
If you see this error message when you run adprep /forestprep, try disabling the antivirus software and running the command again. After the
adprep /forestprep command completes, you can enable the antivirus software again.
If you see this error message when you run adprep /domainprep /gpprep, investigate and resolve the following possible causes:
You can receive this error if you try to run Adprep.exe from the Windows Server 2008 R2 installation DVD on a schema master that runs a 32-bit version of Windows Server. By default, Windows Server 2008 R2 runs the 64-bit version of Adprep.exe. To resolve
this error, open an elevated command prompt on the schema master and run the 32-bit version of the command:
The Adprep32.exe tool is in the support\adprep folder of the Windows Server 2008 R2 installation DVD.