Migrate Microsoft Windows Active Directory 2003 to Microsoft Windows 2008

This document will show you how to successfully migrate a Microsoft Windows environment 2000 o Microsoft Windows 2003 to Microsoft Windows 2008. Being the migration of Active Directory 2000 or 2003 a 2008. Active Directory will be migrated to this new version to new domain controllers. Old domain controllers will disappear. So you'll need a new server to install Windows 2008, Make it a domain controller, pass the roles to it and then unpromote the old domain controllers. Finally, the functional level of the domain and the forest will be raised to 'Windows 2008'. The correct steps to follow will be:

Check the Status of Domain Controllers – HERE, (recommended but not mandatory)
Preparing the Active Directory – HERE,
Join an Existing Active Directory – HERE,
Migrating roles – HERE,
Depromotion of old domain controllers – HERE,
Raise functional levels – HERE,

Eye, Before we start, we will have to take into account that we must have backups, both domain controllers and Active Directory in case something goes wrong. We must also take into account all the requirements to update an Active Directory to 2008:

– Current domain does not have to be 'Mixed Mode', if not 'Native Mode'’ or 'Windows' 2003 Server’
– Check HCL (Hardware Compatibility List) of new domain controllers, to be supported by MS Windows 2008 – HERE.
– Windows-based domain controllers 2000 they must have SP4 installed. In the case of Windows 2003 have the SP1.

Check the Status of Domain Controllers,

GOOD, The first thing to do is to To perform before an Active Directory migration is to verify that the AD is working correctly. That we must have the AD well configured, Active Directory Sites and Services, Verify that the replicas are working, that is, GPOs are copied from one site to another, From one domain controller to another, Scripts are replicated in the Sysvol… we don't have dirt in the Active Directory with obsolete objects like non-existent old domain controllers… For the migration to be correct, We must check all this, for this Microsoft provides us with certain tools that will help us. Apart from the always useful Event Viewer that does not have errors.

Migrate AD 2003 a 2008

For example, We have DCDIAG. This utility will help us to make a diagnosis of the domain controllers. This command-line tool analyzes the status of one or all of the domain controllers in a forest and reports any issues to make it easier to resolve the problem. Read more, visit Microsoft's website – HERE. In the example in the image, run the command on a domain controller, in my case in the main one and I will redirect the text output to a TXT text file:
dcdiag.exe > FICHERO_DE_LOG

Migrate AD 2003 a 2008

When we open the generated LOG file we will have a text like the following:


Domain Controller Diagnosis

Performing initial setup:
Done gathering initial info.

Doing initial required tests

Testing server: HXXXXXXXIHXXXXXXX1
Starting test: Connectivity
……………………. HXXXXXXX1 passed test Connectivity

Doing primary tests

Testing server: HXXXXXXXIHXXXXXXX1
Starting test: Replications
[Replications Check,HXXXXXXX1] A recent replication attempt failed:
From AXXXXX1 to HXXXXXXX1
Naming Context: CN=Schema,CN=Configuration,DC=XXXXXXX,DC=es
The replication generated an error (1722):
RPC server is unavailable.
The failure occurred at 2008-07-15 07:38.25.
The last success occurred at 2008-07-01 18:51.20.
91 failures have occurred since the last success.
[AXXXX01] DsBind() failed with error 1722,
The RPC server is unavailable..
The source remains down. Please check the machine.
[Replications Check,HXXXXXXX1] A recent replication attempt failed:
From MXXXX01 to HXXXXXXX1
Naming Context: CN=Schema,CN=Configuration,DC=XXXXXXX,DC=es
The replication generated an error (1722):
RPC server is unavailable.
The failure occurred at 2008-07-15 07:38.48.
The last success occurred at 2008-07-01 18:51.20.


Eye, It gives me mistakes, we would have to see it, but in my case the errors are because I'm performing a pilot and I have this domain controller next to another isolated one, in the case of the domain that concerns us has 40 domain controllers and I don't have them on my network since it's to make this document. So no problem. 😉

