Documente Academic
Documente Profesional
Documente Cultură
Adprep
Actualizado: mayo de 2009
Se aplica a: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server
2008
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.
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).
For more information about running Adprep.exe and how to resolve errors that can occur when you run it, see
Running Adprep.exe [ http://go.microsoft.com/fwlink/?LinkID=142597 ] (http://go.microsoft.com/fwlink/?
LinkID=142597).
For more information about running adprep /forestprep, see Prepare a Windows 2000 or Windows Server 2003
Forest Schema for a Domain C ontroller That Runs Windows Server 2008 or Windows Server 2008 R2
(http://go.microsoft.com/fwlink/?LinkID=93242 [ http://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 C ontroller That Runs Windows Server 2008 or
Windows Server 2008 R2 (http://go.microsoft.com/fwlink/?LinkID=93243 [ http://go.microsoft.com/fwlink/?
LinkID=93243 ] ).
For more information about running adprep /rodcprep, see Prepare a Forest for a Read-Only Domain
C ontroller (http://go.microsoft.com/fwlink/?LinkID=93244 [ http://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 Domain Admins group of the domain that hosts the schema master
…microsoft.com/…/cc731728(WS.10,print… 1/4
01/02/2011 Adprep
/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 Performs similar updates as domainprep. However, this command also provides updates
/gpprep 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 [
http://go.microsoft.com/fwlink/?LinkId=94798 ] ).
/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.
Remarks
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 (http://go.microsoft.com/fwlink/?LinkId=94799 [ http://go.microsoft.com/fwlink/?
LinkId=94799 ] ).
Exit Codes
…microsoft.com/…/cc731728(WS.10,print… 2/4
01/02/2011 Adprep
The following table lists exit codes that Adprep can return after an operation completes.
0 Success
1 Failure
4 C onnection error
8 Permission error
11 In nonnative mode
Examples
The following example prepares a forest for a domain controller that runs Windows Server 2008:
adprep /forestprep
The following example prepares a domain for a domain controller that runs Windows Server 2008:
adprep /domainprep
…microsoft.com/…/cc731728(WS.10,print… 3/4
01/02/2011 Adprep
The following example prepares a domain for an RODC :
adprep /rodcprep
Additional references
Etiquetas:
Contenido de la comunidad
…microsoft.com/…/cc731728(WS.10,print… 4/4