Provision Exchange 2010 with PowerShell

Tutorial on how to provision Exchange 2010 with PowerShell


Exchange 2010 Server with SP3 will be installed on Windows 2008R2 Enterprise Server with latest patches installed

Install necessary IIS components and reboot the server

Import-Module ServerManager

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy,web-wmi,web-asp-net,web-isapi-filter -Restart

Download Exchange 2010 with SP3 and extract it to C:\Temp\EX10 and install Exchange 2010 with CLI below

#Extend AD Schema
C:\Temp\EX10\Setup /ps
#Prepare AD Domain - Replace OrganizationName with your own 
C:\Temp\EX10\setup /PrepareAD /OrganizationName:LAB
#Prepare Domain 
C:\Temp\EX10\setup /PrepareDomain
#Setup Exchange 2010 Single Server 
C:\Temp\EX10\Setup /m:Install /Roles:ca,mb,ht

Update to PowerShell 5.1

Initial Configuration of Exchange 2010

Refer to Basic Configuration for Exchange 2013 to configure SMTP Connector, URL for Virtual Directories and others

Enable Outlook Anywhere

Enable-OutlookAnywhere -DefaultAuthenticationMethod basic -ExternalHostname '' -SSLOffloading $false

Assign permission to Anonymous Users in Default Receive Connector to receive external email

Get-ReceiveConnector | Where-Object {$_.Identity -like "*Default LAB-EX10"} | 
 Set-ReceiveConnector -PermissionGroups AnonymousUsers, ExchangeUsers, ExchangeServers, ExchangeLegacyServers

Leave a Comment

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

Scroll to Top