• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1403
  • Last Modified:

AD 2008 R2 adprep /forestprep error missing NETAPI32.dll

I'm trying to add a second 2008 R2 DC into our AD. After building it, I tried to run adprep /forestprep on the current DC but it threw me the following error:

The procedure entry point I_NetPath Type could not be located in the dynamic link library NETAPI32.dll

Just trying to get the job done. Any ideas how to get passed that? What it means etc?

Thank you!
  • 2
1 Solution
Seth SimmonsSr. Systems AdministratorCommented:
a second 2008 R2 domain controller?  you only need to run adprep once to extend the schema; beyond that just run dcpromo on additional domain controllers

you only need to run adprep again if you install a 2012 server

if that's not the case in your environment please clarify
What is the current schema version of your AD? You can check this by running from cmd (replace "dc=mydomain,dc=local" with your actual AD domain):
dsquery * cn=schema,cn=configuration,dc=mydomain,dc=local -scope base -attr objectVersion

Open in new window

rusb2dAuthor Commented:
Currently there's a single DC (win 2008 R2) Schema ver 47.

Sounds like since I'm adding the same flavor of machine (Win 2008 R2) as the 2nd DC, I won't have to run adprep at all , just DCpromo and call it a day.

Sounds to easy. I got a be missing something right?

I just wanna do this as gracefully as possible.
Seth SimmonsSr. Systems AdministratorCommented:
no, you are correct

as i mentioned, adprep is only done once when a domain controller for a newer version of windows is introduced
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now