Solved

adprep.exe is not a valid Win32 application

Posted on 2015-01-08
7
428 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 57

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 79

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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 57

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 33

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
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…

770 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