Migrate AD 2003 a 2008

More, we have REPADMIN, with this command we will see the status of the replicas of our Active Directory. Perform replication-related tasks, Including, Manage and modify the replication topology, Force replication events, and display replication metadata and updated vectors. Read more, visit Microsoft's website – HERE.

Migrate AD 2003 a 2008

The point is to verify that replicas between sites and between domain controllers are correct, for this we run REPADMIN in the following format:

repadmin.exe /showreps > FICHERO_DE_LOG

Migrate AD 2003 a 2008

This would be an example of my Active Directory, That I know he's totally corrupted by what I said above, that I lack like some 38 Domain controllers on my network:


HXXXXXXXIHXXXXXXX1
DSA Options : IS_GC
objectGuid : C35F9D05-C11B-4F10-BFC0-022218FE3C31
invocationID: 65DE4042-EFE6-4619-B3C5-11B5FBBCB264F

==== INBOUND NEIGHBORS ======================================

CN=Schema,CN=Configuration,DC=XXXXXXX,DC=es
UXXXXXXIAXXXXX1 via RPC
objectGuid: C14AA802-564C-4667-AA8A-D610AA5C4CD0
Last attempt @ 2008-07-15 07:41.05 failed, result 1722:
RPC server is unavailable.
Last success @ 2008-07-01 18:51.21.
91 consecutive failure(s).
CXXXXXNAXXXXX1 via RPC
objectGuid: D14300DE-A51A-4E8D-A770-DC44B7F029AB
Last attempt @ 2008-07-15 07:41.51 failed, result 1722:
RPC server is unavailable.
Last success @ 2008-07-01 18:51.21.


Migrate AD 2003 a 2008

Other, We have GPOTOOL. This tool or utility is used to check the status of each policy that we have in our Active Directory, we can have replication failures and have the same GPO in different sites with different configurations. This tool will check the status of them.

Migrate AD 2003 a 2008

The command in question is executed as follows:

gpotool.exe > FICHERO_DE_LOG

Migrate AD 2003 a 2008

This would be an example of my GPOTool LOG file: Validating DCs…


Available DCs:
hXXXXXXX1.XXXXXXX.es
Searching for policies…
Found 167 Policies
============================================================
Policy {02506CA9-82F2-4B58-8E6D-1B0B49F81801}
Policy OK
============================================================
Policy {03A44330-75E1-4A8C-8C08-B574E0FCF63C}
Policy OK
============================================================
Policy {05000318-0434-43CE-9C6A-60A07B1EEDE8}
Policy OK
============================================================
Policy {05B4D52D-CA72-4BC4-9DC2-99D184E8F963}
Policy OK
============================================================
Policy {07F58F8E-356A-4CD5-AE37-3461EE2849D4}
Policy OK
============================================================
Policy {0959942F-21A2-4FF0-B84C-1A3748E24815}
Policy OK
============================================================
Policy {097AB751-C12A-4A42-B8BE-26B54190FB12}
Policy OK
============================================================
Policy {09BCAA04-49D8-4434-87ED-820DC2753E1F}
Policy OK
============================================================

============================================================
Policy {FF00FDCE-229C-4EFA-B442-4CADE83A49EA}
Policy OK

Policies OK


Preparing the Active Directory,

Tras comprobar que tenemos correcto el Directorio Activo, debemos preparar nuestro Directorio Activo para que soporte controladores de dominio con Microsoft Windows 2008 de sistema operativo. Para ello debemos ejecutar los siguientes comandos y comprobar que finalizan correctamente sin errores.

Migrate AD 2003 a 2008

First of all, en el servidor que tiene el rol de Maestro de Esquema y con un usuario con permisos de Administrador de Empresa, Administrador de Esquema y Administrador de dominio ejecutaremos:

adprep /forestprep

Migrate AD 2003 a 2008

