title: Junk E-mail Exchange 2010 auto-delete messages older than X days in folder in OWA
body: <p>How can I auto delete Junk E-mail folder Exchange 2010 in OWA if I have Exchange 2010 Standard license and standard license CALs?</p>
  
  <p>Custom retention policy tags won't work because it needs Exchange Enterprise license and CALs.
  Currently I use this command, but I need to script the command to delete messages from a specific folder in OWA.</p>
  
  <pre><code>Search-Mailbox -Identity User -SearchQuery "Subject:'*[Spam]' sent:&lt;$("10.06.2016")" -Delet
  eContent -confirm:$false
  </code></pre>