PST file will not delete post migration due to read-only attribute being set
book
Article ID: 100022324
calendar_today
Updated On:
Description
Error Message
Failed to reset read-only status on PST \\dell\C$\Users\jdoe\AppData\Local\Microsoft\Outlook\archive.pst: Access to the path '\\dell\C$\Users\jdoe\AppData\Local\Microsoft\Outlook\archive.pst' is denied.
Cause
Consider the following scenario:
- Using Server Driven Migration; Locator, Collector, and Migrator tasks
- PST Migration policy setting for Post Migration is set to 'Delete the PST'. This setting deletes the PST after the migration is completed successfully.
- PST Migrator Task is run under the context of a different user (set on the Logon tab). Note that under normal circumstances, this task runs under the context of the Vault Service account. This is required in order to open the mailbox for the user and create shortcuts.
During the collection process of the PST, Enterprise Vault (EV) sets the read-only attribute on the PST so that no changes can be made during this process. After the migration has completed, EV will then remove the read-only attribute and delete the PST file.
When the Vault Store safety copy is configured for After Backup, the migration process will wait to complete until the backup has completed and Backup Mode has been triggered. During this process, EV checks the items in SQL to confirm they have been secured and the migration completes entirely.
Resolution
The error referenced above occurs when the Migrator Task is running under a different user. The reason is due to this user not having the correct privileges to read the SQL database during the backup mode process mentioned previously. To resolve this issue, follow the steps outlined below.
- Open the SQL Management Studio
- Grant the PST Migrator task user the db_datareader role on the EnterpriseVaultDirectory and Vault Store Databases.
- To Grant Roles, expand the EnterpriseVaultDirectory
- Go to Security | Roles | Database Roles|
- Locate db_datareader, right click select Properties
- On General under Owned Schemes go to db_datareader
- Under Role members, select add and add the PST Migrator task user
- Once added click Ok
- This will then allow the migration to complete successfully.
Note: Follow the same steps above for all the Vault Store Databases.
Issue/Introduction
PST file will not delete post migration due to read-only attribute being set
Was this article helpful?
thumb_up
Yes
thumb_down
No