$dateStart = ([system.DateTime]::Now.AddDays(-1))
$dateEnd = ([system.DateTime]::Now)
Get-MessageTrace -StartDate $dateStart -EndDate $dateEnd -PageSize 512 | Where {$_.Status -eq "Delivered"} | Get-MessageTraceDetail | where {$_.Event -eq "Receive"} | where {$_.Detail -notmatch "TLS1.2"} | fl