Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 8820

Exporting Mailbox to PST using Powershell - ContentFilter Date gets changed.

$
0
0

Hi,

I'm trying to export mailboxes to PST files using the -Contentfilter Date Range switch. There is a known issue with using the new-mailboxexportrequest command if your Exchange Server has non-US regional settings so I temporarily change this to US and then open powershell to run the following command:

foreach ($i in (Import-Csv .\exports.csv)) { New-MailboxExportRequest -ContentFilter {(Received -lt '04/01/2010') -and (Received -gt '01/01/1990')} -Mailbox $i.Alias -FilePath "\\fileserver\pst\$($i.Alias)@domain.com" }

The dates above have been set to MMDDYYYY so I can extract emails 01 Jan 1990 - 01 Apr 2010. The commands seem to work until I check the PST files. It seems that the specific 'lt' date range of 04/01/2010 has been applied on some of the mailboxes while the others use 01/04/2010. If I run the command for one mailbox at a time then the correct date is used for each one.  I've tried using specific CAS Servers (we have an array) but this doesn't seem to make a difference. I've pasted the output from the command below - you can see how the contentfilter date has changed for different users. Can anyone help with this as we have 2500 mailboxes to extract.

SerializationData             : {0, 1, 0, 0...}
RunspaceId                    : 68ec7d65-cead-4c21-89ad-8e35b85b01d6
Name                          : MailboxExport
Status                        : Completed
StatusDetail                  : Completed
SyncStage                     : SyncFinished
Flags                         : IntraOrg, Push
RequestStyle                  : IntraOrg
Direction                     : Push
Protect                       : False
Suspend                       : False
FilePath                      :\\fileserver\pst\john.smith@domain.com
SourceAlias                   : john.smith
SourceIsArchive               : False
SourceExchangeGuid            : 1d892315-d740-4281-5135-39ded4273d61
SourceRootFolder              :
SourceVersion                 : Version 14.1 (Build 218.0)
SourceMailboxIdentity         : domain.local/Users/john.smith
SourceDatabase                : DB-01
TargetRootFolder              :
TargetVersion                 : Version 0.0 (Build 0.0)
IncludeFolders                : {}
ExcludeFolders                : {}
ExcludeDumpster               : False
ConflictResolutionOption      : KeepSourceItem
AssociatedMessagesCopyOption  : DoNotCopy
BatchName                     :
ContentFilter                 : ((Received -lt '01/04/2010 00:00:00') -and (Received -gt '01/01/1990 00:00:00'))
ContentFilterLanguage         :
BadItemLimit                  : 0
BadItemsEncountered           : 0
QueuedTimestamp               : 11/6/2012 1:54:20 PM
StartTimestamp                : 11/6/2012 1:56:56 PM
LastUpdateTimestamp           : 11/6/2012 1:57:35 PM
CompletionTimestamp           : 11/6/2012 1:57:35 PM
SuspendedTimestamp            :
OverallDuration               : 00:03:14
TotalSuspendedDuration        :
TotalFailedDuration           :
TotalQueuedDuration           : 00:02:34
TotalInProgressDuration       : 00:00:39

TotalStalledDueToHADuration   :
TotalTransientFailureDuration :  

SerializationData             : {0, 1, 0, 0...}
RunspaceId                    : 68ec7d65-cead-4c21-89ad-8e35b85b01d6
Name                          : MailboxExport
Status                        : Completed
StatusDetail                  : Completed
SyncStage                     : SyncFinished
Flags                         : IntraOrg, Push
RequestStyle                  : IntraOrg
Direction                     : Push
Protect                       : False
Suspend                       : False
FilePath                      :\\filestore\pst\michael.brown@domain.com
SourceAlias                   : michael.brown
SourceIsArchive               : False
SourceExchangeGuid            : 2589ec15-18b1-448e-94a1-682141212529
SourceRootFolder              :
SourceVersion                 : Version 14.1 (Build 218.0)
SourceMailboxIdentity         : domain.local/Users/Michael.Brown
SourceDatabase                : DB-02
TargetRootFolder              :
TargetVersion                 : Version 0.0 (Build 0.0)
IncludeFolders                : {}
ExcludeFolders                : {}
ExcludeDumpster               : False
ConflictResolutionOption      : KeepSourceItem
AssociatedMessagesCopyOption  : DoNotCopy
BatchName                     :
ContentFilter                 : ((Received -lt '04/01/2010 12:00:00 AM') -and (Received -gt '01/01/1990 12:00:00 AM'))
ContentFilterLanguage         :
BadItemLimit                  : 0
BadItemsEncountered           : 0
QueuedTimestamp               : 11/6/2012 1:46:16 PM
StartTimestamp                : 11/6/2012 1:51:07 PM
LastUpdateTimestamp           : 11/6/2012 1:53:46 PM
CompletionTimestamp           : 11/6/2012 1:53:46 PM
SuspendedTimestamp            :
OverallDuration               : 00:07:29
TotalSuspendedDuration        :
TotalFailedDuration           :
TotalQueuedDuration           : 00:04:49
TotalInProgressDuration       : 00:02:39
TotalStalledDueToHADuration   :
TotalTransientFailureDuration :


Viewing all articles
Browse latest Browse all 8820

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>