Pages

10 April 2018

Install Exchange 2013 CU's from an elevated command prompt or elevated PowerShell

Most commonly used:

Prepare Schema:
.\Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

Prepare All Domains:
.\Setup.exe /PrepareAllDdomains /IAcceptExchangeServerLicenseTerms

Prepare Domain:
.\Setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms

run setup /?

.\Setup.exe /PrepareDomain:Domain.ads /IAcceptExchangeServerLicenseTerms

.\Setup.exe /Mode:Upgrade /IAcceptExchangeServerLicenseTerms

The last Exchange setup files are always available in the following location:
C:\Program Files\Microsoft\Exchange Server\V15\Bin

From that location run: Setup.exe /?

Microsoft Exchange Server 2013 Cumulative Update 19 Unattended Setup


For detailed help, type one of the following options:

  Setup /help:Install         - Install Exchange server roles.
  Setup /help:Upgrade         - Upgrade an existing Exchange server.
  Setup /help:Uninstall       - Uninstall Exchange server roles.
  Setup /help:RecoverServer   - Recover an existing Exchange server.
  Setup /help:PrepareTopology - Prepare your topology for Exchange.
  Setup /help:Delegation      - Delegate server installations.
  Setup /help:UmLanguagePacks - Add or remove Unified Messaging
                                language packs.

To read the Exchange Server license terms,
see http://go.microsoft.com/fwlink/p/?LinkId=150127.

setup /help:install


C:\Program Files\Microsoft\Exchange Server\V15\Bin>Setup /help:Install

Microsoft Exchange Server 2013 Cumulative Update 19 Unattended Setup


Microsoft Exchange Server 2013 Setup Parameter Help

Exchange Server Installation Usage:

    Setup /Mode:Install /Roles:<roles to install> [<OptionalParameters>]
      /IAcceptExchangeServerLicenseTerms
    Setup /Mode:Uninstall
      /IAcceptExchangeServerLicenseTerms
    Setup /Mode:Upgrade /IAcceptExchangeServerLicenseTerms

--Exchange Server Installation Required Parameters--

/Mode:<installation mode>, /m:<installation mode>
    Specifies the operation to perform:
        . Install:    (Default)--Installs one or more server roles.
        . Uninstall:  Removes all installed server roles.
        . Upgrade:    Installs a service pack.

/Roles:<role 1, role 2>, /Role:<role>, /r:<role>
    The following are the valid server roles:
        . ClientAccess, ca
        . Mailbox, mb
        . EdgeTransport, et
        . ManagementTools, mt, t

    * This parameter can't be used when the /Mode parameter
    is set to Uninstall or Upgrade.

/IAcceptExchangeServerLicenseTerms
    This parameter is required to accept Exchange Server license terms
    and must be included every time the setup command is run.

--Exchange Server Installation Optional Parameters--

[/DisableAMFiltering]
    Disables Exchange Server anti-malware functionality.

[/DomainController:<NetBIOS or FQDN>, /dc:<NetBIOS> or FQDN>]
    Specifies the domain controller that Setup will use to read
    and write to Active Directory.

[/InstallWindowsComponents]
    Installs required Windows Server roles and features.

[/OrganizationName:<organization name>, /on:<organization name>]
    Specifies the name of the Exchange organization. The name can't be
    longer than 64 characters. If the name has spaces, enclose it in
    quotes.
    Valid characters: A-Z, a-z, 0-9, space (not leading or trailing),
    hyphen, dash.

    * This parameter is required if you're installing the first
    Exchange server in an organization.

[/TargetDir:<path>, /t:<path>]
    Specifies the location to install Exchange Server 2013 files.
    Default: "%ProgramFiles%\Microsoft\Exchange Server\V15"

[/UpdatesDir:<path>, /u:<path>]
    Updates from the specified directory will be installed during
    setup.

[/?]
    Displays help for setup.

--Exchange Server Installation Advanced Optional Parameters--

[/ActiveDirectorySplitPermissions:<True | False>]
    Enable Active Directory split permissions mode when preparing
    the Exchange organization.
    The value can be true or false.

[/AnswerFile:<path>, /af:<path>]
    Specifies the location of an answer file that contains advanced
    parameters for setup.
    For details, see http://go.microsoft.com/fwlink/p/?LinkId=254454.

