#1 Global Leader in Data Protection & Ransomware Recovery

Public Folder Backup Hangs

KB ID: 4577
Product: Veeam Backup for Microsoft Office 365 | 5.0
Veeam Backup for Microsoft 365 | 6.0 | 7.0 | 7a
Published: 2024-05-13
Last Modified: 2024-05-13
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

Challenge

An Exchange backup job that contains a public folder mailbox runs in an endless cycle, continuously getting changed items from one of the mailbox folders. In the job logs, you can see multiple entries in the following format: 

Changed items: 0, deleted items: 0, read state changes: 100
Processing mailbox: <mailbox_name>...
Syncing folder items: <folder_name>...
Sync time: <time>

Cause

This issue was investigated and determined to be caused by a public folder mailbox with the parameter PerUserReadStateEnabled set to True.

Solution

To prevent the backup from looping while processing a public folder mailbox, that mailbox must have the ‘PerUserReadStateEnabled’ parameter set to ‘False’ in M365.
Important Note
If a public folder mailbox is set with ‘PerUserReadStateEnabled=False’, the Read/Unread state of emails within such a mailbox will be the same for all its users (i.e., for example, in Outlook all users of such a public folder mailbox will see emails with the same Read/Unread state). When the ‘PerUserReadStateEnabled’ parameter of the mailbox is changed from True to False, the Read/Unread state of emails within such a mailbox returns to the latest known state, which may be different from the latest state known by a mailbox user. For more details, see this Microsoft article.

Set Parameter Using PowerShell Script

To help expedite the resolution of this issue, a PowerShell script has been developed to set the PerUserReadStateEnabled parameter to False for the problematic public folder mailbox by Identity.

Script Requirements
  • Before running the script, you must update the following variables:
    • $username (line 17) — Replace the placeholder between the double quotes.
    • $password (line 18) — Replace the placeholder between the double quotes.
    • $folders (line 19) — As shown in the example, list the problematic public folder mailboxes in double quotes separated by a comma.
      Note: If the folder names are unknown or there are many folders, the $folders variable may be set to $null, and the script will set the parameter PerUserReadStateEnabled to false for public folder mailboxes.
  • This script uses the ExchangeOnlineManagement module.
    If the ExchangeOnlineManagement module is not installed or fails to be imported when the script is run, uncomment "Install-Module ExchangeOnlineManagement" (on line 15) and run the script again to have the script install the ExchangeOnlineManagement module.

 

Download Information

Download Script

Filename: Set-PublicFolder_2024_05_03.zip

MD5: 22CD4FC83CC77AAA8396603FAB003F5F
SHA-1: DB450231CCEFEF6058D2D98D56E788F1AF907103

To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please try again later.