Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Tools / July 2008

Tip: Looking for answers? Try searching our database.

export-mailbox (E2K7)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dk - 31 Jul 2008 21:25 GMT
Desired tasks:
1.) export (copy, don't delete) all messages from, say, a half-dozen
mailboxes into a folder of a particular mailbox. - should be easy, just six
export-mailbox commands. Users aren't groupable by any means that I can see.
However, if I want  .pst for each, do I need a special tool on my e2k7
(64bit) server?

export-mailbox -id User1of6 -TargetFolder 'UserData1of6' -TargetMailbox
'ReviewerGuy'

to .pst? tools?

2.) export all mail sent from a given user from all mailboxes (I know,
"Wouldn't it be easier to just export that users Sent items?"- long story,
but we can't.

get-mailbox | export-mailbox [{...then a miracle occurs...}] -TargetFolder
'SentFromBadGuy' -TargetMailbox 'ReviewerGuy'

need a little help in step 2 :)

3.) export all mail sent to a given user from all mailboxes

get-mailbox | export-mailbox [ help how to to the 'to e-mail address']
-TargetFolder 'SentToBadGuy' -TargetMailbox 'ReviewerGuy'

could approximate by searching the sent items folder only
with the -IncludeFolders "\Sent Items"

any ideas welcome
Bharat Suneja [MSFT] - 01 Aug 2008 00:47 GMT
1)  If you want PSTs for exported mailboxes, you need to perform the export
operation on a 32-bit management workstation/server. (You'll need 32-bit
version of Exchange Server 2007 SP1/Management Tools and Microsoft Outlook
2003 SP2). The following cmdlet doc has links to the 32-bit download.

Export-Mailbox
http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspx

To export to PST:
Export-mailbox "User1of6" -TargetFolder "UserData1of6" -PSTFolderpath
"C:\MyFolder\Mailbox1.pst"

2) To export all mail from a particular sender:
Export-mailbox "User1of6" -TargetFolder "UserData1of6" -PSTFolderpath
"C:\MyFolder\Mailbox1.pst" -SenderKeywords badguy@somedomain.com

3) Be aware of what you're doing with this one - you're running
export-mailbox against all mailboxes. Why not export the recipient's mailbox
instead of dumping everyone's Sent Items (if the recipient is internal)?
Should you want to export evreyone's mailboxes (guessing you're looking in
Sent Items folder):

Get-Mailbox | Export-mailbox   -PSTFolderpath
"C:\MyFolder\Mailbox1.pst" -PSTFolderpath
"C:\MyFolder\Mailbox1.pst" -RecipientKeywords
badguy@somedomain.com -IncludeFolders "\Sent Items"

*Omit the -IncludeFolders parameter if you want to look for items in all
folders and not restrict it to "Sent Items" folder of each mailbox.

Signature

Bharat Suneja
Microsoft Corporation
blog: exchangepedia.com/blog

This posting is provided "AS IS" with no warranties, and confers no
rights. Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
----------------------------

> Desired tasks:
> 1.) export (copy, don't delete) all messages from, say, a half-dozen
[quoted text clipped - 28 lines]
>
> any ideas welcome
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.