Category: Automation

Microsoft Exchange Server 2016 – View and Configure the Whitelist

You may use the Microsoft Exchange Management Shell cmdlets below to view and configure the whitelist for Microsoft Exchange Server 2016 for an entire domain or an individual email address. The whitelist contains a list of trusted domains and/or email addresses as part of the Anti-Spam feature. The domains and/or email addresses configured using these cmdlets have all email delivered irrespective of their contents. Therefore, be sure to plan and test appropriately prior to implementing it’s use in a production environment.

Get-ContentFilterConfig
Set-ContentFilterConfig -BypassedSenderDomains domain.com
Set-ContentFilterConfig -BypassedSenders [email protected]
Set-ContentFilterConfig -BypassedSenderDomains @{Remove=”gmail.com”}
Set-ContentFilterConfig -BypassedSenders @{Remove=”[email protected]”}


Microsoft Exchange Server 2016 – Mailbox Server Services

In many environments monitoring solutions are used to help facilitate availability and expected performance levels. Below is a representative list of Microsoft Exchange Server 2016 Mailbox server services that are good candidates for monitoring your Microsoft Exchange environment.

Microsoft Exchange Active Directory Topology
Microsoft Exchange DAG Management
Microsoft Exchange Diagnostics
Microsoft Exchange EdgeSync
Microsoft Exchange Frontend Transport
Microsoft Exchange Health Manager
Microsoft Exchange Information Store
Microsoft Exchange Mailbox Transport Delivery
Microsoft Exchange Mailbox Transport Submission
Microsoft Exchange Replication
Microsoft Exchange Transport
Microsoft Exchange Unified Messaging


Microsoft Active Directory – Domain and Forest Functional Levels

You may use the following (2) Microsoft Windows PowerShell cmdlets to view the domain and forest functional levels of a Microsoft Active Directory domain.

Get-ADDomain | Format-List Name, DomainMode
Get-ADForest | Format-List Name, ForestMode


Microsoft Exchange Server 2016 – Mailbox Server Role Post Installation

After installing any application it is good practice to perform post installation tasks and Microsoft Exchange Server 2016 is no exception. Below you will find a step-by-step guide for the Microsoft Exchange Server 2016 Mailbox Server role post installation tasks.

  1. Review the C:\ExchangeSetupLogs\ExchangeSetup.log file for errors or warnings.
  2. Right click the Exchange Management Shell and select Run as Administrator.
  3. Execute the Get-ExchangeServer | FT Name,ServerRole -auto cmdlet to determine the installed roles.
  4. Review the Event Viewer (Windows Logs > Application) for errors or warnings regarding Microsoft Exchange Server 2016.
  5. Login to the Exchange Admin Center using the URL https://server/ecp.
  6. Configure the Language: and Time Zone: then click Save.

Microsoft Exchange Server 2016 – Edge Transport Role Command Line Installation

The architecture of Microsoft Exchange Server 2016 includes the Edge Transport Role server role. Below you will find a step-by-step tutorial for installing the Edge Transport Role using the command line.

  1. Right click Windows PowerShell and select Run as Administrator.
  2. Execute the following command to install Active Directory Lightweight
    Directory Services (ADLDS).

    1. Install-WindowsFeature ADLDS
  3. Install Microsoft .NET Framework 4.5.2.
  4. Execute the following command to install the Edge Transport Server role.
    1. Setup.exe /mode:install /role:EdgeTransport /IAcceptExchangeServerLicenseTerms
  5. Execute the following command to create the Edge subscription file.
    1. New-EdgeSubscription -FileName C:\Microsoft Exchange\Edge_Subscription_File.xml
  6. Copy the subscription file to a folder on the server hosting the Mailbox Server role.
  7. Run the following command on the Mailbox Server Role server to import the Edge subscription file and subscribe the Edge Transport server to the Active Directory site named Default-First-Site-Name.
    1. New-EdgeSubscription -FileData ([byte[]]$(Get-Content -Path “C:\Microsoft Exchange\Edge_Subscription_File.xml” -Encoding Byte -ReadCount 0)) -Site “Default-First-Site-Name”
  8. On the Mailbox Server Role server execute the following command to start the synchronization between the Mailbox Server Role and the Edge Transport Server role.
    1. Start-EdgeSynchronization

Microsoft Exchange Server 2016 – Mailbox Enabled User Command Line Configuration

You may use the following Microsoft Exchange Management Shell (EMS) cmdlet to configure a Mailbox-Enabled User in Microsoft Exchange Server 2016.

Enable-Mailbox -Identity User


Microsoft Exchange Server 2016 – Product Key Command Line Configuration

You may use the following Microsoft Exchange Management Shell (EMS) cmdlet to enter the product key for Microsoft Exchange Server 2016.

Set-ExchangeServer –identity ‘<server>’ -ProductKey <product key>


Microsoft Exchange Server 2016 – Send Connector Command Line Configuration

The Send Connector in Microsoft Exchange Server 2016 is am object that contains the configuration information for sending email from the Exchange organization. You may use the following commands in the Microsoft Exchange Management Shell (EMS) to configure a send connector for all outbound traffic.

New-SendConnector -name “Default Internet”
-AddressSpaces “*” -DNSRoutingEnabled $true
-SourceTransportServers “Server” -Usage Internet


Microsoft Exchange Server 2016 – Email Address Policy Command Line Configuration

You may use the following commands in the Microsoft Exchange Management Shell (EMS) to create and configure an email address policy in Microsoft Exchange Server 2016.

New-EmailAddressPolicy -Name PolicyName
-EnabledPrimarySMTPAddressTemplate “SMTP:%g.%[email protected]
-IncludedRecipients AllRecipients -Priority 1 |
Update-EmailAddressPolicy


Microsoft Exchange Server 2016 – SMTP Domain Command Line Configuration

By default Microsoft Exchange Server 2016 configures a default accepted domain and email address policy using the fully qualified domain name (FQDN) of the Microsoft Active Directory (AD) domain into which it is installed. If necessary, you may use the following commands in the Microsoft Exchange Management Shell (EMS) to create an SMTP domain for Microsoft Exchange Server 2016. Note that you may change the -MakeDefault value to $false if you do not want it to be used as the default SMTP domain for the email address.

New-AcceptedDomain -Name domain.com
-DomainName *.domain.com
-DomainType authoritative |
Set-AcceptedDomain -MakeDefault $true