In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use Exchange to export mailbox data, the article is very detailed, has a certain reference value, interested friends must read it!
Use Export-Mailbox cmdlet in the Exchange Management Shell to export mailbox data from one mailbox to a folder in another mailbox. New features have been added to Export-Mailbox cmdlet in Exchange Server Service Pack 1 (SP1).
Note: you cannot export mailbox data using the Exchange Management console. What data are exported?
By default, Export-Mailbox cmdlet exports all empty folders, special folders, and their subfolders to the target location. To specify which folders to include in the export, use the IncludeFolders parameter. To specify folders that are excluded from the export, use the ExcludeFolders parameter.
By default, the following special folders are exported when using Export-Mailbox cmdlet:
Inbox
Deleted Items
Drafts
Junk E-Mail
Outbox
Sent Items
Journal
Calendar
Contact person
Notes
Tasks
Export-Mailbox cmdlet exports all message types, including messages, calendar items, contacts, distribution lists, journal entries, tasks, notes, and documents. However, Export-Mailbox cmdlet does not export rules.
Export-Mailbox cmdlet will also export messages from the dumper. Messages in the dump program are converted to regular messages in the destination folder or .pst file where the data is exported.
Note: if you use any keyword parameters, Export-Mailbox cmdlet will first export all messages, including those in the dump program, and then search the target mailbox for messages that match the keyword criteria. Messages in the dump program on the source mailbox are converted to regular messages in the deleted items folder on the target mailbox and are also searched by keyword. Export-Mailbox cmdlet then deletes messages in the target mailbox that do not match the keyword criteria. If you use the DeleteContent parameter at the same time, Export-Mailbox deletes messages in the source mailbox that match the keyword criteria.
For more information about messages in the transfer dump, see how to recover deleted messages.
Export location of the data
Export data to a subfolder of the target mailbox and to the specified folder. To specify the target mailbox, use the TargetMailbox parameter. To specify a folder on the target mailbox, use the TargetFolder parameter. The TargetFolder parameter specifies the top-level mailbox folder that will be created on the target mailbox. This folder contains a subfolder named Recovered Data -. This subfolder contains exported folders and messages.
If the specified destination folder already exists in the target mailbox, the exported data is added to the existing folder. If the destination folder does not exist, the destination folder is created.
What's New in Exchange 2007 Service Pack 1 (SP1)
Exchange 2007 Service Pack 1 (SP1) introduces the following features for exporting mailbox data:
You can export mailbox data in a mailbox to a .pst file. To export to a. PST file, use the PSTFolderPath parameter to specify the path to the. PST file to which you want to export the data. Data cannot be exported from a mailbox in the recovery Storage Group (RSG) to a .pst file.
You can use the AllowMerge parameter to merge data exported to an existing destination folder. In Exchange 2007 SP1, if you specify the AllowMerge parameter, the name of the subfolder will not contain a date-time stamp. In Exchange 2007 SP1, you can specify the path to the .pst file to which you want to export the data instead of specifying the target mailbox and destination folder.
You can use the DeleteAssociatedMessages parameter to delete messages associated with the export process. Alternatively, you can use the IncludeAssociatedMessages parameter to include the messages associated with the export process. The associated message contains hidden data that contains information about rules, views, and forms.
If you use the DeleteContent parameter but do not specify the TargetMailbox parameter, you can delete the contents of the source mailbox without having to export it to another mailbox.
You can filter exported messages by recipient or sender. To filter by recipient, use the RecipientKeywords parameter. To filter by sender, use the SenderKeywords parameter.
For more information about the new features introduced by Exchange 2007 SP1, see the Export-Mailbox topic.
For more information about features prior to Exchange 2007 SP1, see the Export-Mailbox (RTM) topic.
Before we begin
To perform this step, the account you use must be delegated the following roles:
The ExchangeServer Administrators role and the local Administrators groups of the source and target servers
Full access to source and destination mailboxes
For more information about the permissions, role delegates, and rights required to manage Exchange2007, see permissions considerations.
Also, before performing this step, you should be aware of the following:
To use Export-Mailbox cmdlet, the source and destination mailboxes must be in the same forest. You cannot export data from a mailbox in a forest to a mailbox in a different forest.
Unable to export data from the public folder database.
To grant full access to a mailbox, use Add-MailboxPermission cmdlet and specify FullAccess for the AccessRights parameter. For example, if Admin01 needs to export data from a John mailbox to a mailbox named Export, you must first run the following command:
Add-MailboxPermission-Identity john-User Admin01-AccessRights FullAccessAdd-MailboxPermission-Identity Export-User Admin01-AccessRights FullAccess
To export data in an Exchange2003 or Exchange2000 mailbox, you must delegate the Exchange administrator role for the administrative group in which the server resides for the account you use.
To export data from a. PST file, you must run Export-Mailbox cmdlet from a 32-bit computer with the following software installed: for more information about downloading 32-bit Exchange 2007 administrative tools, see Microsoft Exchange Server 2007 Management Tools (32-Bit).
32-bit version of the Exchange management tool
Outlook 2003 Service Pack 2 (SP2) or Outlook 2007
If you export data to a folder in another mailbox, you must ensure that the specified target mailbox exists before running the command.
Steps
Exchange 2007 SP1
To use the Exchange Management Shell to export mailbox data in Exchange 2007 SP1
To export a special folder and an empty folder for a mailbox to a folder in the target mailbox, run the following command:
Export-Mailbox-Identity-TargetMailbox-TargetFolder
To export data to a .pst file, run the following command:
Export-Mailbox-Identity-PSTFolderPath\ .pst
To export data from a set of mailboxes, such as all mailboxes where the user title begins with "VP", run the following command:
Get-User | where {$_ .Title-ilike "VP*"} | Export-Mailbox-TargetFolder-TargetMailbox
To export data received within a specific date range to a .pst file, run the following command:
Export-Mailbox-Identity-StartDate ""-EndDate ""-PSTFolderPath\ .pst
To export only the data in the sent items folder, run the following command:
Export-Mailbox-Identity-IncludeFolders'\ Sent Items'-TargetFolder-TargetMailbox
To exclude certain folders (such as items in the junk Mail and contacts folders) when exporting, run the following command:
Export-Mailbox-TargetMailbox-TargetFolder-ExcludeFolders "\ Junk E-Mail", "\ Contacts"
To use a filter to specify which items in the source mailbox to include on export, run the following command:
Export-Mailbox-Identity-TargetMailbox-TargetFolder-ContentKeywords ""-AttachmentFilenames ""-StartDate "- RecipientKeywords
To find and delete items in a set of mailboxes (for example, all mailboxes on a database), run the following command:
Get-Mailbox-Database DB1 | Export-Mailbox-TargetMailbox ExportMailbox-TargetFolder VirusData-SubjectKeywords "Virus message"-DeleteContent
This example first gets all the mailboxes in the database DB1, and then searches for messages that contain the string "Virus message" in the subject line. It exports these messages to the ExportMailbox mailbox and deletes them from the source mailbox.
To find and delete messages from a set of mailboxes (for example, all mailboxes on a database) without exporting them to other mailboxes, run the following command:
Get-Mailbox-Database DB1 | Export-Mailbox-SubjectKeywords "Virus message"-DeleteContent
This example first gets all the mailboxes in the database DB1, then searches the subject for messages that contain the string "Virus message" and deletes them.
To export data from all the mailboxes of users in the Marketing organizational unit, run the following command:
Get-Mailbox-OrganizationalUnit Marketing | Export-Mailbox-PSTFolderPath C:\ PSTFiles
This example exports the data in each mailbox to a separate .pst file in the C:\ PSTFiles directory. The name of each .pst file will be .pst.
Exchange 2007 RTM
To use the Exchange Management Shell to export mailbox data in Exchange 2007 RTM
To export a special folder and an empty folder for a mailbox to a folder in the target mailbox, run the following command:
Export-Mailbox-Identity-TargetMailbox ExportMailbox-TargetFolder
To export data from a set of mailboxes, such as all mailboxes where the user title begins with "VP", run the following command:
Get-User | where {$_ .Title-ilike "VP*"} | Export-Mailbox-TargetFolder-TargetMailbox
To export data received within a specific date range, run the following command:
Export-Mailbox-Identity-StartDate ""-EndDate ""-TargetFolder-TargetMailbox
To export only the data in the sent items folder, run the following command:
Export-Mailbox-Identity-IncludeFolders'\ Sent Items'-TargetFolder-TargetMailbox
To exclude certain folders (such as items in the junk Mail and contacts folders) when exporting, run the following command:
Export-Mailbox-TargetMailbox-TargetFolder-ExcludeFolders "\ Junk E-Mail", "\ Contacts"
To use a filter to specify which items in the source mailbox to include on export, run the following command:
Export-Mailbox-Identity-TargetMailbox-TargetFolder-ContentKeywords ""-AttachmentFilenames "- StartDate"
To find and delete items in a set of mailboxes (for example, all mailboxes on a database), run the following command:
Get-Mailbox-Database DB1 | Export-Mailbox-TargetMailbox ExportMailbox-TargetFolder VirusData-SubjectKeywords "Virus message"-DeleteContent
This example first gets all the mailboxes in the database DB1, and then searches for messages that contain the string "Virus message" in the subject. It exports these messages to the ExportMailbox mailbox and deletes them from the source mailbox.
A solution to replace ExMerge.exe
In Exchange2003 or Exchange2000, you can export mailbox data using the MicrosoftExchangeServer Mailbox merge Wizard (ExMerge.exe). The following table lists the scenarios for using ExMerge.exe in Exchange2003 or Exchange2000 and the solutions for performing the corresponding tasks in Exchange2007.
Solutions in Exchange2003 and Exchange2000 Exchange2003 and Exchange2000 Resources Exchange2007 solution
"in a recovery scenario, use ExMerge.exe in Exchange2003 or Exchange2000 to move recovered data from the recovery storage group to another database."
For information about the Exchange2003 scenario, see Microsoft knowledge Base article 823176, how to recover or restore a single mailbox in Exchange Server 2003.
For information about the Exchange2000 scenario, see Microsoft Knowledgebase article 813337, how to recover or restore a single mailbox in Exchange2000 Server.
To perform this task in Exchange2007, use Restore-Mailbox cmdlet. "for more information, see how to use recovery Storage groups to recover mailboxes."
Use ExMerge.exe in Exchange2003 or Exchange2000 to export user data from a corrupted database to a. PST file, and then from a. PST file to a new database.
For information about Exchange2003 or Exchange2000 scenarios, see Microsoft Knowledgebase article 313184, how to restore information storage on Exchange2000 Server or Exchange Server 2003 in a single website.
To perform this task in Exchange2007, use Restore-Mailbox cmdlet to restore data from a backup, and then use Move-Mailbox cmdlet. For more information, see Restore-Mailbox and Move-Mailbox.
Use ExMerge.exe in Exchange2003 or Exchange2000 to move mailboxes to other servers.
For information about Exchange2003 or Exchange2000 scenarios, see Microsoft Knowledgebase article 328810, moving mailboxes between servers.
To perform this task in Exchange2007, use the move Mailbox wizard or Move-Mailbox cmdlet. For more information, see how to move mailboxes in a single forest or how to move mailboxes between forests.
Use ExMerge.exe in Exchange2003 or Exchange2000 to delete specific messages sent to users in your Exchange organization. For example, you may want to delete a virus message or an inadvertently sent confidential message.
For more information about Exchange2003 or Exchange2000 scenarios, see Microsoft Knowledgebase article 328202, how to use the ExMerge.exe tool to delete infected messages from your mailbox.
To perform this task in Exchange2007, use Export-Mailbox cmdlet with the DeleteContent parameter and any content filtering parameters such as AllContentKeywords, AttachmentFilenames, ContentKeywords, SubjectKeywords, StartDate, or EndDate. For more information, see Export-Mailbox.
Use ExMerge.exe in Exchange2003 or Exchange2000 to find specific messages sent to users in your Exchange organization, or to find all messages that contain specific words in the subject, message body, or attachment.
For more information about Exchange2003 or Exchange2000 scenarios, see Microsoft knowledge Base article 246916dXADM: how to find mailboxes that contain specific messages.
To perform this task in Exchange2007, use Export-Mailbox cmdlet with any content filtering parameter, such as AllContentKeywords, AttachmentFilenames, ContentKeywords, SubjectKeywords, StartDate, or EndDate, but not with the DeleteContent parameter. For more information, see Export-Mailbox.
If you encounter any problems while moving your mailbox, use ExMerge.exe in Exchange2003 or Exchange2000 as an alternate method to restore mailbox data.
None
To perform this task in Exchange2007, use Restore-Mailbox cmdlet to restore mailbox data and use Move-Mailbox cmdlet to move mailboxes. For more information, see Restore-Mailbox and Move-Mailbox.
Use ExMerge.exe in Exchange2003 or Exchange2000 to export data to a .pst file. For example, if you use a residency scenario, you may want to send mailbox contents to previous users in your organization.
None
To perform this task in Exchange 2007 SP1, use the PSTFolderPath parameter.
To perform this task in Exchange2007 RTM, you have two options:
Log in to the mailbox running MicrosoftOutlook and use Outlook to export the data to a .pst file.
Use Export-Mailbox cmdlet to export data from several mailboxes to a separate mailbox, then log in to that mailbox, and use Outlook to export the data to a .pst file. For more information about this scenario, see the ExchangeServer workgroup blog article ExchangeServer 2007 Export Mailbox task.
Note:
The content of each blog post and its URL are subject to change without prior notice. The content in each blog post is provided as is, without warranty and without permission. The use of the accompanying script examples or code shall be subject to the terms specified in the Microsoft terms of use.
The above is all the contents of the article "how to use Exchange to export mailbox data". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.