-->

Applies To: Windows Server 2003, Windows Server 2008, Windows Server 2003 R2, Windows Server 2012, Windows Server 2003 with SP1, Windows 8

Describes a problem in which the Adprep /rodcprep command isn't completed successfully because the infrastructure master for one or more active directory NDNCs isn't reachable. A resolution is provided. Windows 2008 R2 Support Tools Adprep download free. 75 thoughts on “ Migrating Domain Controllers From Server 2008 R2 to Server 2012 R2. Just thought I'd say that the MSDN Server 2008 R2 media with Standard, Web, Ent, Datacenter has the R1 version of ADPrep on it. Microsoft need to make ADPrep available for download. Else, we all just think they're idiots. I am bringing a Windows 2003 Server into an existing Windows 2000 domain, thus need to run adprep.exe. Because my Windows 2003 server is 64-bit, the media doesn't contain the 32-bit version of adprep (which I need in order to run on my Windows 2000 schema master). Does anyone know how I can acquire the. Upgrade 2000 Domain. Add 2008 R2 DC You have to run ADPREP(32) on the old server to bring Forest and AD etc up to the new specs. Here were the steps.

Extends the Active Directory® schema and updates permissions as necessary to prepare a forest and domain for a domain controller that runs the Windows Server® 2008 operating system.

The adprep program comes on your 2008 R2 DVD but when you run this on your old 32 bit server you get an error: The image file C: adprep adprep.exe is valid, but is for a machine type other than the current machine. Windows Server 2012-2016: Windows will automatically run adprep during the promotion of the new domain controller. How To Run Adprep.exe Windows Server 2008 R2 (or earlier): You need to run adprep on the domain controller that owns the Schema Master FSMO role.

Adprep.exe is a command-line tool that is available on the Windows Server 2008 installation disc in the sourcesadprep folder, and it is available on the Windows Server 2008 R2 installation disk in the supportadprep 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).

For more information about running Adprep.exe and how to resolve errors that can occur when you run it, see Running Adprep.exe ( HYPERLINK 'https://go.microsoft.com/fwlink/?LinkID=142597' https://go.microsoft.com/fwlink/?LinkID=142597).

For examples of how this command can be used, see Examples.

For more information about running adprep /forestprep, see Prepare a Windows 2000 or Windows Server 2003 Forest Schema for a Domain Controller That Runs Windows Server 2008 or Windows Server 2008 R2 (https://go.microsoft.com/fwlink/?LinkID=93242).

For more information about running adprep /domainprep /gpprep, see Prepare a Windows 2000 or Windows Server 2003 Domain for a Domain Controller That Runs Windows Server 2008 or Windows Server 2008 R2 (https://go.microsoft.com/fwlink/?LinkID=93243).

For more information about running adprep /rodcprep, see Prepare a Forest for a Read-Only Domain Controller (https://go.microsoft.com/fwlink/?LinkID=93244).

Syntax

Parameters

Parameter

Description

/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:

  • The Enterprise Admins group

  • The Schema Admins group

  • The Domain Admins group of the domain that hosts the schema master

/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 (https://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.

Remarks

Server 2008 Adprep Download
  • To prepare an existing Windows 2000 or Windows Server 2003 Active Directory environment for a Windows Server 2008 domain controller, be sure to run the version of Adprep that is included in the Windows Server 2008 installation media.

  • If you run Adprep on a domain controller running Windows 2000 Server, the domain controller must be running Windows 2000 Server Service Pack 4 (SP4) or later.

  • You can also perform verification steps before and after you run the adprep command to help ensure that the operations complete successfully. For more information, see Steps for Extending the Schema (https://go.microsoft.com/fwlink/?LinkId=94799).

Windows Server 2008 R2 Adprep Forestprep Download

Exit Codes

The following table lists exit codes that Adprep can return after an operation completes.

Return Code

Description

0

Success

1

Failure

2

Schema conflict error

3

FSMO role error

4

Connection error

5

Schema upgrade error

6

Unable to modify error

7

Server busy error

8

Permission error

9

Unable to initialize log file error

10

Not a domain controller

11

In nonnative mode

12

Need to run forest update first

13

Forest update already done

14

Domain update already done

15

GPO update already done

16

Forest update wait replication

Examples

The following example prepares a forest for a domain controller that runs Windows Server 2008:

The following example prepares a domain for a domain controller that runs Windows Server 2008:

Server 2008 Adprep Download Full

Windows

The following example prepares a domain for an RODC:

Additional references