none
Best options to temporarily disable auto-archiving into archive mailbox?

    Question

  • We don't want to place a litigation hold because that would prevent deleting mail and we don't want to remove their archive mailboxes because we want them to still have access to read the archives, but we want to temporarily disable any retention policies that automatically move mailbox contents into their online archive.

    We need this to apply to all mailboxes.

    What are the options to do this?


    • Edited by Kalimanne Tuesday, April 03, 2018 4:24 PM
    Tuesday, April 03, 2018 4:23 PM

Answers

  • Hi Kalimanne,

    To temporarily disable retention policy on all mailboxes, we can set retention policy to null on all mailboxes.
    For example:

     Get-Mailbox -ResultSize unlimited -RecipientTypeDetails UserMailbox | Set-Mailbox -RetentionPolicy $none

    And run below command to apply it:

    Get-Mailbox | Start-ManageFolderAssistant

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.


    Wednesday, April 04, 2018 3:12 PM
  • Hi Kalimanne,

    We can take steps below to test whether the "RetentionHoldEnabled " parameter works:
    1. Create a retention policy with a personal tag such a "one day permanent delete" or "one day archive".
    2. Apply this policy to a test mailbox.
    3. Run command below to update retention policy for this mailbox(it may take a long time to be e
    ffective)

    Start-ManagedFolderAssistant -Identity test@contoso.com

    4. Apply the retention tag to an mail and run commands below:

    Set-Mailbox test@contoso.com -RetentionHoldEnabled $true
    Start-ManagedFolderAssistant -Identity test@contoso.com

    5. Wait to see whether this mail will be deleted or archived automatically.

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, April 05, 2018 10:11 AM

All replies

  • Hi Kalimanne,

    To temporarily disable retention policy on all mailboxes, we can set retention policy to null on all mailboxes.
    For example:

     Get-Mailbox -ResultSize unlimited -RecipientTypeDetails UserMailbox | Set-Mailbox -RetentionPolicy $none

    And run below command to apply it:

    Get-Mailbox | Start-ManageFolderAssistant

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.


    Wednesday, April 04, 2018 3:12 PM
  • Would it be better to enable a temporary retention hold for all users and if so, how can we do this?


    Wednesday, April 04, 2018 10:29 PM
  • Would this command work?

    Get-Mailbox -ResultSize unlimited -RecipientTypeDetails UserMailbox | Set-Mailbox -RetentionHoldEnabled $true

    Is there a way to test a whatif so I can run the command as a test without making any changes?

    Wednesday, April 04, 2018 11:33 PM
  • The command didn't work.  See errors below.

    [PS] C:\Windows\system32>Get-Mailbox -ResultSize unlimited -RecipientTypeDetails UserMailbox | Set-Mailbox -RentionPolicy $none
    A positional parameter cannot be found that accepts argument '$null'.
        + CategoryInfo          : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Set-Mailbox
    
    Invoke-Command : Cannot write input as there are no more running pipelines
    Thursday, April 05, 2018 12:26 AM
  • Hi Kalimanne,

    I am so sorry about that, is"RetentionPolicy" not "RentionPolicy", I have edited it now.

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, April 05, 2018 9:32 AM
  • Hi Kalimanne,

    We can take steps below to test whether the "RetentionHoldEnabled " parameter works:
    1. Create a retention policy with a personal tag such a "one day permanent delete" or "one day archive".
    2. Apply this policy to a test mailbox.
    3. Run command below to update retention policy for this mailbox(it may take a long time to be e
    ffective)

    Start-ManagedFolderAssistant -Identity test@contoso.com

    4. Apply the retention tag to an mail and run commands below:

    Set-Mailbox test@contoso.com -RetentionHoldEnabled $true
    Start-ManagedFolderAssistant -Identity test@contoso.com

    5. Wait to see whether this mail will be deleted or archived automatically.

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, April 05, 2018 10:11 AM