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

คำสั่ง 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


ไม่มีความคิดเห็น: