Archive email until a particular date automatically
Hello.
I need to archive all email until 31/12/2016.
Now i have an Archiving Policy based on number of days calculated from 31/12/2016 until the day when i manually start Archiving Task.
The problem is that i have to run Exchange task every day manually and one mailbox at time (after modify the number of days).
There is a sort of script that can i use to accomplish this?
Thank You.
Daniele
Hi Daniele,
Which version of Enterprise Vault have you ?
In version 12.0 you can use powershell for script your change in the archiving policy each day. Look the command "Set-EVExchangeMailboxPolicy" for update the properties of your archiving policy.Out of curiosity, could you explain me why you need to do it ? I think that all email received before 31/12/2016 must be archived since a long time and that you can stop archiving for dont't archive more email. Other solution, you can scheduled an archiving only one time by week, and update your policy only one time by week ...
Regards,
Antoine
As Titoine31 correctly mentioned, you can easily achieve this using specific EV Powershell commands introduced in EV12.
The command Set-EVExchangeMailboxPolicy will set the 'Never archive items younger than' value on the Exchange Mailbox Policy. You may schedule a task to run the Powershell command everyday prior to the scheduled mailbox synchronisation task, so that everyday the policy (and mailbox) is stamped with a value to not archive items younger than 31-Dec-16.
Set-EVExchangeMailboxPolicy -Name "YourPolicyName" -MinimumArchiveAge (New-TimeSpan -Start 31-Dec-2016).Days -MinimumArchiveAgeUnits 0
The scheduled archiving task then doesn't need to be run manually if you are updating the policy everyday. Would suggest you test this thoroughly before implementation.