Para continuar pulsamos “C”, pero tendremos en cuenta que todos los controladores de dominio sean como mínimo Windows 2000 SP4,

Migrate AD 2003 a 2008

esperamos unos minutos mientras nos actualiza el bosque del Directorio activo (en el ejemplo superior me actualizará de la versión 13 que es un bosque 2000, to the version 44 que es un bosque 2008)…

Migrate AD 2003 a 2008

Ok, comprobamos que finaliza correctamente.

Migrate AD 2003 a 2008

Now, debemos preparar si nos interesa el Directorio Activo para poder usar controladores de dominio de lectura, este comando será opcional. Se ejecutará en el servidor con el rol ‘Domain Naming Mastero RID con nivel de permisos de Administrador de dominio. El comando será:

adprep /rodcprep

Migrate AD 2003 a 2008

Esperamos a que se complete el comando y comprobamos que todo ha sido correctamente realizado.

Migrate AD 2003 a 2008

Ahora preparamos el dominio y añadiremos el parámetro [gpprep] para preparar las directivas o GPO. Este comando se realizará en el Maestro de Infraestructuras con permisos de Administrador de dominio:

adprep /domainprep /gpprep

Migrate AD 2003 a 2008

Esperamos a que se realice completamente el comando y que los resultados sean correctos.

Tendremos que tener en cuenta que si nuestro Directorio Activo es grande y tenemos diferentes sitios con diferentes tiempos de réplica, daremos tiempo a que se replique el Directorio Activo entre comando y comando. Aproximandamente 15 minutos entre cada comando.

Join an Existing Active Directory,

Una vez ya tenemos el Directorio Activo actualizado a la versión Windows 2008 ya podremos crear controladores de dominio con esta versión de Windows. Así que ahora instalamos Windows 2008 en algún servidor siguiendo este procedimiento – HERE. Y le promocionaremos a controlador de dominio en nuestro dominio actual.

Migrate AD 2003 a 2008

En el servidor 2008 recien instalado, le agregaremos la función de Servicios de dominio de Active Directory mediante el comando ‘dcpromo’ en la opción “Execute” del menú Inicio. And we accept.

Migrate AD 2003 a 2008

… esperamos mientras prepara el asistente de instalación de los servicios de dominio de Directorio Activo…

Migrate AD 2003 a 2008

Comienza el asistente de instalación para crear o unirnos a un dominio, “Following”,

Migrate AD 2003 a 2008

Leemos atentamente y si no tenemos clientes de Windows NT 4.0 o no-Microsoft SMB, Continue, “Following”,

Migrate AD 2003 a 2008

Debemos seleccionar la opción “Bosque existente” and “Add a domain controller to an existing domain”, “Following”,

Migrate AD 2003 a 2008

Indicamos el nombre del dominio al que nos queremos unir como controlador de dominio, indicamos unas credenciales con permisos de unirnos al dominio y “Following”,

Migrate AD 2003 a 2008

Seleccionamos el dominio al que nos uniremos, “Following”,

Migrate AD 2003 a 2008

Nos muestra los sitios que tiene configurados el dominio actual, debemos indicar a que sitio pertenece este controlador de dominio & “Following”,

Migrate AD 2003 a 2008

Indicamos como opción adicional que a este controlador le haremos catálogo global, ya que si vamos a quitar controladores de dominio viejos, necesitamos tener servidores con el rol de CG. Ya que es necesario que los usuarios tengan un servidor que les valide los inicios de sesion. “Following”,

Migrate AD 2003 a 2008

Debemos seleccionar donde guardaremos la BD del directorio activo, así como la base de datos también los archivos de registro de ella y la ubicación de la carpeta Sysvol, sus paths predeterminados son: C:WindowsNTDS y C:WindowsSYSVOL. Si los cambiamos será para aumentar rendimiento en este controlador de dominio, si tiene mucha carga, “Following”,

Migrate AD 2003 a 2008

