New-mailboxexportrequest

0 views
Skip to first unread message

Cristoforo Kanoy

unread,
Aug 3, 2024, 4:24:54 PM8/3/24
to boizimalfi

If you inspect closely, you will find that the assignment grants Organization Management members like you only delegation rights. This allows you, as an organization administrator, to decide who can run Mailbox Import Export cmdlets.

In my example, the Administrator account is assigned to a Role Group called Organization Management. That group has access to the role Mailbox Import Export Delegating. We have to add the admin account to the role.

Go to Active Directory and open the OU Microsoft Exchange Security Groups in the root domain of the forest. A new Universal Security Group is created with the name Exchange Mailbox Import Export.

Perhaps you should say at the TOP of the article that it is not applicable to Exchange in Office365? The MS documentation for the New-MailboxExportRequest cmdlet does exactly that:
-us/powershell/module/exchange/new-mailboxexportrequest?view=exchange-ps

Minimally, you should of checked -us/powershell/module/exchange/new-mailboxexportrequest?view=exchange-ps before finding his first article, -exchange-mailbox-to-pst-with-powershell/#h-check-mailbox-import-export-role-permission. The commands needing this role explicitly state its for on-premise.

The new code is exposed through a set of cmdlets that mimic the approach taken for mailbox moves. In other words, you create a new request to export or import data, you can manipulate or view properties of a request, you can fetch request statistics, remove a request from the queue, and so on. The actual processing of the requests is performed by the Exchange Mailbox Replication Service (MRS) running on a Client Access Server (CAS), just like mailbox moves.

1) I am assuming that you are in a country (or using a keymap from) where dates are commonly referred to DD/MM/YYYY instead of the more US way of MM/DD/YYYY. I am making this guess based on the inversion of the date in the error. So I would try to flip that around in your command.

If not, Paul Cunningham runs ExchangeServerPro.com (or @ExchServPro) out of Australia and has posted a lot of sample PowerShell for people to share. He might have some insight into the problem of working with dates and times on an Australian server.

This command run perfectly and the pst file filled. After that I run the DeleteContent command to delete all emails of 1 January 2011 and older that have been Send or Received from the Archive Mailbox:

Do you happen to know if I can rerstore emails that have been deleted with the SearchQuery -DeletContent option? Because using the SearchQuery option and restore all content back I cannot see all emails. The date range is correct.

When we export anything with the new-mailboxexportrequest and view the PST with a third party tool like Kroll ontrack the create date for the message is the date of the collection, the date the pst was exported. If the PST file is accessed with Outlook the dates are the actual dates associated with the messages.

I have used the export with different timeframes without any problems regarding mails. But I have seen holes in the users calendars from this type of export. Do we need to add any extra commands to make sure we have all calendar items and contacts etc?

Because it ist cross org it would be better to have Mailadress instead of alias. If i put WindowsEmailAddress instead of the alias I always get soehting like type mismatch. Do you know a way to export the emailadress as part of the filename in a mass export?

Question, is there a way to limit how many mailboxes export at one time, i try this and it seems to want to do 4 at the same time, i would prefer to limit it to 1 or 2 as to not slow down my mail server, as it is an older box.

i am the Admin myself, i can control it, but since we are a 24/7 operation i was concerned that the export using %100 CPU usage across the board for several hours would cause a slow down in the mail server.

As it turns out i guess it does manage it well as i had it running over night and through to about mid day and emails were still being processed to everyone, so seems you dont need to limit it, if it were possible.

Has anybody tried to do this export using a Journaled mailbox as the source mailbox? When I run the command below it appears as though everything intended exports (copies) to my intended PST. When I open my PST I can see all the Journaled wrapped messages. They each have attachments that are the original message. I can see sender, recipient, date/time, and subject on this original message but no original content. If the original message had attachments I can see those as well . . ..but no original content in the body.

I have query when we first export a mailbox to pst it will export all mails when i give second time the same export mailbox command will it overwrite and export whole mailbox or it will only export the mails after the last export like incremental
Thanks Sir

The ConflictResolutionOption parameter specifies the action for the Microsoft Exchange Mailbox Replication service (MRS) to take if there are multiple matching messages in the target. This parameter takes the following values:
KeepSourceItem
KeepLatestItem
KeepAll
The default value is KeepSourceItem.

Moved means copied from the source then deleted? If so, you need to use the Search-Mailbox cmdlet to search for the items you want to copy to a target mailbox and the DeleteContent parameter to remove them from the source. You can then export the target mailbox to a PST.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages