Preparing Active Directory and Schema for Exchange

Exchange 2010

Run this in the command prompt of a forest root domain server :

D:\>setup /ps

Welcome to Microsoft Exchange Server 2010 Unattended Setup
Setup will continue momentarily, unless you press any key and cancel the
 installation. By continuing the installation process, you agree to the license
 terms of Microsoft Exchange Server 2010.
 If you don't accept these license terms, please cancel the installation. To
 review the license terms, please go to
 http://go.microsoft.com/fwlink/?LinkId=150127&clcid=0x409/
Press any key to cancel setup................
 No key presses were detected. Setup will continue.
 Preparing Exchange Setup
Copying Setup Files COMPLETED
No server roles will be installed
Performing Microsoft Exchange Server Prerequisite Check
Organization Checks COMPLETED
Configuring Microsoft Exchange Server
Extending Active Directory schema COMPLETED
The Microsoft Exchange Server setup operation completed successfully.

D:\>setup /PrepareAD /OrganizationName:YourOrgHere

Welcome to Microsoft Exchange Server 2010 Unattended Setup
Setup will continue momentarily, unless you press any key and cancel the
 installation. By continuing the installation process, you agree to the license
 terms of Microsoft Exchange Server 2010.
 If you don't accept these license terms, please cancel the installation. To
 review the license terms, please go to
 http://go.microsoft.com/fwlink/?LinkId=150127&clcid=0x409/
Press any key to cancel setup................
 No key presses were detected. Setup will continue.
 Preparing Exchange Setup
Copying Setup Files COMPLETED
No server roles will be installed
Performing Microsoft Exchange Server Prerequisite Check
Organization Checks COMPLETED
 Setup is going to prepare the organization for Exchange 2010 by using 'Setup /P
 repareAD'. No Exchange 2007 server roles have been detected in this topology. Af
 ter this operation, you will not be able to install any Exchange 2003 or Exchang
 e 2007 servers.
Configuring Microsoft Exchange Server
Organization Preparation COMPLETED
The Microsoft Exchange Server setup operation completed successfully.

Run this in the command prompt of a DC that is in the same domain as the exchange server : 

D:\>setup /pd

Welcome to Microsoft Exchange Server 2010 Unattended Setup
Setup will continue momentarily, unless you press any key and cancel the
 installation. By continuing the installation process, you agree to the license
 terms of Microsoft Exchange Server 2010.
 If you don't accept these license terms, please cancel the installation. To
 review the license terms, please go to
 http://go.microsoft.com/fwlink/?LinkId=150127&clcid=0x409/
Press any key to cancel setup................
 No key presses were detected. Setup will continue.
 Preparing Exchange Setup
Copying Setup Files COMPLETED
No server roles will be installed
Performing Microsoft Exchange Server Prerequisite Check
Organization Checks COMPLETED
Configuring Microsoft Exchange Server
Prepare Domain Progress COMPLETED
The Microsoft Exchange Server setup operation completed successfully.

 

 

Exchange 2013

http://blogs.technet.com/b/theexchangeguy/archive/2012/08/24/preparing-active-directory-and-schema-for-exchange-2013-release-preview.aspx