큐에서 메시지 내보내기

[이 항목은 시험판 설명서로, 향후 릴리스에서 변경될 수 있습니다. 빈 항목은 자리 표시자로 포함되어 있습니다. 피드백이 있다면 기꺼이 듣겠습니다! ExchangeHelpFeedback@microsoft.com으로 전자 메일을 보내 주세요.]  

적용 대상:Exchange Server 2016

Learn how to export messages from queues in Exchange 2016.

On Mailbox servers and Edge Transport servers in Exchange Server 2016, you can export the messages in a queue to files. The exported messages aren't removed from the queue. Copies of the messages are made in the specified location as a plain text files. You can view the message files in Notepad or Outlook, and you can resubmit the message files by using the Replay directory on any other Mailbox server or Edge Transport server inside or outside your Exchange organization.

  • Estimated time to complete each procedure: 5 minutes

  • 이러한 절차를 수행하려면 먼저 사용 권한을 할당받아야 합니다. 필요한 사용 권한을 확인하려면 다음을 참조하세요. "Queues" entry in 메일 흐름 사용 권한 topic.

  • To export messages from a delivery queue, the Submission queue, or the Unreachable queue, the messages need to be in the Suspended state. For active, healthy queues, you first suspend the queue so you can then suspend the messages. Messages in the poison message queue are already in the Suspended state. For more information, see Suspend queues and Suspend messages in queues.

  • You can't use Queue Viewer in the Exchange 도구 상자 to export messages. However, you can use Queue Viewer to locate, identify, and suspend the messages before you export them using the Exchange 관리 셸. For more information about Queue Viewer, see 큐 뷰어. 온-프레미스 Exchange 조직에서 Exchange 관리 셸을 여는 방법을 확인하려면 Exchange 관리 셸 열기를 참조하세요.

  • When you export messages from a queue, you don't remove the messages from the queue. If you resubmit the exported messages by using the Replay directory, you should remove the messages from the queue to avoid duplicate message delivery. For more information, see Remove messages from queues.

  • Verify the following information about the target location for the exported message files:

    • The target folder needs to exist before you export any messages, and won't be created for you. If you don't specify the complete path, the files are written to the current Exchange 관리 셸 working directory.

    • The path can be local to the Exchange server, or it can be a UNC path to a share on a remote server (\\server\share).

    • Your account needs to have the Write permission in the target folder.

  • We use the message's InternetMessageID property value for the exported message file names to help ensure uniqueness. The procedures include steps to remove angled brackets (> and <), because they aren't allowed in file names. Also, we use the .eml file name extension so you can easily open the files in Outlook or resubmit the files by using the Replay directory.

  • For more information about identity and filters for queues and messages in queues, see the following topics:

  • 이 항목의 절차에 적용할 수 있는 바로 가기 키에 대한 자세한 내용은 Exchange 관리 센터의 바로 가기 키을 참조하세요.

tip팁:
문제가 있습니까? Exchange 포럼에서 도움을 요청하세요. 포럼 주소는 다음과 같습니다. Exchange Server, Exchange Online 또는 Exchange Online Protection.

To export a specific message from a queue, use the following syntax:

Export-Message -Identity <MessageIdentity> | AssembleMessage -Path <FilePath>\<FileName>.eml

This example takes the following actions on the server named Mailbox01:

  1. Suspends the contoso.com delivery queue.

  2. Suspends the message in the queue that has the InternalMessageID value 1234.

  3. Exports a copy of the message to the file D:\contoso Export\export.eml.

Suspend-Queue Mailbox01\contoso.com
Suspend-Message -Identity Mailbox01\contoso.com\1234
Export-Message -Identity Mailbox01\contoso.com\1234 | AssembleMessage -Path "D:\Contoso Export\export.eml"

To export all messages from a queue, and use the InternetMessageID value of each message as the file name, use the following syntax:

Get-Message -Queue <QueueIdentity> -ResultSize Unlimited | ForEach-Object {$Temp=<Path>+$_.InternetMessageID+".eml"; $Temp=$Temp.Replace("<","_"); $Temp=$Temp.Replace(">","_"); Export-Message $_.Identity | AssembleMessage -Path $Temp}

This example takes the following actions on the server named Mailbox01:

  1. Suspends the contoso.com delivery queue.

  2. Suspends all messages in the queue.

  3. Exports copies of the messages to the local folder named D:\Contoso Export.

Suspend-Queue Mailbox01\contoso.com
Get-Queue Mailbox01\contoso.com | Get-Message -ResultSize Unlimited | Suspend-Message
Get-Message -Queue Mailbox01\Contoso.com -ResultSize Unlimited | ForEach-Object {$Temp="D:\Contoso Export\"+$_.InternetMessageID+".eml"; $Temp=$Temp.Replace("<","_"); $Temp=$Temp.Replace(">","_"); Export-Message $_.Identity | AssembleMessage -Path $Temp}

To export specific messages from all queues on a server, and use the InternetMessageID value of each message as the file name, use the following syntax:

Get-Message -Filter {<MessageFilter>} [-Server <ServerIdentity>] -ResultSize Unlimited | ForEach-Object {$Temp=<Path>+$_.InternetMessageID+".eml"; $Temp=$Temp.Replace("<","_"); $Temp=$Temp.Replace(">","_"); Export-Message $_.Identity | AssembleMessage -Path $Temp}

This example takes the following actions on the server named Mailbox01:

  1. Suspends all queues on the server.

  2. Suspends all messages in all queues on the server from senders in the fabrikam.com domain.

  3. Exports copies of the messages to the local folder named D:\Fabrikam Export.

Suspend-Queue -Server Mailbox01
Suspend-Message -Filter {FromAddress -like "*@fabrikam.com"} -Server Mailbox01
Get-Message -Filter {FromAddress -like "*@fabrikam.com"} -Server Mailbox01 -ResultSize Unlimited | ForEach-Object {$Temp="D:\Fabrikam Export\"+$_.InternetMessageID+".eml"; $Temp=$Temp.Replace("<","_"); $Temp=$Temp.Replace(">","_"); Export-Message $_.Identity | AssembleMessage -Path $Temp}

To export all messages from all queues on a server, and use the InternetMessageID value of each message as the file name, use the following syntax:

Get-Message [-Server <ServerIdentity>] -ResultSize Unlimited | ForEach-Object {$Temp=<Path>+$_.InternetMessageID+".eml"; $Temp=$Temp.Replace("<","_"); $Temp=$Temp.Replace(">","_"); Export-Message $_.Identity | AssembleMessage -Path $Temp}

This example takes the following actions on the server named Mailbox01:

  1. Suspends all queues on the server.

  2. Suspends all messages in all queues on the server.

  3. Exports copies of the messages to the local folder named D:\Mailbox01 Export.

Suspend-Queue -Server Mailbox01
Get-Queue -Server Mailbox01 | Get-Message -ResultSize Unlimited | Suspend-Message
Get-Message -Server Mailbox01 -ResultSize Unlimited | ForEach-Object {$Temp="D:\Mailbox01 Export\"+$_.InternetMessageID+".eml"; $Temp=$Temp.Replace("<","_"); $Temp=$Temp.Replace(">","_"); Export-Message $_.Identity | AssembleMessage -Path $Temp}
 
표시: