cancel
Showing results for 
Search instead for 
Did you mean: 
Rob_Wilcox1
Level 6
Partner

I had the need to test something out in Archive Explorer the other day.. and for the test I need a LOT of folders in the mailbox, thousands of them.. and of course thousands of archived items spread throughout those folders.

I wanted a structure a bit like this :

 

Inbox
    \t1
        \J1
        \J2
        ...
        \J65
    \t2
    ...
    \t125
 
Couple of items in each folder at all levels, archived.
 

To do this I put together the following script.  (See attached).  You run it by running :

 

cscript mover3.vbs create

 

It will just use the current Outlook profile - you could extend it to take that as a command line parameter, if you wanted to run this from the Enterprise Vault server, rather than a client.  In addition I've found the best way is to run Outlook in online mode.  As well as creating the folder structure what the script also does is move an item or two in to each of the folders it creates, so that when the whol structure is archived, you end up with many, many archive folder records.  It does this moving by taking items from the inbox, and copying them in to a subfolder.  So you will need to populate the inbox with many items first, using your favourite mass-mailer.

 

There is also an option to remove the created structure, should something go wrong part way through !  

cscript mover3.vbs remove

You can adapt it quite easily I think.  I did this on Outlook 2003, with CDO installed.  The script as is created just over 7600 folders.  

Version history
Last update:
‎06-16-2011 11:39 AM
Updated by: