Adprep.exe is a command-line tool that is available on the Windows ServerÂ 2008 installation disc in the \sources\adprep folder, and it is available on the Windows ServerÂ 2008Â R2 installation disk in the \support\adprep folder. You must runÂ adprep from an elevated command prompt. To open an elevated command prompt, clickÂ Start, right-clickÂ Command Prompt, and then clickÂ Run as administrator.
In Windows ServerÂ 2008Â R2, Adprep is available in a 32-bit version and a 64-bit version. The 64-bit version runs by default. If you need to run Adprep on a 32-bit computer, run the 32-bit version (Adprep32.exe).
|/forestprep||Prepares a forest for the introduction of a domain controller that runs Windows ServerÂ 2008. You run this command only once in the forest. You must run this command on the domain controller that holds the schema operations master role (also known as flexible single master operations or FSMO) for the forest. You must be a member of all the following groups to run this command:
|/domainprep||Prepares a domain for the introduction of a domain controller that runs Windows ServerÂ 2008. You run this command after theÂ forestprep command finishes and after the changes replicate to all the domain controllers in the forest.
Run this command in each domain where you plan to add a domain controller that runs Windows ServerÂ 2008. You must run this command on the domain controller that holds the infrastructure operations master role for the domain. You must be a member of the Domain Admins group to run this command.
|/domainprep /gpprep||Performs similar updates asÂ domainprep. However, this command also provides updates that are necessary to enable Resultant Set of Policy (RSOP) Planning Mode functionality.
In Active Directory environments that run Microsoft WindowsÂ®Â 2000, this command performs updates during off-peak hours. This minimizes replication traffic that is created in those environments by updates to file system permissions and Active Directory permissions on existing Group Policy objects (GPOs). This command is also available on Microsoft Windows ServerÂ 2003 with Service PackÂ 1 (SP1) or later.
Run this command after theÂ forestprep command finishes and after the changes replicate to all domain controllers in the forest. You must run this command on the infrastructure master for the domain. For more information about running this command in WindowsÂ 2000 Active Directory environments, see Prepare Your Infrastructure for Upgrade (http://go.microsoft.com/fwlink/?LinkId=94798).
|/rodcprep||Updates permissions on application directory partitions to enable replication of the partitions to read-only domain controllers (RODCs). This operation runs remotely; it contacts the infrastructure master in each domain to update the permissions. You need to run this command only once in the forest. However, you can rerun this command any time if it fails to complete successfully because an infrastructure master is not available. You can run this command on any computer in the forest. You must be a member of the Enterprise Admins group to run this command.|
|/wssg||Returns an expanded set of exit codes, instead of just 0 (Success) and 1 (Failure).|
|/silent||Specifies that no standard output is returned from an operation. This parameter can be used only ifÂ /wssg is also used.|
|quit||Returns to the prior menu.|
|Help||Displays Help for this command.|
|?||Displays Help for this command.|