Powershell command to check when was the last time Managed Folder Assitant was run.

Abhimanyu Sharma 86 Reputation points
2022-05-18T14:06:29.787+00:00

Powershell command to check when was the last time Managed Folder Assistant was run and need powershell command to check if Managed Folder Assistant is working or not for a user. (That means whether the emails items has been moved or not).

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,345 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 95,181 Reputation points MVP
    2022-05-18T14:33:38.323+00:00

    You need to look into the mailbox diagnostic logs for this info, specifically the ELCLastSuccessTimestamp. Here's how to get it:

    Export-MailboxDiagnosticLogs vasil -ExtendedProperties
    

    Since it returns an XML blob, you might as well cast it as xml and do this:

    [xml]$diag = (Export-MailboxDiagnosticLogs vasil -ExtendedProperties).MailboxLog
    $diag.Properties.MailboxTable.Property | ? {$_.Name -like "ELC*"}
    

    which will spill out all the relevant props:

    Name                                    Value
    ----                                    -----
    ElcLastRunTotalProcessingTime           169632
    ElcLastRunSubAssistantProcessingTime    128305
    ElcLastRunUpdatedFolderCount            15
    ElcLastRunTaggedFolderCount             0
    ElcLastRunUpdatedItemCount              7
    ElcLastRunTaggedWithArchiveItemCount    7
    ElcLastRunTaggedWithExpiryItemCount     5
    ElcLastRunDeletedFromRootItemCount      14
    ElcLastRunDeletedFromDumpsterItemCount  0
    ElcLastRunArchivedFromRootItemCount     242
    ElcLastRunArchivedFromDumpsterItemCount 0
    ELCLastSuccessTimestamp                 5/17/2022 7:48:23 PM
    ElcLastRunSkippedNoTagItemCount         0
    ElcLastRunSkippedWithTagItemCount       0
    ElcLastRunSkippedNotExcludedItemCount   0
    ElcFaiSaveStatus                        SaveSucceeded
    ElcFaiDeleteStatus                      DeleteNotAttempted
    
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Abhimanyu Sharma 86 Reputation points
    2022-05-18T17:54:30.807+00:00

    But if run MFA command multiple times , we're able to forcefully move emails items. As per my observation.

    0 comments No comments