MS Exchange - The provided ContentFilter value is invalid
Have been playing with New-MailboxExportRequest cmdlet exporting emails for specific date ranges and found what looks like Exchange Management Shell bug.
On Exchange 2010 SP2 server with UK English region run following command:
New-MailboxExportRequest -ContentFilter {(Received -ge '01/05/2012') -and (Received -le '01/06/2012')} -Mailbox "user.name" -FilePath "\\server\share\username.pst"
Everything works as expected and all May 2012 emails are exported. However, following command fails:
New-MailboxExportRequest -ContentFilter {(Received -ge '01/05/2012') -and (Received -le '31/05/2012')} -Mailbox "user.name" -FilePath "\\server\share\username.pst"
Error:
The provided ContentFilter value is invalid. ContentFilter is invalid. The value "31/05/2012" could not be converted to type System.DateTime. --> The value "31/05/2012" could not be converted to type System.DateTime.
+ CategoryInfo : InvalidArgument: ((Received -ge '...e '31/05/2012'):String) [], ContentFilterInvalidPermanentException
+ FullyQualifiedErrorId : 3307495E
Read more: MS Exchange - The provided ContentFilter value is invalid
Exchange - The term ‘New-MailboxExportRequest’ is not recognized
Trying to run New-MailboxExportRequest cmdlet on Exchange 2010 SP1 or later and getting following error.
The term ‘New-MailboxExportRequest’ is not recognized as the name of a cmdlet, function, script file, or operable program.
The most likely reason is that your user account doesn't have Mailbox Import Export role. To add it run:
New-ManagementRoleAssignment -Role "Mailbox Import Export" –User domain\user.name
Restart Exchange Management Shell and you should be good to go.
Exchange 2010 SP1 - Export emails for specified date range to .pst
Microsoft Exchange 2010 SP1 introduces new cmdlets to export and import mailbox data:
New-MailboxExportRequest
New-MailboxImportRequest
This replaces previous Export-Mailbox cmdlet and the main advantage is that new methods don't require you to run Outlook in order to import and export to .pst files.
To export whole mailbox run:
New-MailboxExportRequest -Mailbox "user.name" -FilePath "\\server\share\user.name.pst"
To export only emails for specified data range run:
New-MailboxExportRequest -ContentFilter {(Received -ge '05/01/2012') -and (Received -le '07/21/2012')} -Mailbox "user.name" -FilePath "\\Server\Share\user.name.pst"
This will export emails between 01 May 2012 and 21 July 2012.
Read more: Exchange 2010 SP1 - Export emails for specified date range to .pst
Automate Symantec backup Exec 2010 backups to rotating NAS devices
Background
Customer is using Symantec Backup Exec 2010 Small Business Server Suite to perform daily data and Exchange backups. Backups are saved to two rotating NAS devices. One of them is kept off-site and devices are manually swapped every Friday.
Issue
User has to open Backup Exec and manually select which device is online, which offline every time while swapping NAS boxes. Ideally they would like just to swap devices without touching the server.
Devices are named BAK1 and BAK2. Let’s say BAK1 is plugged in and BAK2 if offline. When both devices in Backup Exec are marked as Online and Enabled everything is working fine. Backup Exec skips BAK2 (and marks it as offline) and backs up to BAK1. Problem occurs next week when customer swaps devices. BAK2 is marked as offline so Backup Exec doesn’t even try to use it. It tries to use BAK2, but now it’s offline, so Backup Exec marks BAK2 as offline and backup fails as there is no online devices as far as Backup Exec is concerned.
Read more: Automate Symantec backup Exec 2010 backups to rotating NAS devices
- iPhones don't sync with Exchange 2010 - connection to the server failed
- Can't move Exchange mailbox - Insufficient Access Rights to Perform the Operation
- Customize look of Exchange 2010 Web App
- Public folders not replicating from Exchange 2007 to 2010
- Repairing Exchange mailbox database after a hard shutdown
- eseutil.exe - Unable to find the callback library jcb.dll (or one of its dependencies)
- Connect to server console session via Remote Desktop
- Access Denied error trying to add shared printer on SBS 2008
- Manage Windows 7 workstations with SBS 2008
- Remove old DHCP server from Windows Server domain