[/CustomerFeedbackEnabled:<True | False>]
    Specify whether to participate in Customer Experience Improvement
    Program.
    The value can be True or False.

[/DbFilePath:<path>]
    Specify the full path to the mailbox database file when
    the Mailbox server role is installed.
    Role: Mailbox

[/DoNotStartTransport]
    Microsoft Exchange Transport service will not be started during
    setup when this parameter is specified.
    Role: Mailbox

    Remarks: This parameter can only be specified during the first
    Exchange 2013 Mailbox server installation in an organization.

[/EnableErrorReporting]
    Enables the Exchange server to automatically submit critical
    error reports. Microsoft uses this information to diagnose
    problems and provide solutions.

[/LogFolderPath:<path>]
    Specify the folder path to the directory where the mailbox database
    database logs should be placed when the Mailbox server role is
    installed.
    Role: Mailbox

[/MdbName:<MDB name>]
    Specify the default database name that is created when the
    Mailbox server role is installed.
    Role: Mailbox

[/TenantOrganizationConfig:<path>]
    Specifies the path to the file that contains the organization
    configuration of your Office 365 tenant. This file is created by
    running the Get-OrganizationConfig cmdlet in your Office 365
    tenant. For more information, see
    http://go.microsoft.com/fwlink/?LinkId=262888.

Setup /help:Upgrade


Microsoft Exchange Server 2013 Cumulative Update 19 Unattended Setup


Microsoft Exchange Server Setup Parameter Help

Upgrade Exchange Server Usage:

    Setup /Mode:Upgrade [OptionalParameters]
      /IAcceptExchangeServerLicenseTerms

--Upgrade Exchange Server Required Parameters--

/Mode:Upgrade, /m:Upgrade
    Upgrades an existing Exchange server object.

/IAcceptExchangeServerLicenseTerms
    This parameter is required to accept Exchange Server license terms
    and must be included every time the setup command is run.

--Upgrade Exchange Server Optional Parameters--

[/DomainController:<NetBIOS or FQDN>, /dc:<NetBIOS or FQDN>]
    Specifies the domain controller that setup will use to read
    and to write to Active Directory.

[/EnableErrorReporting]
    This enables the Exchange server to automatically submit critical
    error reports. Microsoft uses this information to diagnose problems
    and provide solutions.

Setup /help:Uninstall


Microsoft Exchange Server 2013 Cumulative Update 19 Unattended Setup


Microsoft Exchange Server 2013 Setup Parameter Help

Exchange Server Installation Usage:

    Setup /Mode:Install /Roles:<roles to install> [<OptionalParameters>]
      /IAcceptExchangeServerLicenseTerms
    Setup /Mode:Uninstall
      /IAcceptExchangeServerLicenseTerms
    Setup /Mode:Upgrade /IAcceptExchangeServerLicenseTerms

--Exchange Server Installation Required Parameters--

/Mode:<installation mode>, /m:<installation mode>
    Specifies the operation to perform:
        . Install:    (Default)--Installs one or more server roles.
        . Uninstall:  Removes all installed server roles.
        . Upgrade:    Installs a service pack.

/Roles:<role 1, role 2>, /Role:<role>, /r:<role>
    The following are the valid server roles:
        . ClientAccess, ca
        . Mailbox, mb
        . EdgeTransport, et
        . ManagementTools, mt, t

    * This parameter can't be used when the /Mode parameter
    is set to Uninstall or Upgrade.

/IAcceptExchangeServerLicenseTerms
    This parameter is required to accept Exchange Server license terms
    and must be included every time the setup command is run.

--Exchange Server Installation Optional Parameters--

[/DisableAMFiltering]
    Disables Exchange Server anti-malware functionality.

[/DomainController:<NetBIOS or FQDN>, /dc:<NetBIOS> or FQDN>]
    Specifies the domain controller that Setup will use to read
    and write to Active Directory.

[/InstallWindowsComponents]
    Installs required Windows Server roles and features.

[/OrganizationName:<organization name>, /on:<organization name>]
    Specifies the name of the Exchange organization. The name can't be
    longer than 64 characters. If the name has spaces, enclose it in
    quotes.
    Valid characters: A-Z, a-z, 0-9, space (not leading or trailing),
    hyphen, dash.

    * This parameter is required if you're installing the first
    Exchange server in an organization.

