/Install-Exchange15

Primary LanguagePowerShellMIT LicenseMIT

Install-Exchange15

Getting Started

This script can install Exchange 2013/2016 prerequisites, optionally create the Exchange organization (prepares Active Directory) and installs Exchange Server. When the AutoPilot switch is specified, it will do all the required rebooting and automatic logging on using provided credentials.

To keep track of provided parameters and state, it uses an XML file; if this file is present, this information will be used to resume the process. Note that you can use a central location for Install (UNC path with proper permissions) to re-use additional downloads.

Requirements

  • Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016 (Exchange 2016 CU3+ only), or Windows Server 2019 Preview (Desktop or Core, for Exchange 2019 Preview)
  • Domain-joined system. (Except for Edge)
  • "AutoPilot" mode requires account with elevated administrator privileges.
  • When you let the script prepare AD, the account needs proper permissions.

Usage

Syntax: Install-Exchange15.ps1 -[InstallCAS|InstallMailbox|InstallMultiRole|InstallEDGE|Recover|NoSetup] -SourcePath [-Organization ] [-MDBName ] [-MDBDBPath ] [-MDBLogPath ] [-InstallPath ] [-TargetPath ] [-AutoPilot] [-Credentials ] [-IncludeFixes] [-SCP] [-UseWMF3] [-DisableSSL3] [-Lock] [-SkipRolesCheck] [-EdgeDNSSuffix]

Examples:

$Cred=Get-Credential
.\Install-Exchange15.ps1 -Organization Fabrikam -InstallMailbox -MDBDBPath C:\MailboxData\MDB1\DB -MDBLogPath C:\MailboxData\MDB1\Log -MDBName MDB1 -InstallPath C:\Install -AutoPilot -Credentials $Cred -SourcePath '\\server\share\Exchange 2013\mu_exchange_server_2013_x64_dvd_1112105' -SCP https://autodiscover.fabrikam.com/autodiscover/autodiscover.xml -Verbose

Perform an installation, creating Exchange organization Fabrikam (if it not already exists), using the specified name and location for the initial mailbox database, using provided credentials and sources at provided location. After setup, alter the SCP value for this server.

.\Install-Exchange15.ps1 -Recover -Autopilot -Install -AutoPilot -SourcePath \\server1\sources\ex2016cu2

Perform a recovery installation.

About

For more information on this script, as well as usage and examples, see the related blog article, Exchange v15 Unattended Setup.

License

This project is licensed under the MIT License - see the LICENSE.md for details.