Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

EVPM script to disable archiving of "Sent Items"

Updated: 21 May 2010 | 7 comments
MatsHolm's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

Hi all!

I haven't worked with EVPM before and ond client asked me to create a EVPM script to disable archiving from Sent Items only.
I have created the below script but have some question:

  1. Will the script work as expected?
  2. WHen do I have to run it, the client only archives on saturdays?
  3. When setting the DistinguishedName = All, what happens to mailboxes not archived/used within EV?

Planning to run: EVPM -e EXSERVER -m SystemMailbox -f D:\sentitems.ini

SentItems.INI as follows:

[Directory]
DirectoryComputername = EVSERVER
SiteName = CLIENTSITE
 
[Mailbox]
DistinguishedName = All
 
[Folder]
Name = SentItems
Filtername = DoNotArchive
OverrideArchiveLocks = true

discussion Filed Under:

Comments

Wayne Humphrey's picture
17
Nov
2009
0 Votes 0
Login to vote

Hi MatsHolm, Looks good to

Hi MatsHolm,

Looks good to me, as for your questions here the answers:

1) Yes
2) You can run it whenever you wan, but you should run it weekly to catch newly enabled mailboxes
3) Nothing will happen to non enabled mailboxes.

Hope this helps.

www.quadrotech-it.com - All your EV Tools

MatsHolm's picture
18
Nov
2009
0 Votes 0
Login to vote

Hi and thanks!

Hi and thanks!

Just one thing.
We're using "automatic enable" for the users on the provisioning groups but as far as I understand the user is enabled next time the archiving task is run.
If I have archiving on saturdays between 06 - 18 and was planning to run the EVPM script on friday night.
Wwill the EVPM script change the archiving behaviour for the mailboexes that were provisioned during the week or will it miss these mailboxes cause they get enabled on saturday at 06?
This is important cause we don't want to archive from the Sent Items folder and if the maiboxes get enabled on saturday at archinig then the first archive run will include the Sent Items???

//Mats

Wayne Humphrey's picture
18
Nov
2009
0 Votes 0
Login to vote

It will only take affect once

It will only take affect once the user has been enabled.  So your best bet would be to let EVPM enable your mailboxes for you.

www.quadrotech-it.com - All your EV Tools

MatsHolm's picture
18
Nov
2009
0 Votes 0
Login to vote

EVPM to enable users and

EVPM to enable users and exclude SentItems?

Do I have to use two different scripts for this or can I use the same ini file?

Something like:

[Directory]
DirectoryComputername = EVserver
SiteName = EVsite
 
[Mailbox]
DistinguishedName = All
 
[Folder]
Name   = mailboxroot
Enabled = true
Name = SentItems
Filtername = DoNotArchive
OverrideArchiveLocks = true

Looks strange with two name= sections...
Might have two different scripts the first to enable mailboxes:

[Directory]
DirectoryComputername = EVserver
SiteName = EVsite
 
[Mailbox]
ProvisioningGroup = PGroups
 
[Folder]
Name   = mailboxroot
Enabled = true

and a second one to change the Sent Item settings:

[Directory]
DirectoryComputername = EVserver
SiteName = EVsite
 
[Mailbox]
DistinguishedName = All
 
[Folder]
Name = SentItems
Filtername = DoNotArchive
OverrideArchiveLocks = true

Is this right or how should I do?

Wayne Humphrey's picture
18
Nov
2009
0 Votes 0
Login to vote

Nearly there  this is what it

Nearly there  this is what it should look like:

[Directory]
DirectoryComputername = EVserver
SiteName = EVsite

[Mailbox]
DistinguishedName = All
 
[Folder]
Name   = Mailboxroot
Enabled = True
OverrideArchiveLocks = True

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

Only one script needed

www.quadrotech-it.com - All your EV Tools

MatsHolm's picture
18
Nov
2009
0 Votes 0
Login to vote

EVPM script on automatic

EVPM script on automatic enabled users...

Tried to run the first script just disabling archiving on SentItems folder when users have been provisioned, added to a Windows Group and the provisioning task have been run and this provisioning group enables the mailbox automatic.

When this provisioning have run the new user comes in as disabled and I can see the user and syncronize settings but the user doesn't have an archive.

When running my donotarchive-sentitems it runs the script on enabled users and on the new disables user aswell.

I will install the DCOM client on the new user and see what it says on the Sent Items folder.

//Mats

MatsHolm's picture
18
Nov
2009
0 Votes 0
Login to vote

Works with just DonotArchive

Works with just DonotArchive in one script.

The user is provisioned and automatic enabled is checked and the user comes in as disabled.
When running the script saying that senttems is not archived it processes all users in that provisong group nicly.

When the archive process runs and the user gets enabled I can see in the users mailbox that Sent Items has don't archive set on it.

Will continue this way but thanks on the above script.
The reaspon why we continue as this is that this is a temp solution until their exchange group has set an exchange policy that will remove objects in sent items older than 60 days (archive is set top older than 90) and when this is done nothing has to be done except disabling this script and it works as they excpected.

//mats