[/TargetDir:<path>, /t:<path>]
    Specifies the location to install Exchange Server 2013 files.
    Default: "%ProgramFiles%\Microsoft\Exchange Server\V15"

[/UpdatesDir:<path>, /u:<path>]
    Updates from the specified directory will be installed during
    setup.

[/?]
    Displays help for setup.

--Exchange Server Installation Advanced Optional Parameters--

[/ActiveDirectorySplitPermissions:<True | False>]
    Enable Active Directory split permissions mode when preparing
    the Exchange organization.
    The value can be true or false.

[/AnswerFile:<path>, /af:<path>]
    Specifies the location of an answer file that contains advanced
    parameters for setup.
    For details, see http://go.microsoft.com/fwlink/p/?LinkId=254454.

[/CustomerFeedbackEnabled:<True | False>]
    Specify whether to participate in Customer Experience Improvement
    Program.
    The value can be True or False.

[/DbFilePath:<path>]
    Specify the full path to the mailbox database file when
    the Mailbox server role is installed.
    Role: Mailbox

[/DoNotStartTransport]
    Microsoft Exchange Transport service will not be started during
    setup when this parameter is specified.
    Role: Mailbox

    Remarks: This parameter can only be specified during the first
    Exchange 2013 Mailbox server installation in an organization.

[/EnableErrorReporting]
    Enables the Exchange server to automatically submit critical
    error reports. Microsoft uses this information to diagnose
    problems and provide solutions.

[/LogFolderPath:<path>]
    Specify the folder path to the directory where the mailbox database
    database logs should be placed when the Mailbox server role is
    installed.
    Role: Mailbox

[/MdbName:<MDB name>]
    Specify the default database name that is created when the
    Mailbox server role is installed.
    Role: Mailbox

[/TenantOrganizationConfig:<path>]
    Specifies the path to the file that contains the organization
    configuration of your Office 365 tenant. This file is created by
    running the Get-OrganizationConfig cmdlet in your Office 365
    tenant. For more information, see
    http://go.microsoft.com/fwlink/?LinkId=262888.

Setup /help:RecoverServer


Microsoft Exchange Server 2013 Cumulative Update 19 Unattended Setup


Microsoft Exchange Server 2013 Setup Parameter Help

Recover Exchange Server Usage:

    Setup /Mode:RecoverServer [OptionalParameters]
      /IAcceptExchangeServerLicenseTerms

--Recover Exchange Server Required Parameters--

/Mode:RecoverServer, /m:RecoverServer
    Recovers an existing Exchange server object.

/IAcceptExchangeServerLicenseTerms
    This parameter is required to accept Exchange Server license terms
    and must be included every time the setup command is run.

--Recover Exchange Server Optional Parameters--

[/TargetDir:<path>, /t:<path>]
    Specifies the location to install Exchange Server 2013 files.
    Default: "%programfiles%\Microsoft\Exchange Server\V15"

[/UpdatesDir:<path>, /u:<path>]
    Specifies the location from which updates will be installed
    during setup.

[/DomainController:<NetBIOS or FQDN>, /dc:<NetBIOS or FQDN>]
    Specifies the domain controller that setup will use to read
    and to write to Active Directory.

[/EnableErrorReporting]
    This enables the Exchange server to automatically submit critical
    error reports. Microsoft uses this information to diagnose problems
    and provide solutions.

[/DoNotStartTransport]
    The Microsoft Exchange Transport service will not be started during
    setup when this parameter is specified.
    Role: Mailbox

Setup /help:PrepareTopology


Microsoft Exchange Server 2013 Cumulative Update 19 Unattended Setup


Microsoft Exchange Server 2013 Setup Parameter Help

Prepare Topology Usage:

    Setup /PrepareAD [<OptionalParameters>]
      /IAcceptExchangeServerLicenseTerms
    Setup /PrepareSchema [<OptionalParameters>]
      /IAcceptExchangeServerLicenseTerms
    Setup /PrepareDomain [<OptionalParameters>]
      /IAcceptExchangeServerLicenseTerms
    Setup /PrepareDomain:<domainA, domainB> [<OptionalParameters>]
      /IAcceptExchangeServerLicenseTerms
    Setup /PrepareAllDomains [<OptionalParameters>]
      /IAcceptExchangeServerLicenseTerms