GOOD, ahora debemos indicar la contraseña del usuario Administrador si necesitamos entrar en el equipo en modo restauración (pulsando F8 al reiniciar), “Following”,

Migrate AD 2003 a 2008

Comprobamos el resumen de la preparación para promocionar ya a este servidor, “Following”,

Migrate AD 2003 a 2008

… esperamos mientras replica todos los objetos a este servidor y configura en el Directorio Activo a este servidor como un controlador de dominio adicional…

Migrate AD 2003 a 2008

GOOD, una vez instalados los servicios del AD pulsamos en “End”,

Migrate AD 2003 a 2008

Debemos reiniciar este servidor, Click on “Reiniciar ahora”,

Migrating roles,

Una vez que ya tenemos el primer controlador de dominio con Windows 2008, lo que tenemos que hacer es pasarle a él todos los roles del Directorio Activo y así quitar funciones a los servidores antiguos y poder reemplazarlos. It can be done in two ways, Mediate GUI, or through Commands. And there is a third way that would be aggressive in case the Active Directory does not work correctly and we must force the transfer of the functions – HERE. A continuación lo haremos mediante GUI:

Migrate AD 2003 a 2008

Para modificar los roles, We go to the console of “Active Directory Users and Computers” del servidor al que queremos migrar los roles, If possible, otherwise, nos conectamos desde la consola al servidor deseado de la siguiente manera: Sobre el dominio, Right-click “Change the domain controller… “

Migrate AD 2003 a 2008

Seleccionamos el controlador de dominio al que queremos pasarle los roles y aceptamos.

Migrate AD 2003 a 2008

GOOD, ahora comencemos a migrar los roles, for this, sobre el dominio con botón derecho > “Operations Master…”

Migrate AD 2003 a 2008

Debemos cambiar las tres opciones, first, from the RID tab, nos muestra cual es el servidor RID actual y a cual lo pasaríamos si pulsamos sobre “Change…”, Is.

Migrate AD 2003 a 2008

Confirm, “Yes”

Migrate AD 2003 a 2008

“Accept”.

Migrate AD 2003 a 2008

Comprobamos que el rol se ha migrado correctamente y ahora cambiamos de pestaña,

Migrate AD 2003 a 2008

Ahora con la siguiente pestaña, that of “Primary Domain Controller”, Click on “Change…”

Migrate AD 2003 a 2008

“Yes”,

Migrate AD 2003 a 2008

“Accept”,

Migrate AD 2003 a 2008

Ya hemos migrado el controlador de dominio principal a nuestro DC Windows 2008,

Migrate AD 2003 a 2008

Y por último el servidor de “Infrastructure”, Click on “Change…”,

Migrate AD 2003 a 2008

Eso pasa por que el controlador de dominio actual también es Catalogo Global, es una configuración no recomendable, en principio no pasa nada en organizaciones pequeñas, pero no recomendable mantenerlo así, así que posteriormente cambiaremos este rol o haremos a otro DC GC, Confirm, “Yes”.

Migrate AD 2003 a 2008

Accept,

Migrate AD 2003 a 2008

Y comprobamos que es cierto y el rol ya está migrado. Cerramos,

Migrate AD 2003 a 2008

Ok, otro rol, ahora el de maestro de operaciones, envelope “Active Directory Domains and Trusts”, tenemos que hacer lo de antes, comprobar que este rol se lo aplicaremos al servidor correcto, así que botón derecho sobre “Active Directory Domains and Trusts” > “Cambiar controlador de dominio de Active Directory…”

Migrate AD 2003 a 2008

Seleccionamos el controlador de dominio al que queremos pasarle el rol y aceptamos,

Migrate AD 2003 a 2008

Pulsamos con el botón derecho en “Active Directory Domains and Trusts” and select “Operations Master…”,

Migrate AD 2003 a 2008

Vale, nos dice que cambiaremos de de un servidor antiguo al 2008 the “Operations Master”, We give “Change…”,

Migrate AD 2003 a 2008

