Pages

Monday, July 2, 2012

EVPM Script for bulk archive


There was a bulk mailbox archive request and its was tough to run the script for each user to change the default policy which force EV to archive mails from users who already left the organization.  Finally we have decided to create a group and include LDAP query in the EVPM script, below is the script which i was using.
[Directory]
directorycomputername=localhost ; Localhost can be changed by the server name
sitename=EVSITE ; Site name of EV

[Mailbox]
LDAPquery = (MemberOf= CN=BulkArchiveLST,OU=Groups,OU=Departure,DC=LAB,DC=com) ; ‘BulkArchiveLST’ is the name of group which i was using.
[Filter]
name=ArchiveAll ; Name of filter
CreateShortcut=true ; Create shortcut in the mailbox, if you don’t like to have shortcut then make it ‘false’
DeleteOriginal=true
unreadMAIL=true
UseInactivityPeriod=true
InactivityUnits=days
InactivityPeriod=0 ; ‘0’ days means mails which came today also gets archive
[Folder]
name=mailboxroot ;policy applies from root
Suspended=false
enabled=true
filtername=ArchiveAll
retentioncategory=Default ; Name of retention category
OverrideArchiveLocks=true
You have to save the script in ‘.ini’ format and execute the same from command prompt. This script will apply the filter to all mailboxes/users which are member of the group.

No comments:

Post a Comment