question

AbhimanyuSharma-8660 avatar image
0 Votes"
AbhimanyuSharma-8660 asked AbhimanyuSharma-8660 answered

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

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).

windows-server-powershelloffice-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered michev commented

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


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The above command works fine for my account. But aren't we have any other PowerShell command that tells the no. of items moved from eg: Inbox to online archive or folder to online archive.


Because , we have encountered with an issue, find the whole description below:
- User's mailbox usage has reached 99GB and hence, user's Inbox wasn't updating. - Online Archiving is already enabled for user, for mails older than 1 year. - We changed the retention policy to 6 months and ran MFA. - We waited for more than 24 hours and mails have still not moved to Online Archive and mailbox usage is still 99GB. - We've checked and Retention Hold is not enabled. Can you please assist let us know what could be an issue? - User is assigned Office 365 E3. - On Outlook, Cache mode is set to 6 Months

0 Votes 0 ·
michev avatar image michev AbhimanyuSharma-8660 ·

The properties above tell you the number of items processed during the last run. Keep in mind that running the Start-ManagedFolderAssistant cmdlet does not immediately trigger MFA processing, it only "signals" the server to process it when there are spare resources available, but the SLA in Exchange Online is 7 days.
You can always move some items yourself instead of waiting, either manually of via some EWS-based script, such as the one here: https://github.com/David-Barrett-MS/PowerShell-EWS-Scripts/wiki/Merge-MailboxFolders.ps1

0 Votes 0 ·
AbhimanyuSharma-8660 avatar image
0 Votes"
AbhimanyuSharma-8660 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.