Yes, you can create a new Active Directory forest with a different domain name even if the previously demoted domain controller still exists in the system. However, you need to ensure that the metadata associated with the old domain controller is cleaned up properly to avoid conflicts during the new forest creation process.
Here are the general steps you should follow:
- Clean Up Metadata: Before creating a new forest, you need to remove any leftover metadata from the demoted domain controller. This can be done using the Active Directory Sites and Services tool or through the command line using the
ntdsutiltool to remove the domain controller's entries.- Open
ntdsutiland run the following commands:-
metadata cleanup -
connections -
connect to server <your-server-name> -
quit -
select operation target -
list domains(to find your domain) -
select domain <domain-number> -
list sites(to find your site) -
select site <site-number> -
list servers in site(to find your server) -
select server <server-number> -
remove selected server -
quitandquitagain to exitntdsutil.
-
- Open
- Install Active Directory Domain Services (AD DS): After cleaning up the metadata, you can proceed to install AD DS on your server. Use the Server Manager to add the Active Directory Domain Services role.
- Promote to Domain Controller: During the promotion process, select the option to create a new forest and specify the new domain name you wish to use. Make sure to follow the prompts to configure the necessary settings, such as the forest and domain functional levels.
- Verify Installation: After the installation is complete, verify that the new domain controller is functioning correctly by checking the Active Directory Users and Computers console and ensuring that the new domain appears as expected.
By following these steps, you should be able to create a new forest with a different domain name without issues related to the previously demoted domain controller.