--Prepare Topology Required Parameters--

/PrepareAD, /p
    Prepares the Active Directory forest for the Exchange
    installation.

/PrepareSchema, /ps
    Prepares the Active Directory schema for the Exchange installation.

/PrepareDomain, /pd
    Prepares the local domain for the Exchange installation.

/PrepareDomain:<domain FQDN>, /pd:<domain FQDN>
    Prepares the specified domain(s) for the Exchange installation.

/PrepareAllDomains, /pad
    Prepares all domains in the forest for the Exchange
    installation.

/IAcceptExchangeServerLicenseTerms
    This parameter is required to accept Exchange Server license terms
    and must be included every time the setup command is run.

--Prepare Topology Optional Parameters--

[/OrganizationName:<organization name>, /on:<organization name>]
    Specifies the name of the Exchange organization. The name can't be
    longer than 64 characters. If the name has spaces, enclose it in
    quotes.
    Valid characters: A-Z, a-z, 0-9, space (not leading or trailing),
    hyphen, dash.

    * This parameter is required if you're installing the first
    Exchange server in an organization.

[/DomainController:<NetBIOS or FQDN>, /dc:<NetBIOS or FQDN>]
    Specifies the domain controller that Setup will use to read
    and write to Active Directory.

[/ActiveDirectorySplitPermissions:<True | False>]
    Enable Active Directory split permissions mode when preparing
    the Exchange organization.
    The value can be true or false.

Setup /help:Delegation


Microsoft Exchange Server 2013 Cumulative Update 19 Unattended Setup


Microsoft Exchange Server 2013 Setup Parameter Help

Server Setup Delegation Usage:

    Setup /NewProvisionedServer:<server name>
      /IAcceptExchangeServerLicenseTerms
    Setup /RemoveProvisionedServer:<server name>
      /IAcceptExchangeServerLicenseTerms

--Server Setup Delegation Required Parameters--

/NewProvisionedServer:<server name>, /nprs:<server name>
    Creates a placeholder server object so that a
    delegated server administrator can run Exchange installation.

/RemoveProvisionedServer:<server name>, /rprs:<server name>
    Removes the provisioned server object.

/IAcceptExchangeServerLicenseTerms
    This parameter is required to accept Exchange Server license terms
    and must be included every time the setup command is run.

Setup /help:UmLanguagePacks


Microsoft Exchange Server 2013 Cumulative Update 19 Unattended Setup


Microsoft Exchange Server 2013 Setup Parameter Help

Unified Messaging Language Pack Usage:

    Setup /AddUmLanguagePack:<cultures> [<OptionalParameters>]
      /IAcceptExchangeServerLicenseTerms
    Setup /RemoveUmLanguagePack:<cultures>
      /IAcceptExchangeServerLicenseTerms

--Unified Messaging Language Pack Required Parameters--

/AddUmLanguagePack:<cultures>
    Adds the language packs for the specified cultures.

/RemoveUmLanguagePack:<cultures>
    Removes the installed language packs.

/IAcceptExchangeServerLicenseTerms
    This parameter is required to accept Exchange Server license terms
    and must be included every time the setup command is run.

--Unified Messaging Language Pack Optional Parameters--

[/SourceDir:<path>, /s:<path>]
    Location for the Unified Messaging language pack
    for the cultures specified. Valid with /AddUmLanguagePack
    parameter only.

[/UpdatesDir:<path>, /u:<path>]
    Updates from the directory specified will be installed
    during setup.

Usage Examples:
    Setup /AddUmLanguagePack:de-DE /s:d:\Downloads\UmLanguagePacks
    Setup /AddUmLanguagePack:de-DE,fr-FR,ja-JP /s:\\myshare\langpacks
    Setup /RemoveUmLanguagePack:de-DE,fr-FR
    Setup /AddUmLanguagePack:de-DE /s:d:\Downloads /u:d:\Patches

Remarks:
    The en-US Unified Messaging language pack can't be added or removed.
    It will be installed and uninstalled with the Mailbox role.
    These operations are only valid when the Mailbox role is already
    installed on the server.



No comments:

Post a Comment