This happens to almost everyone who tries the defragmentation routine. The problem is this: esentutl makes a copy of the index file (Mail.MSMessageStore) and tries to defragment it. If the process is successful, the defragmented file is copied back to where it originally came from - but its owner has changed, because it was the System user account that created the file while the procedure is being run by administrator. So the normal user account doesn't have permissions to write to this file, which causes the error you're seeing. To correct this,
- Log on to Windows with an administrator account and ensure that no programs are running.
- Use Explorer to navigate to your store folder, probably at
C:\Users{user}\AppData\Local\Microsoft\Windows Live Mail
where {user} is the Windows user having the problem. 3. Right-click on Mail.MSMessageStore and select Properties. 4. On the Security tab, click Advanced, then open the Owner tab.
If the Current owner box doesn't contain your normal Windows user account, click Edit then Other users or groups.
Type the name of your normal Windows user account into the Enter the object name... box and click Check names. The official name of the account should appear in the format {computer name}{username}.
Click OK, select this username in the Change owner to box then OK. 5. Open the Permissions tab and click Change permissions. 6. Click Add and type the name of your normal Windows user account into the Enter the object name... box and click Check names. The official name of the account should appear in the format {computer name}{username}.
Click OK, select this username in the Permissions box and click Edit.
Select the checkbox labelled Full control in the Allow column. 7. Click OK three times to close all dialogue boxes. 8. Launch Windows Live Mail.
If you get stuck anywhere, Cancel your way out and report back.