Thanks Brian and Mathieu,

I will tell a little bit more about the background of this. The 
customer has asked for a folder called "private" to be created in the 
root of every users mailbox and if possible set a quota to this folder.

After this has been done, the customer wants to instruct his users to 
use only this folder only as their personal/private email folder and 
move everything that the users sees as being private, to the private 
folder. From that moment on, all other folders in the users mailboxes 
are no longer considered as private/personal.

I do have some additional questions:

- how would the script look if the requirement would be to create the 
folder in the root.

- The way the script is set up now, do I have to set up which users 
this script will apply to, I mean will it now apply to all users in the 
entire domain which are mailbox enabled?

- Is there any way that I can specify which users this script has to be 
applied to, I mean can I run it against all mailbox enabled users in a 
specific OU?





------------------------------------------------------------------------
-------
Re[2]: [ActiveDir] Add folder with quota to existing mailboxes - via 
scripting or tool
From: Mathieu CHATEAU <[EMAIL PROTECTED]> 
Date: Mon, 28 Aug 2006 00:24:47 +0200 

------------------------------------------------------------------------
--------

Hello Victor,

If the folder already exist, it will simply do nothing, except going 
into errors..

need to add a on error resume next or test if the folder exist before.

will create  in the inbox, as a subfolder

I don't see your goal with this folder...except if you turn special 
rights on it.

may ask them to put it [private] in the subject instead (it will work 
for the sent folders)

Regards,

Mathieu CHATEAU

http://lordoftheping.blogspot.com




Sunday, August 27, 2006, 10:26:59 PM, you wrote:


Thanks Mathieu, nice.

Does this create a folder in the root of the  mailbox?
 
Access all mailboxes you say, that sounds logical. I know  that
domain admins indeed dont actually have the full mailbox access (they 
have  some denies).

What if a user already has the folder, does this script  take this into 
account?

Again thanks.

Victor










From: Mathieu CHATEAU [mailto:[EMAIL PROTECTED] 

Sent: zondag 27 augustus 2006 22:04
To: Victor  W.

Cc: [EMAIL PROTECTED]

Subject: Re: [ActiveDir]  Add folder with quota to existing
mailboxes - via scripting or  tool


Hello Victor,

you will at least need an account that can access all mailboxes (not a 
domain  admins one)

(or give a script to everyone that they will execute)

To my knowledge, quota is mailbox based. You may set up a special 
retention  on this folder.


sample _vbscript_ to create the private folder

set olApp = CreateObject("Outlook.Application")     
set inbox = olApp.GetNamespace("MAPI").getDefaultFolder(6) 
set temp5 = inbox.folders.add("Private",6) 

hope it helps,

Regards,
 

Mathieu CHATEAU



http://lordoftheping.blogspot.com








Sunday, August 27, 2006, 8:57:03 PM, you wrote:


Does anybody know what is the 'best' way to add       

automatically a folder to existing mailboxes and set a quota on that 
same folder?

We would like all our users to get a folder called       

"private" added to the root of their mailbox and if possible, a quota 
to be set to that folder.

Can this be done by scripting easily or is there perhaps

even a tool which is capable of doing this?

This also counts for new, still to be created users. I mean, every user 
that will be created will have to have that certain folder added to his 
or her mailbox.

Offcourse this could be done by running the script a       
couple of times a day, checking if the folder exists allready and

if not, adding it. Or perhaps it can even by realised the

moment a user has been created.
  
Any ideas are greatly appreciated.
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ml/threads.aspx

Reply via email to