search-mailbox Assistance
Hi, I am attempting to search a long list of mailboxes that have email sizes greater than a specific size but I have a few questions. First, I do not want to export the email. I want to copy the email that is found to be the size or greater into another email account. Can I do this through the search-mailbox command or is there a better command? Second, there are a LOT of users I have to do this against. Instead of runnig the command below for each person how can I run the powershell script against a txt file or some other listing of the email aliases? search-mailbox -identity 'username' -SearchQuery System.Size:>100kb Thanks, Exchange_Dude
May 16th, 2011 4:50pm

Hi, >>First, I do not want to export the email. I want to copy the email that is found to be the size or greater into another email account. Can I do this through the search-mailbox command or is there a better command? Of course, you can use Exchange Management Shell cmdlets or the ECP to create a multi-mailbox search. Search results can be copied to the discovery mailbox selected as the target mailbox for the search. Understanding Multi-Mailbox Search Create a Discovery Mailbox >>Second, there are a LOT of users I have to do this against. Instead of runnig the command below for each person how can I run the powershell script against a txt file or some other listing of the email aliases But Multi-Mailbox Search doesn't support regular expressions. So you can’t do it with advanced query syntax. System.Size:>1kb Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2011 2:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics