none
Apply Exchange retention tag to specific custom folder in Outlook RRS feed

  • Question

  • Is there a way to programmatically apply a retention tag to a named custom folder in Outlook? The Exchange tags can be targeted to specific default folders or to "all non-default folders", but I do not see a way to apply a tag to a specific custom folder. It can be done manually by the user through the folder properties > policy section, but this is something I want to deploy to thousands of mailboxes programmatically. This would help us migrated a specific folder to the Exchange online archive.

    I would think modifying a folder property related to tags might do it, but it is a bit above my head.

    Thanks,

    Jeff

    Wednesday, April 18, 2012 8:50 PM

Answers

  • You can try to use Redemption to script that - run your script as a domain user who can access the mailboxes in question, call RDOSession.LogonExchangeMailbox for that user, go through the list of mailboxes that you need to process and call RDOSession.GetSharedMailbox (returns RDOStore). For each mailbox, recursively (RDOFolder.Folders) process all folders starting with RDOStore.IPMRootFolder and set the retention properties using RDOFolder.Fields.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Thursday, April 19, 2012 4:55 PM

All replies

  • We are looking for the same thing.. we tried a macro but it took forever and was not reliable.

    Any help would be appreciated
    • Edited by Brian310011 Wednesday, April 18, 2012 8:56 PM
    Wednesday, April 18, 2012 8:56 PM
  • I have not tried that, but can you set the relevant properties (http://msdn.microsoft.com/en-us/library/ee158272(v=exchg.80).aspx) on the folder level using MAPIFolder.PropertyAccessor?

    

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Wednesday, April 18, 2012 9:10 PM
  • check this link this may help you out

    http://technet.microsoft.com/en-us/library/dd297955.aspx

    Thursday, April 19, 2012 12:08 PM
  • Thanks, Kevin. Unfortunately, retention tags can't be scoped via the native powershell cmdlets to a specific named custom folder, like, for example, "myspecialfolder". It can be scoped via powershell to specific default folders or to "all other folder in the mailbox" or, via manual user interaction to a specific named custom folder. This limitation is what I'm looking to address since I have to migrate a specific folder to the archive for thousands of people. My other option, which I've tested and it works, is to build an Exchange 2010 RTM server, moved mailboxes there, run the deprecated mailbox export with the delete content switch, move the mailboxes back out, then re-import the PST to the archive. Lots of steps that I'd like to avoid.

    Thursday, April 19, 2012 1:33 PM
  • You can try to use Redemption to script that - run your script as a domain user who can access the mailboxes in question, call RDOSession.LogonExchangeMailbox for that user, go through the list of mailboxes that you need to process and call RDOSession.GetSharedMailbox (returns RDOStore). For each mailbox, recursively (RDOFolder.Folders) process all folders starting with RDOStore.IPMRootFolder and set the retention properties using RDOFolder.Fields.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Thursday, April 19, 2012 4:55 PM