Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Enterprise practices user mailbox import / export (part 2)

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In part 2, I'll show you how to import / export data using the new cmdlet provided in Exchange Server, and how to view import and export information statistics to do so.

Let's go!

Import data from a PST file to a mailbox

Now is the time to try to import data from an PST file into an Exchange Server mailbox using New-MailboxImportRequest cmdlet.

Suppose I want to import a PST file named nhel.pst on a server named "EX02", which is located in a file share named "PSTFiles" (yes, unlike the Import-Mailbox that you now point to the file share instead of the local path) my Exchange 2010 mailbox. To initiate a new mailbox import request and import all the data from this PST file into my mailbox, I will use the following command:

New-MailboxImportRequest-Mailbox HEW-FilePath\\ EX02\ PSTFileShare\ NHEL.pst

This will simply take all the folders and data in each folder and import them into the specified mailbox.

If we want to get other details about the mailbox import request, we can use Get-MailboxImportRequest or Get-MailboxImportRequestStatistics cmdlet. The latter provides more information about the import, not the Get-MailboxImportRequest cmdlet.

Because you can create multiple import requests for the same mailbox at the same time, you need to specify the import request name when using Get-MailboxImportRequest * cmdlet. To get a list of existing import requests, use the following command:

GET-MailboxImportRequest

If I want to use Get-MailboxImportRequest cmdlet to get additional information about the mailbox import request named "MailboxImport2", I need to use the following command:

Get-MailboxImportRequest HEW\ MailboxImport2 | FL

Or, if you use Get-MailboxImportRequestStatistics cmdlet: count the progress of completion

When we import data from a PST file, we need to manually delete the import request using Remove-MailboxImportRequest cmdlet. If we want to cancel the request for some reason, we can also use this cmdlet to delete some of the completed import requests.

Advanced import mailbox request command

If the basic command we just executed is not enough when you want to import which data from the PST file, you can use the "- IncludeFolders" parameter to specify which folder or folders in the PST file should be imported. For example, if I only want to import data from my inbox folder, I will use the following command:

New-MailboxImportRequest-Mailbox IT01-FilePath\\ EX02\ PSTFileShare\ H\ NHEL.pst-IncludeFolders "# Inbox#"

I can also specify that the contents of the PST file should be placed in a new folder (destination folder) in the mailbox. This is a good way to do this if you do not want the items in the PST file to merge with the items in the mailbox. To do this, we will use this command:

New-MailboxImportRequest-Mailbox IT01-FilePath\\ EX02\ PSTFileShare\ NHEL.pst-TargetRootFolder "date in PST file"

Note:

If the destination root folder does not exist, it will be created automatically.

In addition to the above command, you can also choose to create a request but stay in pending mode (using the "- suspend" parameter) until you are ready to start it. In addition, if it is more appropriate for this situation, you can use the "- ExcludeFolders" parameter instead of "- IncludeFolders". In addition, you can use the "- ExcludeDumpster" parameter to exclude the dump program. In addition, as mentioned above, you can perform an import through multiple import requests running against the same mailbox. If you need to import multiple PST files named after the mailbox aliases of the mailboxes they need to import, we can use the following command (all PST file aliases and PST names in the shared "PSTFiles" on the server "EX02" will be imported based on the mailbox):

Dir\\ EX02\ PSTFiles\ * .pst |% {New-MailboxImportRequest-Name PSTImport-BatchName Imports-Mailbox $_. BaseName-FilePath $_ .FullName}

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report