Confirm, “Yes”,

Migrate AD 2003 a 2008

Accept,

Migrate AD 2003 a 2008

Now, abrimos una ventana de MSDOS en uno de los controladores de dominio antiguos, Write “regsvr32 schmmgmt.dll” To migrate the schema server, when you give the “Enter” We will get confirmation, We accept it.

Migrate AD 2003 a 2008

What I said, “Accept”,

Migrate AD 2003 a 2008

Ahora abrimos una consola MMC (Microsoft Management Console) desde el menú Inicio en “Execute” escribiendo ‘mmcy aceptando.

Migrate AD 2003 a 2008

Click on “File” > “Add or remove add-in…”

Migrate AD 2003 a 2008

Click on “Add”,

Migrate AD 2003 a 2008

En los complementos buscamos el “Active Directory Schema” and click on “Add” and then on “Close” and “Accept”,

Migrate AD 2003 a 2008

Primero me tengo que conectar al servidor donde quiero migrar este rol, as before, for this, Right click on “Active Directory Schema” and we choose “Change the domain controller…”

Migrate AD 2003 a 2008

Escribimos el nombre del servidor al que queremos migrar y aceptamos.

Migrate AD 2003 a 2008

Para cambiar el servidor que aloja el esquema, right-click on “Active Directory Schema” and select “Operations Master…”

Migrate AD 2003 a 2008

Same as before, shows us the current server of “Schema Master”, para migrarlo de uno a otro pulsamos sobre “Change…” and accept.

Migrate AD 2003 a 2008

Confirmamos que lo queremos cambiar,

Migrate AD 2003 a 2008

Accept.

Migrate AD 2003 a 2008

Finalmente comprobar que uno de los servidores con Windows 2008 tiene la característica de catálogo global habilitada lo veremos desde la consola de “Sitios y Servicios de Active Directory”, envelope “Sitios y servicios del AD” > “Sites” > on any domain controller, y nos vamos al servidor nuevo a “NTDS Settings” > Right Button > “Properties”,

Migrate AD 2003 a 2008

And just check the “Global Catalog” and accept,

Migrate AD 2003 a 2008

And well, esto no es un rol, pero es algo a tener en cuenta, ya que estamos migrando todo, debemos tener en cuenta que también migraremos el servicio DNS de un servidor a otro, sobre la zona de nuestro dominio y zona inversa debemos marcar la opción de “Allow zone transfers” para que traiga la zona a nuestro nuevo controlador de dominio.

Depromotion of old domain controllers,

Una vez que hemos migrado todos los roles del Directorio Activo ya a nuestro servidor con Windows 2008, procederemos a ir quitando los controladores de dominio obsoletos para sustituirlos si nos interesa con otros nuevos con Windows 2008, for this, los quitaremos de forma limpia, This is, con una despromoción.

Migrate AD 2003 a 2008

Así que en los servidores obsoletos se debe despromocionar mediante el comando ‘dcpromo.exe’ en la opción “Execute” del menú Inicio.

Migrate AD 2003 a 2008

Al ejecutar el DCPROMO en un DC antiguo nos sale el asistente para instalación de Active Directory, debemos pulsar en “Next”,

Migrate AD 2003 a 2008

Tendremos en cuenta que este servidor es un Catálogo Global, así que si queremos despromocionar este tendremos en cuenta que por lo menos otro servidor de la red será Catálogo Global, si no tendremos problemas con los inicios de sesión de los usuarios, ya que sin un GC no se validan los usuarios. Accept.

Migrate AD 2003 a 2008

“Following”,

Migrate AD 2003 a 2008

Introducimos la contraseña que queremos que tenga el administrador local de este equipo, “Following”,

Migrate AD 2003 a 2008

Comprobamos todos los pasos y pulsamos en “Following” para despromocionar este controlador de dominio,

Migrate AD 2003 a 2008

… Wait a few minutes…

Migrate AD 2003 a 2008

