Solved

adprep.exe is not a valid Win32 application

Posted on 2015-01-08
7
398 Views
Last Modified: 2015-01-09
Hello,
We upgrading 2003 DCs to 2012 DCs. I was getting this error when running adprep from 2k3 DC server:
adprep.exe is not a valid Win32 application. All our DCs are 2003 servers

I was using 2012 DVD. Anyway, I found a workaround to run adprep on member server which is 2008 R2 and it worked!!! I am wondering if I need to run adprep /domainprep /gpprep on the Infrustructure master?? MS says that you have to but it also says that you have to run forestprep on the schema master and I didn’t have to run on the schema master as long as server was on the same domain as schema master.

Please advise if I can run adprep /domainprep /gpprep on the member 2008 server in the same domain that is NOT an infrastructure master.

Otherwise please let me know how to make this error disappear.
0
Comment
Question by:creative555
7 Comments
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 40539198
Just run the wizard for ADDS in server manager after installing the role. It will detect all schema versions, contact the right servers, and upgrade them as requires. Manually running adprep is not required at all in 2012. Letting the wizard decide which server(s)to contact and run against against is safer and easier. It'd have avoided the 32 bit adprep issue that you already worked around as well.
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40539325
adprep.exe is a 64bit applicaiton, you need to run adprep32.exe
0
 
LVL 3

Expert Comment

by:kola12
ID: 40539562
You should run adprep32.exe for 32 bit environment.
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 56

Accepted Solution

by:
Cliff Galiher earned 500 total points
ID: 40539702
Adprep32.exe does not exist on 2012 media and has officially been deprecated. That is documented here:

http://technet.microsoft.com/en-us/library/hh994618.aspx#BKMK_DeprecatedFeatures

Advising to run it for a 2012 upgrade is not a good idea.
0
 

Author Comment

by:creative555
ID: 40540521
I absolutely agreee with Cliff regarding adprep32. besides it doesn't even work. I ran 64 bit ADPrep from just member server and confirm that everything worked and was updated. thanks so much for confirming it! So, we dont need to run it from schema master or infrastructure master, just as long as the server 2008 or higher.
0
 
LVL 32

Expert Comment

by:it_saige
ID: 40540661
@creative555 - As I told you in your other question.  You can add the Active Directory Domain Services role to the 2012 server, run the wizard and you have no fuss, no muss.  If you ran ADPREP on your 2008 server from the 2008 media, you will not be at the correct level for a Windows Server 2012 domain controller.  Read what Cliff told you earlier:
Just run the wizard for ADDS in server manager after installing the role. It will detect all schema versions, contact the right servers, and upgrade them as requires. Manually running adprep is not required at all in 2012.
And what Cliff told you just now.
Adprep32.exe does not exist on 2012 media and has officially been deprecated.
This means that you do not manually run ADPREP when you add a 2012 Domain Controller (the process of promoting a domain controller, does this for you automatically).

However, if you are adding a 2008/2008R2 Domain Controller, and have the incorrect schema version, then you do *need* to manually run ADPREP as instructed by Microsoft.

As I posted in your other question, to verify your schema version, from powershell run the following command:
Get-ADObject (Get-ADRootDSE).schemaNamingContext -Property objectVersion

Open in new window

You can validate your schema version against this list of versions:

69 = Windows Server 2012 R2
56 = Windows Server 2012
47 = Windows Server 2008 R2
44 = Windows Server 2008
31 = Windows Server 2003 R2
30 = Windows Server 2003
13 = Windows 2000

-saige-
0
 

Author Closing Comment

by:creative555
ID: 40540833
THank you so much! Great Answer
0

Featured Post

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Join & Write a Comment

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now