A. Microsoft has a great site that lists the commands to run to prepare Windows Server 2008 and Server 2008 R2 for the various Exchange configurations. Simply copy the commands listed for your desired Exchange configuration and you can then install Exchange 2010.

For example, say you want to install the mailbox, hub, and CAS roles on a Server 2008 R2 server. Run the command below in PowerShell to install all required roles and features.

                              Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,                              Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,                              WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,                              Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart                              

The site also lists the requirements to install the Exchange 2010 administration tools on Windows 7 and Windows Vista.

Related Reading:

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.