“End”, se quitó bien,

Migrate AD 2003 a 2008

Debemos reiniciar este servidor ahora para que los cambios surjan efecto. Click on “Reiniciar ahora”,

Elevar niveles de funcionamiento,

Una vez que ya no tengamos servidores que sean controladores de dominio con sistema operativo Windows 2000 o Windows 2003 en nuestro Directorio Activo, podremos elevar el nivel de funcionamiento tanto del bosque como del dominio, con esto conseguiremos las siguientes ventajas:

Nivel funcional del dominio

Características habilitadas

Sistemas operativos de controlador de dominio admitidos

Windows 2000 native

Todas las características predeterminadas de Active Directory y las características siguientes:


Universal groups are enabled for distribution and security groups.

Group nesting.

Group conversion is enabled, which makes conversion between security groups and distribution groups possible.

Security Identifier History (SID).

Windows 2000
Windows Server 2003
Windows Server 2008

Windows Server 2003

All default Active Directory features, all Windows domain functional level features 2000 native and the following features:


Availability of the domain management tool, netdom.exe, to prepare the domain controller rename.

Updating the logon timestamp. The attribute lastLogonTimestamp will be updated with the time when the user or computer last logged on. This attribute is replicated within the domain.

The ability to set the attribute userPassword as the effective password on inetOrgPerson and user objects.

The ability to redirect the Users and Computers containers. By default, two well-known containers are provided to host computer and user or group accounts: I mean, cn=Computers,<domainRoot> and cn=Users,<domainRoot>. This feature allows defining a new well-known location for these accounts.

Allows the Authorization Manager to store authorization policies in Active Directory Domain Services (AD DS).

Includes constrained delegation so that applications can leverage secure user credential delegation via the Kerberos authentication protocol. Delegation can be configured so that it is only allowed on specific target services.

Supports selective authentication, which makes it possible to specify the users and groups from a trusted forest who are allowed to authenticate on resource servers in a trusting forest.

Windows Server 2003
Windows Server 2008

Windows Server 2008

All default Active Directory features, all features of the Windows Server domain functional level 2003 and the following features:


Compatibility with Distributed File System replication (DFS) for SYSVOL, which provides stronger and more detailed replication of SYSVOL content.

Compatibility of Advanced Encryption Services (AES 128 and 256) with the Kerberos protocol.

Information about the last interactive logon, that shows the time of the last successful interactive login of a user, the workstation from which it was initiated and the number of failed login attempts since the last login.

very specific password policies, that allow specifying password policies and account lockout policies for users and global security groups in a domain.

Windows Server 2008

Migrate AD 2003 a 2008

Well, to raise the domain functional level, We open the console “Active Directory Domains and Trusts” and right-click on the domain > “Raise domain functional level…”

Migrate AD 2003 a 2008

We must select the domain functional level “Windows Server 2008” and we press “Raise”,

Migrate AD 2003 a 2008

Accept, eye! to keep in mind that this will be irreversible.

Migrate AD 2003 a 2008

Perfect, Accept,

Migrate AD 2003 a 2008

Well, to raise the forest functional level, We open the console “Active Directory Domains and Trusts” and about “Active Directory Domains and Trusts” Right-click > “Raise forest functional level…”

Migrate AD 2003 a 2008

We must select the forest functional level “Windows Server 2008” and we press “Raise”,

Migrate AD 2003 a 2008

Same as before, aceptamos y tendremos en cuenta que será un proceso que no se podrá revertir.

Migrate AD 2003 a 2008

“Accept” y ya tendríamos un Directorio Activo actualizado a nivel funcional Windows 2008.

www.bujarra.com – Héctor Herrero – Nh*****@*****ra.com – v 1.0


Recommended Posts

Author

nheobug@bujarra.com
Autor del blog Bujarra.com Cualquier necesidad que tengas, Do not hesitate to contact me, I will try to help you whenever I can, Sharing is living ;) . Enjoy documents!!!