title: Trying to use Search-Mailbox and Export-Message to save certain messages to eml format to network folder
body: <p>Here is what I am trying to do:</p>
  
  <p>I would like to search a mailbox for emails with certain criteria in the subject line and then save those email's to a folder on the network in .eml format.   My question is:</p>
  
  <p>Is it possible to do that using: Search-Mailbox &amp;  Export-Message together?</p>
  
  <pre><code>$strMsg = Search-Mailbox &lt;Source Mailbox&gt; -SearchQuery Subject:"&lt;Text String&gt;" -TargetMailbox &lt;Destination mailbox&gt; -TargetFolder &lt;Folder&gt; -LogLevel Full
  Export-Message $strMsg AssembleMessage -Path "c:\temp\filename.eml"
  </code></pre>
  
  <p>How can I realize that?</p>