Export Message operation


The Export Message process copies a message from a queue on a computer that has the Hub transport server role or the Edge transport server role installed to a specified file path in a Microsoft Exchange Server 2007 organization. 

Note

The Export Message operation supports Microsoft Exchange versions 2007, 2010, 2013, 2016, and 2019.

The adapter request parameters may differ according to the Microsoft Exchange Server version.

For the list of all supported parameters, refer to the Export-Message cmdlet in the Microsoft Exchange documentation specific to your version.

The following figure shows a sample adapter request for the operation on Microsoft Exchange version 2019:

<microsoft-exchange-request>
   <command>
     <command-name>Export-Message</command-name>
     <format-option/>
     <verbose-logging/>
     <parameters>
       <parameter>
         <name>Identity</name>
         <value>clm-pun-020413\Submission\2765958938634</value>
       </parameter>
     </parameters>
   </command>
</microsoft-exchange-request>

The following figure shows the response for the adapter request:

<microsoft-exchange-response>
 <metadata>
   <status>success</status>
 </metadata>
 <targets-output>
   <target-output host="clm-pun-020413.bmc.com">
     <metadata>
       <os-id>Windows Server 2008</os-id>
       <os-version>6.3.9600</os-version>
       <status>success</status>
     </metadata>
     <commands-output>
       <command-output>
         <metadata>
           <command>Export-Message -Identity:'clm-pun-020413\Submission\2765958938634' -confirm:$false</command>
           <line-count>8</line-count>
           <execution-milliseconds>43230</execution-milliseconds>
           <exit-code>0</exit-code>
           <status>success</status>
         </metadata>
         <output>
           <line index="1">Attempting to connect to remote host...</line>
           <line index="2">Initialising rctrlx server component...</line>
           <line index="3">Executing remote application: cmd /c "echo . | powershell -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -NonInteractive -Command Export-Message -Identity:'clm-pun-020413\Submission\2765958938634' -confirm:$false "</line>
           <line index="4">Stdout:</line>
           <line index="5">FileData            Identity                        IsValid         ObjectState</line>
           <line index="6">--------            --------                        -------         -----------</line>
           <line index="7">{88, 45, 115, 10... clm-pun-020413\S...                True                 New</line>
           <line index="8">Remote application exited with code: 0</line>
         </output>
       </command-output>
     </commands-output>
   </target-output>
 </targets-output>
</microsoft-exchange-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*