Hello,
We are a very small company trying to migrate our Windows Server 2012 Active Directory Domain controller to our new Windows Server 2022 controller. We have already successfully made the 2022 server join our existing domain but when we try to promote the server as a domain controller, we're getting the following error messages:
ADPrep execution failed System.ComponentModel.Win32Exception (0x80004005): A
device attached to the system is not functioning.
Check the log files in the directory for
detailed information.
You will find a screenshot of the error message right there.
The logs file are the following:
It seems like to us it is the ADPrep command which is failing:
[2023/12/19:08:56:55.584]
Adprep created the log file 'C:\Windows\debug\adprep\logs\20231219085655\ADPrep.log'
[2023/12/19:08:56:55.584]
Adprep successfully initialized global variables.
[Status/Consequence]
Adprep is continuing.
[2023/12/19:08:56:55.592]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=Schema,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.596]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.596]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=UWSVR01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.597]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.597]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=Schema,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.597]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.603]
Adprep discovered the schema FSMO: UWSVR01.ULTIMATEWASHER.local.
[2023/12/19:08:56:55.605]
Adprep connected to the schema FSMO: UWSVR01.ULTIMATEWASHER.local.
[2023/12/19:08:56:55.605]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2023/12/19:08:56:55.606]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.606]
Adprep successfully retrieved information from the Active Directory Domain Services.
[2023/12/19:08:56:55.606]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.606]
LDAP API ldap_search_s finished, return code is 0x0
[2023/12/19:08:56:55.606]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2023/12/19:08:56:55.606]
LDAP API ldap_search_ext_s finished, return code is 0x0
[2023/12/19:08:56:55.606]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2023/12/19:08:56:55.607]
LDAP API ldap_search_s finished, return code is 0x0
[2023/12/19:08:56:55.613]
Adprep discovered the schema FSMO: UWSVR01.ULTIMATEWASHER.local.
[2023/12/19:08:56:55.615]
Adprep connected to the schema FSMO: UWSVR01.ULTIMATEWASHER.local.
[2023/12/19:08:56:55.616]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=Schema,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.616]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.616]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=UWSVR01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.616]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.616]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=Schema,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.617]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.617]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2023/12/19:08:56:55.617]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.617]
Adprep successfully retrieved information from the Active Directory Domain Services.
[2023/12/19:08:56:55.617]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=UID,CN=Schema,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.618]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.618]
Adprep successfully determined whether Microsoft Windows Services for UNIX (SFU) is installed or not. If adprep detected SFU, adprep also verified that Microsoft hotfix Q293783 for SFU has been applied.
[2023/12/19:08:56:55.620]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=Schema,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.620]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.620]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=UWSVR01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.620]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.620]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=Schema,CN=Configuration,DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.621]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.621]
Adprep is about to upgrade the Active Directory Schema on the Domain Controller UWSVR01.ULTIMATEWASHER.local.
[2023/12/19:08:56:55.622]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2023/12/19:08:56:55.622]
LDAP API ldap_search_s() finished, return code is 0x0
[2023/12/19:08:56:55.623]
Adprep successfully retrieved information from the Active Directory Domain Services.
[2023/12/19:08:56:55.623]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is DC=ULTIMATEWASHER,DC=local.
[2023/12/19:08:56:55.623]
LDAP API ldap_search_s finished, return code is 0x0
[2023/12/19:08:56:55.623]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2023/12/19:08:56:55.623]
LDAP API ldap_search_ext_s finished, return code is 0x0
[2023/12/19:08:56:55.623]
Current Schema Version is 69
[2023/12/19:08:56:55.623]
Upgrading schema to version 88
[2023/12/19:08:56:55.625]
The command line passed to ldifde is ldifde -i -f "C:\Windows\system32\adprep\sch70.ldf" -s "UWSVR01.ULTIMATEWASHER.local" -h -j "C:\Windows\debug\adprep\logs\20231219085655" -$ "C:\Windows\system32\adprep\schupgrade.cat"
[2023/12/19:08:56:55.654]
ERROR: Import from file C:\Windows\system32\adprep\sch70.ldf failed. Error file is saved in C:\Windows\debug\adprep\logs\20231219085655\ldif.err.70.
If the error is "Insufficient Rights" (Ldap error code 50), please make sure the specified user has rights to read/write objects in the schema and configuration containers, or log off and log in as an user with these rights and rerun forestprep. In most cases, being a member of both Schema Admins and Enterprise Admins is sufficient to run forestprep.
[2023/12/19:08:56:55.655]
Adprep was unable to upgrade the schema on the schema master.
[Status/Consequence]
The schema will not be restored to its original state.
[User Action]
Check the Ldif.err log file in the C:\Windows\debug\adprep\logs\20231219085655 directory for detailed information.
[2023/12/19:08:56:55.655]
Adprep was unable to update forest information.
[Status/Consequence]
Adprep requires access to existing forest-wide information from the schema master in order to complete this operation.
[User Action]
Check the log file, ADPrep.log, in the C:\Windows\debug\adprep\logs\20231219085655 directory for more information.
You will find the full log entry files in here: https://1drv.ms/f/s!AjGW_NSfMOyM5ScuxbJpq5cq0Kws?e=ZrGDCA
Here are the steps we have tried:
- Restart the computer
- Repair installation of AD controller
- Check that Remote Registry is active
- Checked that the user has the right Entreprise and Schema rights
Would you have any ideas on how to fix it? Could you help us complete this transition ?
Respectfully,
Louis GUERIN