PowerShell – Provisioning of Exchange 2013 Server

Please refer to the following steps on how to provision Exchange 2013 Server in my lab

Installation Item 2 to 4 prior execute the PowerShell Script
1. Windows 2012 R2 Standard Server with latest patches installed
2. Microsoft Office 2010 Filter Packs
3. Service Pack 1 for Microsoft Office 2010 Filter Packs
4. Unified Communications Manager API 4.0 Runtime

#Install PreRequisite 
Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, `
    RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, `
    RSAT-Clustering-PowerShell, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, `
    Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, `
    Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, `
    Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, `
    Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation, RSAT-ADDS

#Restart Computer 

#prepare AD Schema 
D:\setup.exe /ps /IAcceptExchangeServerLicenseTerms

#Prepare AD 
D:\setup.exe /PrepareAD /OrganizationName:Aventis /IAcceptExchangeServerLicenseTerms

#Prepare Domain 
D:\setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms

#Install Exchange 2013 CAS + MBX 
D:\Setup.exe /m:Install /Roles:ca,mb,mt /IAcceptExchangeServerLicenseTerms 

Welcome to Microsoft Exchange Server 2013 Cumulative Update 12 Unattended Setup
Copying Files...
File copy complete. Setup will now collect additional information needed for installation.
     Management tools
     Mailbox role: Transport service
     Mailbox role: Client Access service
     Mailbox role: Unified Messaging service
     Mailbox role: Mailbox service
     Client Access role: Front End Transport service
     Client Access role: Client Access Front End service

Performing Microsoft Exchange Server Prerequisite Check

 Configuring Prerequisites ... COMPLETED
 Prerequisite Analysis ... COMPLETED

Configuring Microsoft Exchange Server

 Preparing Setup ... COMPLETED
 Stopping Services ... COMPLETED
 Copying Exchange Files ... COMPLETED
 Language Files ... COMPLETED
 Restoring Services ... COMPLETED
 Language Configuration ... COMPLETED
 Exchange Management Tools ... COMPLETED
 Mailbox role: Transport service ... COMPLETED
 Mailbox role: Client Access service ... COMPLETED
 Mailbox role: Unified Messaging service ... COMPLETED
 Mailbox role: Mailbox service ... COMPLETED
 Client Access role: Front End Transport service ... COMPLETED
 Client Access role: Client Access Front End service ... COMPLETED
 Finalizing Setup ... COMPLETED

The Exchange Server setup operation completed successfully.
Setup has made changes to operating system settings that require a reboot to take effect. Please reboot this server prior to placing it into production.

Reboot Exchange 2013 Server, and login by opening “PowerShell ISE” with the following

‘C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1’
 Connect-ExchangeServer -auto

Now you can continue to work with Exchange Management Shell in PowerShell ISE

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top