วันอังคารที่ 30 พฤษภาคม พ.ศ. 2566

Replace Exchange Receive Connector/Send Connector TLS Certificate

Replace Exchange Receive Connector TLS Certificate


$cert = Get-ExchangeCertificate -Thumbprint cert_thumbprint

$tlscertificatename = "<i>$($cert.Issuer)<s>$($cert.Subject)"

Set-ReceiveConnector "EX2016SRV1\Client Frontend EX2016SRV1" -TlsCertificateName $tlscertificatename



 Replace Exchange Send Connector TLS Certificate

$cert = Get-ExchangeCertificate -Thumbprint cert_thumbprint

$tlscertificatename = "<i>$($cert.Issuer)<s>$($cert.Subject)"

Set-SendConnector "Outbound to Office 365" -TlsCertificateName $tlscertificatename


Recall Mail Condition to work and reason recall mail will fail

 Key Conditions for Outlook Recall to Work:

- You are using Microsoft Exchange Server

- You must both be on the same Outlook Exchange System

- The recipient must be using Outlook 365 or the Outlook Exchange Client

- The Outlook Exchange Connection must be Active 

- The Email went to the Recipient’s Inbox

- The Email must be UNREAD



Key Reasons Why Outlook Recall Will Definitely Fail:

- The Recipient already Opened the Message

- There is an Email Rule on their System that Moves the Message

- The Email Recipient doesn’t use the Outlook Mail Client

- The Email Recipient isn’t on the SAME Outlook Exchange Server

- The Email Recipient uses a Mobile Device with a different Email client

- The Email Recipient uses Outlook Web Access

- Message was Sent from a Delegate or Shared Mailbox

- The Email was sent to a “Public” or “Shared” Folder

- The Recipient already viewed the message on their Mobile Device

คำสั่ง Exchange PowerShell สำหรับเก็บข้อมูล Exchange

 คำสั่ง Exchange PowerShell สำหรับเก็บข้อมูล Exchange

คำสั่ง PowerShell ที่ใช้สำหรับเก็บข้อมุล Exchange ไว้ใช้สำหรับงาน Migration, Inventory ก็แล้วแต่ตามสะดวกครับผม


เปิด Exchange Management Shell แล้วรันคำสั่งด้านล่างได้เลยครับ


Get-ActiveSyncVirtualDirectory | fl id,*url* | export-csv c:\temp\Get-ActiveSyncVirtualDirectory.csv

Get-AutodiscoverVirtualDirectory  | fl id,*url* | export-csv c:\temp\Get-AutodiscoverVirtualDirectory.csv

Get-EcpVirtualDirectory | fl id,*url* | export-csv c:\temp\Get-EcpVirtualDirectory.csv

Get-OabVirtualDirectory | fl id,*url* | export-csv c:\temp\Get-OabVirtualDirectory.csv

Get-OwaVirtualDirectory | fl id,*url* | export-csv c:\temp\Get-OwaVirtualDirectory.csv

Get-PowerShellVirtualDirectory  | fl id,*url* | export-csv c:\temp\Get-PowerShellVirtualDirectory.csv

Get-WebServicesVirtualDirectory  | fl id,*url* | export-csv c:\temp\Get-WebServicesVirtualDirectory.csv

Get-MapiVirtualDirectory | fl id,*url* | export-csv c:\temp\Get-MapiVirtualDirectory.csv

Get-ClientAccessServer | fl id,*uri* | export-csv c:\temp\Get-ClientAccessServer.csv

Get-OutlookProvider | fl | export-csv c:\temp\Get-OutlookProvider.csv

Get-OutlookAnywhere | fl | export-csv c:\temp\Get-OutlookAnywhere.csv

Get-SendConnector | Where-Object {$_.Enabled -eq $true} |fl| export-csv c:\temp\Get-SendConnector.csv

Get-SendConnector | Where-Object {$_.Enabled -eq $true} | Get-ADPermission | Where-Object { $_.extendedrights -like '*routing*' } | fl identity, user, *rights | export-csv c:\temp\Get-SendConnector_Permission.csv

Get-ReceiveConnector | fl | export-csv c:\temp\Get-ReceiveConnector.csv

Get-ExchangeCertificate | fl | export-csv c:\temp\Get-ExchangeCertificate.csv