Exchange contact export failing

Hello Experts - I made a post yesterday asking about the syntax for exporting Outlook contacts from an Exchange 2010 server limited by a date range.  I thought I had it since the command ran without errors but the output has no data so I closed it too soon.  Here is the command I'm running:

New-MailboxExportRequest -ContentFilter {(Received -lt '01/01/2019') -and (Received -gt '02/06/2019')} -Mailbox user1@domain.com -IncludeFolders "#Contacts#" -excludedumpster -filepath \\server\c$\contacts\user.pst

This returns a 256KB PST file which is empty regardless of the date range or user I am running it against.  Do I have this setup right?  Maybe something that only works in later versions of Exchange?
danbrown_IT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FOXActive Directory/Exchange EngineerCommented:
1. On the folder where you want to drop the results, right click> select properties>Security and make sure you have added the group
Exchange Trusted Subsystem and give the group Read/Write permission

2. Right-click that same folder again>properties>Sharing...copy the "network path" and put it after -filepath in your command


New-MailboxExportRequest -Mailbox user1@domain.com -IncludeFolders "#Contacts#" -ContentFilter {(Received -lt '01/01/2019') -and (Received -gt '02/06/2019')} -FilePath -filepath \\server\c$\contacts\user.pst
timgreen7077Exchange EngineerCommented:
You can create the cmdlets like this:

New-MailboxExportRequest -Mailbox "username" -IncludeFolders "#contacts#" -FilePath "\\sharepath\temp\contacts.pst"

Since you are getting the contacts I'm not sure the date range will apply properly since contacts don't have a sent or received date associated to it. I just tested the cmdlets I shared and it worked properly.
danbrown_IT ManagerAuthor Commented:
I have no problems exporting the entire set of contacts but needed to restrict it by date to capture them incrementally since I've already exported everything as of May 2018.  I just need contacts created after that date to avoid the duplicates.
Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

danbrown_IT ManagerAuthor Commented:
I think you may be right about the date range, no matter how I format it I'm getting an empty 256KB PST file as the output.
timgreen7077Exchange EngineerCommented:
agreed, but since a sent or received date isnt associated with a contact those parameters in the cmdlets wont apply to contacts, and I dont think a created date parameter is available for the cmdlets so you may have to use a 3rd party tool to accomplish this based on date range.
danbrown_IT ManagerAuthor Commented:
DO you know of a third party tool that would do this?
timgreen7077Exchange EngineerCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
danbrown_IT ManagerAuthor Commented:
Wow, that works great, thanks so much!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.