command-line installer is one of the ways to perform an unattended install with exchange 2010.
Navigating to setup directory on CD and typing:
setup.com /? will show a list of all of the setup options parameters.
If we wish to install Mailbox server and client access roles,we can use the following command:
setup.com /mode:install /roles:Mailbox,client access /OrganizationName:YourOrganizationName
Any error occur will stop the unattended installer until all errors corrected.
There is also a posibility to use answer file as follow :
setup.com /mode:install /roles:RolesWeWantToDeploy /AnswerFile:MyExchangeFile.txt