question

NisamAli-1651 avatar image
0 Votes"
NisamAli-1651 asked Amishkaz-9204 edited

Adprep error (server 2012 r2 to 2019)

Dear Team,

We have 3 DC's with 2012r2 installed. I am planning 2012r2 dc to 2019 in-place upgrade.

For the first step, I ran ADPREP /forestprep CMD in a DC and it returned with the error = adprep failed to verify whether schema master has completed a replication cycle after last reboot --- ADPREP encounter an ldap error.

I have checked the administrator rights and have all rights schema. enterprise etc.

Here I am trying this from a test machine (I have restored an image backup to the test server) and this machine doesn't have access to any network or to other DC's. Please help me to solve this issue.

windows-serverwindows-server-2019windows-server-2012
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I got the same error when planning to perform an 2012r2 dc to 2016 in-place upgrade
i tried this link https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc753437(v=ws.10)


0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered NisamAli-1651 commented

Do not do an in-place upgrade.

The two prerequisites to introducing the first 2019 or 2022 domain controller are that domain functional level needs to be 2008 or higher and older sysvol FRS replication needs to have been migrated to DFSR
https://techcommunity.microsoft.com/t5/Storage-at-Microsoft/Streamlined-Migration-of-FRS-to-DFSR-SYSVOL/ba-p/425405

I'd use dcdiag / repadmin tools to verify health correcting all errors found before starting any operations. Then stand up the new 2019 or 2022, patch it fully, license it, join existing domain, add active directory domain services, promote it also making it a GC (recommended), transfer FSMO roles over (optional), transfer pdc emulator role (optional), use dcdiag / repadmin tools to again verify health, when all is good you can decommission / demote old one.


--please don't forget to upvote and Accept as answer if the reply is helpful--






· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick,

This is very difficult because I have 100 + users and files, I even tried to do an upgrade to 2016. The same ADPREP error. Microsoft shows that we can do an in-place upgrade from 2012r2 to 2019.

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered DSPatrick commented

This is very difficult because I have 100 + users and files

Not sure what you mean by this. I'm not suggesting to start over with a new domain. A migration as I mentioned above is the much safer / cleaner method to upgrade the existing domain.

--please don't forget to upvote and Accept as answer if the reply is helpful--







· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking if there's any progress or updates?

--please don't forget to upvote and Accept as answer if the reply is helpful--



0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello NisamAli,

I Have experienced the same issue: In my case the problem was that local administrators of that child domain did not have any permissions on Group Policy object of the domain controller. By default they should have Full Control. (Admins of root domain did have this permission.) So when local "domain admins" were added in the Security tab of Group Policy, ADPrep /domainprep could run without a problem.

Additionally I need to point out, that the issue may be happening because you are trying the operation in a restored image that has no connection or replication the rest of the domain, so in theory the error is correct to complain about the LDAP issue. In the normal environment, the error should not happen normally.



--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.