IT tutorials
 
Applications Server
 

Installing Exchange Server 2010 : Command-Line Setup (part 1) - Command-Line Installation Options

11/10/2014 3:57:58 AM
- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire

The Exchange Server 2010 Setup program includes a powerful set of command-line options that can help you completely automate an Exchange server setup or perform custom setup options that you could not do through the GUI. The command-line setup options are broken into seven categories of setup:

  • Installing Exchange server roles

  • Removing Exchange server roles

  • Recovering an existing Exchange server

  • Preparing the Active Directory to support Exchange

  • Creating delegated or pre-provisioned servers

  • Adding or removing Unified Messaging language packs

  • Adding or removing Exchange language packs

All of these options are used by running the setup.com program, not setup.exe.

The Usefulness of Command Line Installations

A lot of Exchange Administrators wonder why the command line setup options even exist since the graphical user interface is so easy to use and has most of the same options. Consider the case of organization JCE that is installing 30 Mailbox servers, 18 Client Access servers, and 12 Hub Transport servers.

Due to their organization's requirements for certifying a production IT system, all server builds have to be thoroughly documented prior to being deployed. By generating the installation scripts ahead of time, their Exchange team can ensure that each server is built exactly to the design specifications and with the necessary options. This speeds up the overall installation and ensures that nothing is overlooked.


1. Command-Line Installation Options

By and large, the server role installation options are probably the most useful for a typical person installing or configuring Exchange. They are certainly the most numerous. If you use some of these setup.com options, they will have some required parameters. For example, if you use the /mode:install option, you will also have to specify which server role or roles you are installing. Table 1 lists the installation options.

Abbreviations and Shortcuts

Most of the command-line switches and options have a long and short option. For example, the following two commands accomplish exactly the same thing (installing the Mailbox role):

  • setup /m:install /r:m

  • setup /m:install /r:mb

  • setup /m:install /r:Mailbox

We have chosen to spell out the options completely to more clearly illustrate the commands and in the hope that you will remember them more easily. However, once you learn the long version of the options, you will probably find it easier to use the shorter versions. They are just a bit cryptic when you are learning.


Table 1. Exchange Server 2010 Installation Options
OptionOptional (O) or Required (R)Explanation
/mode or /mRSpecifies whether the Setup program is installing a new role or removing it. Valid options are:

/mode:install

/mode:uninstall

/mode:upgrade
/roles or /rRSpecifies which roles are being installed. Valid role types are:

Client Access, CA, C

Edge Transport, ET, E

Hub Transport, HT, E

Mailbox, MB, M

ManagementTools, MT, T

Unified Messaging, UM, U
/OrganizationNameOAllows you to specify an organization name; this is only necessary if this is the first server being installed in the Active Directory forest and the /PrepareAD step has not previously been done.
/TargetDirOAllows you to specify an optional path for the Exchange program files rather than the default location on the C:\ drive.
/SourceDirOSpecifies the location for the Exchange installation files.
/UpdatesDirOSpecifies a path to look for updates from after the installation is completed.
/DomainControllerOAllows you to specify the NetBIOS name or the FQDN of a domain controller.
/AnswerFileOAllows you to specify a text file that contains answers to some of the advanced setup parameters.
/DoNotStartTransportOTells Setup to not allow the transport service on a Hub Transport or Edge Transport server.
/EnableLegacyOutlookOTells Setup to create a public folder tree and public folder database on a mailbox. This is only valid for the first Mailbox server role that is being installed in a new organization.
/LegacyRoutingServerOTells Setup to create a routing group connection to an Exchange 2003 bridgehead server. This option is only valid for the first Hub Transport server that is being installed in an Exchange 2010 organization.
/EnableErrorReporting Configures Exchange Server to report errors automatically to Microsoft. All server roles can use this option. The default is not to enable this feature.
/CustomerFeedbackEnabledOConfigures Exchange Server to report usage information to Microsoft automatically. All server roles can use this information. This is used with the /Industry switch.
/MdbnameOSpecifies the name of the default mailbox database when installing a Mailbox server.
/DbFilePathOSpecifies the path and name to the default database file. This is used in conjunction with the /Mdbname and the /LogFolderPath switches.
/LogFolderPathOSpecifies the path for the log files for the default database when installing a Mailbox server role.
/ExternalCASServerDomainOAllows to you to specify the external URL that will be used by Internet clients accessing the Client Access server. This is only used for Client Access servers.
/NoSelfSignedCertificatesOInstructs Setup not to create self-signed certificates for the Client Access or Unified Messaging server roles.
/AdamLdapPortOSpecifies the LDAP port number to be configured for an Edge Transport server's ADAM database.
/AdamSslPortOSpecifies the LDAPS port number to be configured for an Edge Transport server's ADAM database.


 
Others
 
- Installing Exchange Server 2010 : Graphical User Interface Setup
- Installing Exchange Server 2010 : Preparing for Exchange 2010 Ahead of Time (part 2) - Preparing the Active Directory Forest,Preparing Additional Domains
- Installing Exchange Server 2010 : Preparing for Exchange 2010 Ahead of Time (part 1) - Existing Exchange Organizations , Preparing the Schema
- Securing an Exchange Server 2007 Environment : Securing Outlook Web Access
- Securing an Exchange Server 2007 Environment : Protecting Against Spam (part 2) - Filtering Junk Mail
- Securing an Exchange Server 2007 Environment : Protecting Against Spam (part 2) - Filtering Junk Mail
- Securing an Exchange Server 2007 Environment : Protecting Against Spam (part 1) - Protecting Against Web Beaconing
- Securing an Exchange Server 2007 Environment : Securing Outlook 2007 (part 2) - Encrypting Communications Between Outlook and Exchange , Blocking Attachments
- Securing an Exchange Server 2007 Environment : Securing Outlook 2007 (part 1) - Outlook Anywhere
- Securing an Exchange Server 2007 Environment : Securing Your Windows Environment (part 3) - Keeping Up with Security Patches and Updates
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
programming4us programming4us
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS