Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 8719

Delete email acros mailbox database from specific folder

$
0
0

Hi,

I'd like to delete all emails from specific users folder (Inbox, Sent Items, Outbox) through specific or all mailboxes (use Get-Mailbox -ResultSize unlimited) and put it into target folder. At the moment I've used:

Get-Mailbox -ResultSize unlimited | Search-Mailbox -TargetMailbox BackupMail -TargetFolder Inbox -DeleteContent

but this delete ALL mails from all mailboxes and put it into Inbox of BackupMail mailbox. Instead of this, I'd like to delete mails from specific folder, not all mails.

Can you please advice?

Thnx


Viewing all articles
Browse latest Browse all 8719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>