03-01-2010 08:32 AM
03-10-2010 06:11 AM
Hello,
You can try the below script which i am using now,
Please copy the script into a notepad and edit according to your needs and save it as ini file.
--------------------------Start----------------------------------------------------------------
; Description: EVPM Script to enable archiving on given folders and override
; retention category and archive policy on folder
;
[Directory]
DirectoryComputerName = ------[Type server name where directory service runs]
Sitename = --------[Type the site name]
[Mailbox]
DistinguishedName = ------[Type the distigush name of the mailbox, this you can find it from AD]
;
;
;
;
[Filter]
Name = MyArchive ----------[Type is the filtername, in this example MyArchive]
CreateShortcut = true -----[Type true if you want to create shortcut of the mails which are archived from this folder]
DeleteOriginal = true -----[Type true so that it will delete the original and create/not create a short cut as you mentioned in the above line]
UnreadMail = true ---------[Type true if you want to archive the Unread mail from this folder]
UseInactivityPeriod = true -[If you want to use inactive period then type true]
InactivityUnits = Days ----[You can mentioned the inactivity period, in this example its days. You can have months if required]
InactivityPeriod = 1 ------[Type the number of days. In this example mails which are older than one day will get archived]
;
;Mailbox Folder which to apply custom archiving policy to
;
[Folder]
name = \.Archive One Day ------[Type the name of the folder that you want to create, in this example '.Archive One Day'. The '.' will make the folder in the top of your outlook hirachi]
RetentionCategory = Five Years ----[Type the name of retention category that you need to apply for this folder]
Filtername = MyArchive ---------[Type the filtername here wich you have created in the top]
OverrideArchiveLocks = true ---[Type true so that this will override the setting that you have in the parrent folder]
-----------------------------------------End-----------------------------------
Please let me know if you are stuck some were.
Regards,
Ameen.