1-800-691-1991 | 9am - 8pm ET

Backup or volume restore from Veeam Agent for Windows fails with error "The media is write protected"


The following message has been found to occur on both backup and volume restore from Veeam Agent for Windows:
The media is write protected. Failed to write data to file


During Backup:

This issue can appear when backing up a system with OneDrive automatic folder sync in Windows 10.
There are Operating System limitations preventing VSS backups of OneDrive folders using Files On-Demand among other possible issues.

During Restore:

This issue can appear if the “Choose How Much Of Your Drive To Encrypt” BitLocker setting was changed and saved (e.g. changed Encrypt Used Disk Space Only to Encrypt Entire Drive or vice versa).



The following workarounds are available.

For issues on Backup:

  • Make sure OneDrive “Files On-Demand” functionality is disabled in settings.
  • Check that the OneDrive client software is up-to-date.
  • If issues continue, try volume level backup, or try switching to file level backup and exclude the OneDrive sync folder
  • Other workarounds are to try to re-establish the OneDrive connection:
    1. Disconnect your local OneDrive from the cloud sync (click on the system tray right below your screen).
    2. Click on the three dots right at the top of the window that appears and close the application.
    3. Reconnect with OneDrive, but now you re-establish the connection (login).
  • Or try to re-sync the OneDrive data (these steps only need taken on affected folders):
  1. Make a copy the affected folders to another location on your HDD which is not synchronized with OneDrive.
  2. Remove affected files and folders from OneDrive local folder (and, if they are not removed automatically - from the online interface of OneDrive).
  3. Copy your files back, let OneDrive sync the files (keep "Files On-Demand" disabled).
  4. Re-try Veeam Agent backup.
There are other workarounds available as well. If the above does not resolve the issue, please see “More Information” to open a case with support.

For issues on Restore:

  • Disable BitLocker on the restore target drive:
    1. In File Explorer, right-click the drive in question and then click Manage BitLocker.
    2. On the BitLocker Drive Encryption page, click Turn Off BitLocker, and then click Turn off BitLocker again when prompted.
    3. When decryption is finished, click Close.
  • Format the restore target drive:
    1. Right-click the drive in File Explorer.
    2. Choose Format.
    3. Click Start.


More information

If you have further questions or issues continue, please open a support case as follows:

  1. Right-click the Veeam Endpoint Backup / Veeam Agent for Windows icon in the system tray and select Control Panel.
  2. Click the Support link at the top of the window.
  3. Click Technical Support to submit a support case to the Veeam Support Team directly from the product.
KB ID: 2088
Product: Veeam Agent for Microsoft Windows
Version: 1.x, 2.x
Published: 2016-01-22
Last Modified: 2020-08-13
Please rate how helpful this article was to you:
2 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.

ty icon

Thank you!

We have received your request and our team will reach out to you shortly.


error icon

Oops! Something went wrong.

Please go back try again later.