Adprep failing when adding 2016 server as DC

Hi Experts,

Have an environment which has a single DC - 2008R2, Domain and Forest Functional Level were 2003 but were updated to 2008. Have added a 2016 server to domain but when trying to promote it run into errors. Also when trying to run adprep on 2008R2 DC from Win 2016 CD get error below, this is the Adprep log file. Anyone seen this before and if there is a solution?

[2018/01/16:13:17:18.557]
Adprep created the log file 'C:\Windows\debug\adprep\logs\20180116131718\ADPrep.log'
[2018/01/16:13:17:18.557]
Adprep successfully initialized global variables.
 
[Status/Consequence]
 
Adprep is continuing.
[2018/01/16:13:17:18.619]
Adprep discovered the schema FSMO: SERVER.DOMAIN.COM.
[2018/01/16:13:17:18.728]
Adprep connected to the schema FSMO: SERVER.DOMAIN.COM.
[2018/01/16:13:17:18.728]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2018/01/16:13:17:18.728]
LDAP API ldap_search_s() finished, return code is 0x0
[2018/01/16:13:17:18.728]
Adprep successfully retrieved information from the Active Directory Domain Services.
[2018/01/16:13:17:18.728]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is DC=DOMAIN,DC=com.
[2018/01/16:13:17:18.728]
LDAP API ldap_search_s finished, return code is 0x0
[2018/01/16:13:17:18.728]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2018/01/16:13:17:18.728]
LDAP API ldap_search_ext_s finished, return code is 0x0
[2018/01/16:13:17:18.728]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2018/01/16:13:17:18.728]
LDAP API ldap_search_s finished, return code is 0x0
[2018/01/16:13:17:18.728]
Adprep discovered the schema FSMO: SERVER.DOMAIN.COM.
[2018/01/16:13:17:18.838]
Adprep connected to the schema FSMO: SERVER.DOMAIN.COM.
[2018/01/16:13:17:18.869]
 
 
ADPREP WARNING:
 
 
 
Before running adprep, all Windows Active Directory Domain Controllers in the forest must run Windows Server 2003 or later.
 
 
 
You are about to upgrade the schema for the Active Directory forest named 'DOMAIN.COM', using the Active Directory domain controller (schema master) 'SERVER.DOMAIN.COM'.
 
This operation cannot be reversed after it completes.
 
 
 
[User Action]
 
If all domain controllers in the forest run Windows Server 2003 or later and you want to upgrade the schema, confirm by typing 'C' and then press ENTER to continue. Otherwise, type any other key and press ENTER to quit.
[2018/01/16:13:17:23.799]
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=DOMAIN,DC=com.
[2018/01/16:13:17:23.799]
LDAP API ldap_search_s() finished, return code is 0x0
[2018/01/16:13:17:23.799]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is CN=SERVER,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=DOMAIN,DC=com.
[2018/01/16:13:17:23.799]
LDAP API ldap_search_s() finished, return code is 0x0
[2018/01/16:13:17:23.799]
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=DOMAIN,DC=com.
[2018/01/16:13:17:23.799]
LDAP API ldap_search_s() finished, return code is 0x0
[2018/01/16:13:17:23.799]
Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is (null).
[2018/01/16:13:17:23.799]
LDAP API ldap_search_s() finished, return code is 0x0
[2018/01/16:13:17:23.799]
Adprep successfully retrieved information from the Active Directory Domain Services.
[2018/01/16:13:17:23.799]
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=DOMAIN,DC=com.
[2018/01/16:13:17:23.814]
LDAP API ldap_search_s() finished, return code is 0x0
[2018/01/16:13:17:23.814]
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.
[2018/01/16:13:17:23.830]
Adprep could not retrieve data from the server SERVER.DOMAIN.COM through Windows Managment Instrumentation (WMI).
 
[User Action]
 
Check the log file ADPrep.log in the C:\Windows\debug\adprep\logs\20180116131718 directory for possible cause of failure.
[2018/01/16:13:17:23.830]
Adprep encountered a Win32 error.
 
Error code: 0xc1 Error message: (null)
abhijitm00Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FOXActive Directory/Exchange EngineerCommented:
When you are promoting the 2016 Server to a domain controller the adprep will be baked in to the process.   Please run it from the new server.
Hello ThereSystem AdministratorCommented:
ADPREP has to be run from the domain controller that has the Schema Master FSMO role assigned to it, and you have to run it from a user part of Enterprise Admins and Schema Admins.
abhijitm00Author Commented:
Thanks for replying. I will check on the user permissions and update. I will also try running adprep from the 2016 server
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Hello ThereSystem AdministratorCommented:
Yes, if WS2016 holds FSMO Roles. You have to run Adprep from server that holds FSMO.
Hello ThereSystem AdministratorCommented:
Use this command on both servers: netdom query fsmo
Run Adprep from server that has all roles.
abhijitm00Author Commented:
The 2008R2 server holds all the FSMO roles
Hello ThereSystem AdministratorCommented:
Then run Adprep from WS2008R2 with Administrator added to Schema Admins.
If this will not help you might try to move FSMO Roles to WS2016.
abhijitm00Author Commented:
That is where the issue is I cannot migrate FSMO roles without making 2016 a DC first. Could there be any WMI errors? I have disabled Windows firewall between both
Hello ThereSystem AdministratorCommented:
Use WMI diagnosis Utility (WMIDiag.exe).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical SpecialistCommented:
Have an environment which has a single DC - 2008R2
No need to disable firewall (everything is local), throubleshoot WMI, move FSMOs (which you cannot do until server is a DC)
Confirm that you added account to schema admins and did a logon/logoff
DrDave242Senior Support EngineerCommented:
Win32 error code 0xC1 translates to "x is not a valid Win32 application," which is a very strange error to be getting when running the 2016 version of Adprep on a 2008 R2 server. The last time I remember seeing that error when running Adprep was back when 2008 R2 first came out, and people were trying to run the 64-bit version of Adprep on their 32-bit Windows servers.

You're certain the existing DC is running 2008 R2, right, and not a 32-bit version of 2008 pre-R2? Sorry if that sounds like a dumb question, but I'm having trouble coming up with a logical explanation for that error.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.