We have discussed previously about installing the prerequisites for Exchange 2013 Release Preview on Server 2008R2SP1 and Server 2012 RC, now we will discuss preparing Active Directory and the Schema within your lab for Exchange 2013 Release Preview. Before we can actually install any version of Exchange into an organization, we need to prep both the Active Directory along with the schema.
When preparing the Active Directory we need to keep the following in mind:
There are two locations in each domain that you can run the Setup.exe /Prepare* cmd from:
Also to prepare the Active Directory Schema and Domain, the account used to run the /Prepare* cmd will need to have the following permissions:
Preparing a member server running Windows Server 2008 / 2008 R2 to prepare AD:
Before being we need to install the following two packages:
Once we have both of these packages installed we will need to install the Remote Tools Admin Pack for Active Directory – Directory services. To do this:
1) Open an admin session of powershell (if you are logged in as an Admin, all you will have to do is right click the powershell icon and select “Run As Administrator”. If you are not logged in as a administrator you will need to do the same but provide credentials)
2) Run Add-WindowsFeature RSAT-ADDS
3) Allow the server to reboot
Once we have this done, we can move on to preparing the Active Directory Schema and Domain
Preparing a member server running Windows Server 2012 to prepare AD:
When you install Windows Server 2012, you automatically install Microsoft .NET Framework 4.0 along with Windows Management Framework 3.0. All you will need to do is install the Remote Tools Admin Pack for Active Directory – Directory Services:
1) Open an admin session of PowerShell (if you are logged in as an Admin, all you will have to do is right click the PowerShell icon and select “Run As Administrator”. If you are not logged in as a administrator you will need to do the same but provide credentials)
2) Run Install-WindowsFeature RSAT-ADDS
Preparing the Schema for Exchange 2013 Release Preview:
NOTE: Within the Exchange 2013 Release Preview, you are not able to perform coexistence with Exchange 2007 or Exchange 2010. Exchange 2013 Release Preview is also not recommended or supportable within a production environment. We recommend installing this within a test lab only that will not affect your production systems.
When you prepare the schema within your Active Directory Domain, a few things happen. Here are some of the key items:
To prepare the schema, it is pretty easy:
1) Extract the .EXE package you have downloaded from TechNet to a common location. In my example I will use C:\EXCHANGE
2) Open a cmd prompt as an Administrator, and navigate to the directory in which you extracted the files to. In the case of this example it will be C:\Exchange. You should see a Setup.exe file located there.
3) Run the following cmd:
4) Allow this to run, it should look something similar to this when completed:
Now you might be asking “What are these license terms and conditions that I am agreeing to?” It’s a bunch of legal stuff, but they could be found here if you want to read through it.
We should confirm that the schema has replicated across all writable domain controllers and global catalog servers within the domain. You can use the repadmin /showrepl to ensure that replication has completed successfully.
Preparing Active Directory for Exchange 2013 Release Preview:
Now that the Schema prep has been ran and replicated to all writable domain controllers within the domain, we are ready to prepare the Active Directory topology. When we run Setup.exe /PrepareAD or Setup.exe /PAD there are quite a few changes occur within the domain.
Here are some examples of the additions the Setup.exe file will add to the Active Directory configuration to ensure Exchange Server 2013 Release Preview works properly:
Here is how you would prepare Active Directory:
1) Open a cmd prompt as an Administrator, and navigate to the directory in which you extracted the files to. In the case of this example it will be C:\Exchange. You should see a Setup.exe file located there.
2) Run the following cmd:
3) Allow this to run, it should look something similar to this when completed:
As for the OrganizationName attribute, this would be the name of the new Exchange 2013 Organization. As we did for the Schema extension we will need to check to ensure that replication worked properly. This can be done by using the repadmin /showrepl cmd to ensure that the AD objects, security permissions and schema attributes added have replicated to the all writeable domain controllers.
How do we know we are successful?
So the key question I always hear is “I ran these steps, and everything showed completed.. but how do I know I am done and it actually worked”?
You can do the following as pointed out on TechNet:
You can also check the Exchange Setup Logs, which are located at C:\ExchangeSetupLogs. The log you will want to look for is ExchangeSetup. This log will show you all actions that the Setup.exe executable ran against both the Active Directory Configuration and Schema, and show any errors within these steps.
As always, if you have any issues please feel free to shoot me a comment below.
Hi I am trying to update schema for 2010 I have 2 domain root.local and childdomain.com I have to update schema on on site which has schema master I have exchange2010-sp2.exe file and when I copy the file to my C:\drive and then use switches /prepareschema and /preparedomain it doest recognize can you tell if I there is any location where I can get iso file so that I can use setup.com instead of setup.exe
Are there any special instructions to prepare a locked down AD where inheritance is blocked on certain OUs?
When I try and prepare the AD which is running on Server 2008 Standard I get the following error:
An unsupported operating system was detected. Exchange Server 2013 Client Access
and Mailbox Server roles support Windows Server 2008 R2 SP1 or later and Window
s Server 2012.
Mike, you'll have to install Service Pack 1. Right click on My Computer and chooser properties. If you don't see SP1 there, you aren't going to be able to install it there. Kevine, I've had trouble with the switches being case sensitive. Also, that .exe file isn't going to do it for you, odds are you'll have to extract that somewhere. You'll basically need to make sure you have a folder structure of the Exchange Files you can browse out to so you can run the command
C:\ Setup.exe /PrepareAD
Also, here's a list of more installation switches and how to properly use them: