cancel
Showing results for 
Search instead for 
Did you mean: 

Using EVPM to create folders under a "archive root folder"

ThomasMillerJR
Level 4
I need to create archive folders under a root folder via EVPM.

I haven't found any examples that build a structure vs. a flat list.


The structure needs to look like this

ARCHIVE  (Main Folder with no retention)
  |------>   HR  ( 7 years) 
                  |--->   User created folder (7-years)  (All subfolders at this level would get same retention as parent.
  |------>   Finance (10 years)


Can I do this? 

[Folder]
Name = ARCHIVE
Filtername = DoNotArchive
OverrideArchiveLocks = True

[Folder]
Name = \ARCHIVE\HR
FilterName = 90days
NonDeletable = True
RetentionCategory = Administration
OverrideArchiveLocks = True

[Folder]
Name = \ARCHIVE\Finance
FilterName = 90days
NonDeletable = True
RetentionCategory = Administration
OverrideArchiveLocks = True

Thanks

Tom Miller
1 REPLY 1

Ameen
Level 6

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.