Wednesday, 18 March 2015

Unattended Installation of Exchange Server 2010

After we install any server roles, we can’t use the Exchange setup wizard to add any additional server roles on the same computer. Either use Add/Remove programs from the Control Panel or use setup.com command line utility to install additional roles.
Before you run the Setup command for installing Exchange roles, you have to prepare the Active Directory for Exchange Server 2010 by running the following commands:-
  • setup.com /PrepareExchangeLegacyPermissions
  • setup.com /PrepareSchema
  • setup.com /PrepareAD /OrganizationName:<> (this switch can be omitted when upgrading from Exchange 2003 or Exchange 2007)
  • setup.com /PrepareDomain
Use below command line parameters for installing Exchange Server 2010:-
Setup.com [/mode:<setup mode>] [/role:<server roles to install>] [/InstallWindowsComponents] [/OrganizationName:<name for the new Exchange organization>] [/TargetDir:<target directory>] [/SourceDir:<source directory>][/UpdatesDir:<directory from which to install updates>] [/DomainController:<FQDN of domain controller>] [/AnswerFile:<filename>] [/DoNotStartTransport] [/EnableLegacyOutlook] [/LegacyRoutingServer] [/EnableErrorReporting] [/NoSelfSignedCertificates] [/AdamLdapPort:<port>] [/AdamSslPort:<port>] [/LanguagePack:<language pack bundle>] [/AddUmLanguagePack:<UM language pack name>] [/RemoveUmLanguagePack:<UM language pack name>] [/NewProvisionedServer:<server>] [/RemoveProvisionedServer:<server>] [/ExternalCASServerDomain:<domain>] [/MdbName:<mailbox database name>] [/DbFilePath:<Edb file path>] [/LogFolderPath:<log folder path>] [/Upgrade] [/Hosting]

/mode- can be Install, Uninstall, Upgrade, RecoverServer
 /role- can be    
ClientAccess (or CA, or C)
                                 EdgeTransport (or ET, or E)
                                HubTransport (or HT, or H)
                                Mailbox  (or MB, or M)
                                UnifiedMessaging (or UM, or U)
                                ManagementTools (or MT, or T)

Example-
Run the below command to install Exchange 2010 Hub Transport and Client Access role, and will automatically install updates that are stored in the \ExchangeUpdates shared folder with Language Pack and Internet accessible CAS server name, as webmail.yourdomain.com.

setup.com /mode:install /role:CA,HT /UpdatesDir:\\share\ExchangeUpdates /LanguagePack:\\share\ExchangeLanguagePack\LanguagePackBundle.exe /ExternalCASServerDomain:webmail.yourdomain.com

No comments:

Post a Comment