/ActiveDirectorySplitPermissions:<TrueOrFalse> |
True or False |
False |
/Mode:Install /Roles:Mailbox or /PrepareAD commands for the first Exchange server in the organization. |
Specifies the Active Directory split permissions model when preparing Active Directory. For more information, see the "Active Directory split permissions" section in Understanding split permissions. |
/AdamLdapPort:<TCPPortNumber> |
A valid TCP port number |
50389 |
/Mode:Install /Roles:EdgeTransport commands |
Specifies a custom LDAP port to use for the Active Directory Lightweight Directory Services (AD LDS) instance on Edge Transport servers. The value is stored in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v15\EdgeTransportRole\AdamSettings\MSExchange\LdapPort . |
/AdamSslPort:<TCPPortNumber> |
A valid TCP port number |
50636 |
/Mode:Install /Roles:EdgeTransport commands |
Specifies a custom SSL (TLS) port to use for the AD LDS instance on Edge Transport servers. The value is stored in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v15\EdgeTransportRole\AdamSettings\MSExchange\SslPort . |
/AnswerFile:"<PathAndFileName>" (or af:"<PathAndFileName>") |
The name and location of a text file (for example,"D:\Server data\answer.txt"). |
n/a |
/Mode:Install /Roles:Mailbox or /Mode:Install /Roles:EdgeTransport commands |
Use this switch to create a text file that you can use to install Exchange on multiple computers with the same settings. You can use the following switches in the answer file: AdamLdapPort, AdamSslPort, CustomerFeedbackEnabled, DbFilePath, DisableAMFiltering, DoNotStartTransport, EnableErrorReporting, IAcceptExchangeServerLicenseTerms, LogFolderPath, Mdbname, OrganizationName, TenantOrganizationConfig, and UpdatesDir. Don't use the forward slash character ( / ) with the switches in the answer file. Put each switch or switch/value pair on one line in the file. |
/CustomerFeedbackEnabled:<TrueOrFalse> |
True or False |
False |
/Mode:Install and /PrepareAD commands |
Specifies whether to allow or prevent Exchange from providing usage feedback to Microsoft to help improve future Exchange features. You can enable or disable error reporting on the server after setup is complete by using the ErrorReportingEnabled parameter on the Set-ExchangeServer cmdlet. |
/DoNotEnableEP |
n/a |
n/a |
/Mode:Install and /Mode:Upgrade |
Can be used to skip enabling Extended Protection during Exchange Server setup. The parameter is available with Exchange Server 2019 CU14 (or later) and can be used on Exchange Server 2019 Mailbox server. |
/DoNotEnableEP_FEEWS |
n/a |
n/a |
/Mode:Install and /Mode:Upgrade |
Can be used to skip enabling Extended Protection on the Front-End EWS virtual directory. The parameter is available with Exchange Server 2019 CU14 (or later) and should only be used on Exchange Servers, which are published via Hybrid Agent. It can only be used on Exchange Server 2019 Mailbox server. |
/DbFilePath:"<Path>\<FileName>.edb" |
A folder path and an .edb filename (for example, "D:\Exchange Database Files\DB01\db01.edb"). |
%ExchangeInstallPath%Mailbox\<DatabaseName>\<DatabaseName>.edb where: - <DatabaseName> is Mailbox Database <10DigitNumber> that matches the default name of the database or the value you specified with the /MdbName switch (without the .edb file name extension).
- %ExchangeInstallPath% is %ProgramFiles%\Microsoft\Exchange Server\V15\ or the location you specified with the /TargetDir switch.
|
/Mode:Install /Roles:Mailbox commands |
Specifies the location of the first mailbox database that's created on the new Mailbox server. You can specify the name of the database file with the /MdbName switch and the location of the database transaction log files with the /LogFolderPath switch. |
/DisableAMFiltering |
n/a |
n/a |
/Mode:Install /Roles:Mailbox commands |
Disables the built-in Exchange antimalware filtering on Mailbox servers. For more information about antimalware filtering, see Antimalware protection in Exchange Server. |
/DomainController:<ServerNameOrFQDN> (or /dc:<ServerNameOrFQDN>) |
The server name (for example, DC01) or FQDN (for example, dc01.contoso.com) of the domain controller. |
A randomly selected domain controller in the same Active Directory site as the target server where you're running Setup. |
All /Mode commands (except when you're installing an Edge Transport server) or /PrepareAD, /PrepareSchema, /PrepareDomain and /PrepareAllDomains commands |
Specifies the domain controller that Exchange Setup uses to read from and write to Active Directory. The domain controller must meet the minimum requirements for Exchange 2016 or Exchange 2019. If you use this switch in /PrepareSchema or /PrepareAD commands that extend the Active Directory schema for Exchange, you must specify the schema master; otherwise, you'll get an error. |
/DoNotStartTransport |
n/a |
n/a |
/Mode:Install /Roles:Mailbox , /Mode:Install /Roles:EdgeTransport , and /Mode:RecoverServer commands. |
Tells Setup to not start the Microsoft Exchange Transport service (mail flow) on Mailbox servers or Edge Transport servers after Setup is complete. You can use this switch to configure additional settings before the server accepts email messages (for example, configure antispam agents or move the queue database back onto a recovered Exchange server.) |
/EnableErrorReporting |
n/a |
Disabled |
/Mode:Install , /Mode:Upgrade , and /Mode:RecoverServer commands |
Specifies whether to allow Exchange to automatically check online for solutions to errors that it encounters. You can enable or disable error reporting on the server after setup is complete by using the ErrorReportingEnabled parameter on the Set-ExchangeServer cmdlet. |
/InstallWindowsComponents |
n/a |
n/a |
/Mode:Install commands |
Installs the required Windows roles and features for the specified Exchange server role. If a reboot is required, Setup will resume where the installation ended. |
/LogFolderPath:"<Path>" |
A folder path (for example, "E:\Exchange Database Logs"). |
%ExchangeInstallPath%Mailbox\<DatabaseName> where: - <DatabaseName> is Mailbox Database <10DigitNumber> that matches the default name of the database or the value you specified with the /MdbName switch (without the .edb file name extension).
- %ExchangeInstallPath% is %ProgramFiles%\Microsoft\Exchange Server\V15\ or the location you specified with the /TargetDir switch.
|
/Mode:Install /Roles:Mailbox commands |
Specifies the location of the transaction log files for the first mailbox database that's created on the new Mailbox server. You can specify the location of the database files with the /DbFilePath switch. |
/MdbName:"<FileName>" |
A database filename without the .edb extension (for example, "db01") |
Mailbox Database <10DigitNumber> (for example, Mailbox Database 0139595516). |
/Mode:Install /Roles:Mailbox commands |
Specifies the name of the first mailbox database that's created on the new Mailbox server. You can specify the location of the database files with the /DbFilePath switch. |
/OrganizationName:"<Organization Name>" (or /on:"<Organization Name>") |
A text string (for example, "Contoso Corporation"). |
Blank in command line setup; First Organization in the Exchange Setup wizard. |
/Mode:Install /Roles:Mailbox or /PrepareAD commands for the first Exchange server in the organization. |
The organization name is used internally by Exchange, isn't typically seen by users, doesn't affect the functionality of Exchange, and doesn't determine what you can use for email addresses. - The organization name can't contain more than 64 characters, and can't be blank.
- Valid characters are A to Z, a to z, 0 to 9, hyphen or dash (-), and space, but leading or trailing spaces aren't allowed.
- You can't change the organization name after it's set.
|
/SourceDir:"<Path>" (or /s:"<Path>") |
A folder path (for example, "Z:\Exchange). |
The ServerRoles\UnifiedMessaging folder on the Exchange installation media. |
/AddUmLanguagePack commands in Exchange 2016 (not available in Exchange 2019) |
Specifies the location of the language packs (UMLanguagePack.<Culture>.exe files) to install on existing Exchange 2016 Mailbox servers. |
/TargetDir:"<Path>" (or /t:"<Path>") |
A folder path (for example, "D:\Program Files\Microsoft\Exchange"). |
%ProgramFiles%\Microsoft\Exchange Server\V15\ |
/Mode:Install and /Mode:RecoverServer commands |
Specifies where to install Exchange on the server. You can't install Exchange in the root of a drive (for example, C:\), or on a ROM drive, RAM disk, network drive, removable disk, or unknown drive type. When you recover a failed Exchange server that was installed using a custom installation path, you need to use this switch to specify the custom path during the recovery. |
/TenantOrganizationConfig:"<Path>" |
A folder path (for example "C:\Data") |
n/a |
/Mode:Install or /PrepareAD commands. |
Required in hybrid deployments between on-premises organizations and Microsoft 365 or Office 365 to specify the location of the text file that contains the configuration information for your Microsoft 365 or Office 365 organization. You create this file by running the Get-OrganizationConfig cmdlet in Exchange Online PowerShell in your Microsoft 365 or Office 365 organization. |
/UpdatesDir:"<Path>" (or /u:"<Path>") |
A folder path (for example, "D:\Downloads\Exchange Updates"). |
The Updates folder at the root of the Exchange installation media. |
/Mode:Install , /Mode:Upgrade , /Mode:RecoverServer , and /AddUmLanguagePack commands. |
Specifies the source location of updates for Setup to install. You can only specify one folder for updates. Any UM language packs located in this folder will be automatically installed on the target Exchange 2016 Mailbox server. |