Freigeben über


Exchange 2007 큐에서 메시지를 추출하는 방법.

First we need to send a message just so we can get a queue. After the message is delivered, run get-queue to find the queue name.

[PS] C:\>get-queue

Identity                DeliveryType Status MessageCount NextHopDomain
--------                ------------ ------ ------------ -------------
EX6-12\14               MapiDelivery Ready  0            ex6-12.org6.com
EX6-12\Submission       Undefined    Ready  0            Submission

As long as we're running on the Exchange server, we don't need to specify the server name. The queue number is therefore sufficient. Suspend the queue so the next message isn't delivered.

[PS] C:\>suspend-queue 14

Confirm
Are you sure you want to perform this action?
Suspending the queue "14".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):y

Send another message and then run get-queue to verify that we got our message stuck in the queue.

[PS] C:\>get-queue

Identity                DeliveryType Status MessageCount NextHopDomain
--------                ------------ ------ ------------ -------------
EX6-12\14               MapiDelivery Sus... 1            ex6-12.org6.com
EX6-12\Submission       Undefined    Ready  0            Submission

The get-queue output doesn't show the name of the message so run get-message to find out. If there is a lot of messages, run get-message | ft identity, subject and determine which message you want to export based on the subject row.

[PS] C:\>get-message

Identity        FromAddress     Status          Queue           Subject
--------        -----------     ------          -----           -------
EX6-12\14\27    Administrato... Ready           EX6-12\14       CPBS/ Fall: ...

Before we export the message, we need to suspend the message. We only got one queue so the number of the message is sufficient.

[PS] C:\>suspend-message 27

Confirm
Are you sure you want to perform this action?
Suspending the message "\27".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):y

Now we can export the message

[PS] C:\>export-message 27 -path c:\msg5.eml

Don't forget to resume both the message and the queue. Finally we run get-queue again to verify that the message has been delivered.

[PS] C:\>resume-message 27
[PS] C:\>resume-queue 14
[PS] C:\>get-queue

Identity                DeliveryType Status MessageCount NextHopDomain
--------                ------------ ------ ------------ -------------
EX6-12\14               MapiDelivery Ready  0            ex6-12.org6.com
EX6-12\Submission       Undefined    Ready  0            Submission