SP1 new-mailboximportrequest - no date filters?
Looking at the documentation it appears that the StartDate and EndDate parameters that were present on import-mailbox and export-mailbox are not available on the new commands. That makes them quite crippled if so. Only being able to select by a specific list of folders and not a date range makes this a very difficult function to use. Is the documentation perhaps just not up to date?
August 26th, 2010 3:55am

Hey Stranger. I believe you can use the -ContentFilter switch and filter on the sent or received dates within the items.
Free Windows Admin Tool Kit Click here and download it now
August 26th, 2010 4:23am

Ok, yep. That's it. Wish they'd added CreationDate as a filterable parameter too, but Sent and Received do get to the bulk of the requirement. Thanks, A2.
August 26th, 2010 4:43am

hi, How did you proceed ? I can't use -ContentFilter with New-MailboxImportRequest :-(
Free Windows Admin Tool Kit Click here and download it now
September 16th, 2010 11:32am

Something like the example below but replace MBName with the desired mailbox name \\ExName\pstfiles\PSTName.pst with the desired filepath and PST name Dates with desired dates New-MailboxExportRequest -mailbox MBName -filepath \\exName\pstfiles\PSTName.pst -baditemlimit 10 -contentfilter {(Received -gt '2010-09-01') -and (Received -lt '2010-09-30')} Troy Werelius Lucid8
September 16th, 2010 11:50am

Thanks for the answer. But i want to import the content of a PST file to an exchange mailbox :-(
Free Windows Admin Tool Kit Click here and download it now
September 16th, 2010 11:58am

Something like the example below but replace MBName with the desired mailbox name \\ExName\pstfiles\PSTName.pst with the desired filepath and PST name Dates with desired dates New-MailboxImportRequest -FilePath \\exName\pstfiles\PSTName.pst -Mailbox mailbox MBName -contentfilter {(Received -gt '2010-09-01') -and (Received -lt '2010-09-30')} Troy Werelius Lucid8
September 16th, 2010 12:19pm

-ContentFilter switch is OK with New-MailboxExport Request command. But it is unknow when using with New-MailboxImport Request command. Argh...
Free Windows Admin Tool Kit Click here and download it now
September 16th, 2010 1:17pm

You are correct, that option is NOT supported for import. :-(
September 16th, 2010 1:24pm

Argh... i need import-mailbox with startdate switch back ! Is there any way to use it again ? Uninstall SP1 ? ...
Free Windows Admin Tool Kit Click here and download it now
September 16th, 2010 2:33pm

Maybe but I wouldn't recommend it since the results could be catastrophic. How many PST files are you talking about - Maybe you could make copies, open then remove the unwanted items before import Just out of curiosity why is limiting the date of items imported a major issue for you. Perhaps there another way around resolving this for you?
September 16th, 2010 2:37pm

1. 300 PST (near 700Go...) so i can't manually remove unwanted items. 2. I want to import mails received and sent after 2010-01-01 for space reason. My users keep EVERY mail (received, sent, spam etc...) So each PST is 2Go minimum. That's why i need a command to import only the last 9 months in received and sent items. In Exchange 2010 without SP1, the command was " dir \\share\pst\ | import-mailbox -startdate 01/01/2010" --> So simple ! Why did they removed this function...
Free Windows Admin Tool Kit Click here and download it now
September 16th, 2010 4:30pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics