start Managed Folder Assistant on all mailboxes in a database

In some cases you may need to manually kickoff the Exchange Managed Folder Assistant in order to get archiving policies to run.  The following command will run the managed folder assistant against “DATABASE01”.

Get-Mailbox -database “DATABASE01” -DomainController AD01 | Start-ManagedFolderAssistant

Related

One thought on “start Managed Folder Assistant on all mailboxes in a database

  1. Fahad

    Managed folder assistance does not work in pipeline anymore, you need to user loop to perform action on all mail boxes or mailbox in a particular database. See examples below

    For all Mail boxes

    $mbxs = Get-Mailbox

    foreach ($mbx in $mbxs) {

    Start-ManagedFolderAssistant –Identity “$mbx”

    }

    For Mail boxes in particular database

    $mbxs = Get-Mailbox -Database MailDB1

    foreach ($mbx in $mbxs) {

    Start-ManagedFolderAssistant –Identity “$mbx”

    }

    Be mind full depending on the amount of mail boxes the script will take little while to complete.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.