Retrieve Microsoft Exchange Message Tracking Log with PowerShell

Please refer to the steps below on how to retrieve Microsoft Exchange Message Tracking Log with PowerShell Default Configuration of Message Tracking Log – Retention of 30 Days with Max file size of 10MB and MAX folder size of 1GB. The message tracking log will be generated hourly Get-TransportService | Select MessageTrackingLogEnabled, MessageTrackingLogMaxAge, MessageTrackingLogMaxDirectorySize, MessageTrackingLogMaxFileSize, … Read more

Renew SSL Certificate for Exchange 2007

Please refer to the following steps on how to Generate SSL Certficate for Exchange 2007 Exchange 2007 1. Open Exchange Management Shell New-ExchangeCertificate -DomainName mail.aventistech.info, autodiscover.aventistech.info -Friendlyname “SSL For AventisTech.info” -generaterequest:$true -keysize 2048 -path C:\CertRequest.req -privatekeyexportable:$true -subjectname “c=MY, o=AventisTech, cn=mail.aventistech.info”” Exchange 2016 (Updated) 1. Open Exchange Management Shell New-ExchangeCertificate -DomainName *.aventistech.info -Friendlyname “Internal SSL Cert” … Read more

Provision a Single Exchange 2016 with PowerShell

Steps to provision a Single Exchange 2016 with PowerShell Prepare a Windows 2016 Standard Server with Servicing stack update 2018-11 Cumulative Update-KB4467691 – Download the latest Cumulative from Microsoft Unified Communications Managed API 4.0 Runtime Visual C++ Redistributable Packages x64 Exchange 2016 CU9 Enable PreRequisite #Install PreRequisite Install-WindowsFeature NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, ` RSAT-Clustering-PowerShell, … Read more

Scheduled PowerShell Script to Clean Up Disk Space in Exchange 2016

We had prepared a scheduled PowerShell Script to clean up disk space in Exchange 2016 to prevent the generated logs file from filling up C or D Drive PowerShell Script to delete .log, .blg, and .etl files older than 14 days in D:\program files\microsoft\exchange server\V15\Logging and save it to C:\Scripts\ClearIISLogs.ps1 #Remove .log, .blg and .etl … Read more

Disabled ESMTP in Exchange 2016 for PCI DSS Compliance

We got a request from client to disable ESMTP in Exchange 2016 for PCI DSS Compliance This is the default Exchange 2016 response for EHLO Based on the documentation from Microsoft on Exchange 2016 Receiver #Variable $Receiver1=”Default Frontend MYLAB-EX16″ $Server1 = “MYLAB-EX16” $Banner = “220 mail.aventistech.info” #MUST start with 220 $FQDN = “mail.mail.aventistech.info” #Disable Default … Read more

PowerShell – Provisioning of Exchange 2013 Server

Please refer to the following steps on how to provision Exchange 2013 Server in my lab Pre-Requisite 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 … Read more

Exchange 2013 – 2 Nodes DAG Fail Over & Fallback

Please refer to the following Simulation Result for 2 x Exchange 2013 DAG Nodes Fail-Over & Fallback within a Single AD Sites for one of our client 1 x Exchange 2013 Server installed on each Building and being connected using 1Gbps Fiber Connection File Share Witness (FSW) Server installed in each site Pre-Fail-Over Stage Exchange … Read more

Exchange 2013 : Move User to Different Mailbox Database

Please refer to the following steps on how to move user to different mailbox database using PowerShell Connecting to Exchange Remote PowerShell $ExchangeURL = "http://mail.aventis.local/PowerShell/" $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $ExchangeURL -Authentication Kerberos Import-PSSession $Session Check which mailbox database the user’s mailbox is located get-mailbox -Identity m3test | Select Name, DisplayName, Database Prepare a UserMailbox.csv … Read more