A document always opens read-only
A document opens read-only every time, with no other user holding it. Six different settings produce this and they are in six different places — but they can be told apart by where the read-only notice appears.
What you see
The title bar says Read-Only, or a yellow bar offers an Edit Anyway or Enable Editing button. Saving prompts for a new file name. Other people may be able to edit the same file normally.
What is actually wrong
In rough order of frequency: the file has the read-only attribute set, it was saved with the read-only-recommended flag, it is an email attachment opening in reading view, it is marked as final, editing is restricted, or the folder it sits in does not grant write access. A stale lock file is a seventh, and is covered separately.
Codes and articles
Start here — find out which fix applies
A script that runs the 1 inspection command from the write-up below and prints what each one returned. It reads the machine and changes nothing — every command that could write, delete, start or stop is excluded from it by construction. Run this first, then pick the fix its output points at.
Fixes (4)
Clear the read-only attribute and the recommendation flag
The file follows the problem wherever it is copied. Start here.
Check the file system attribute.
Get-ItemProperty 'C:\path\to\file.docx' | Select-Object Name, IsReadOnly, AttributesFiles restored from a backup, extracted from some zip tools, or copied from a CD or a locked-down share very often arrive with this set, and nothing in Office says so beyond the words Read-Only.
Clear it.
Set-ItemProperty 'C:\path\to\file.docx' -Name IsReadOnly -Value $falseFor a whole folder that came from a backup.
Get-ChildItem 'C:\path\to\folder' -Recurse -File | Where-Object IsReadOnly | Set-ItemProperty -Name IsReadOnly -Value $falseIf the attribute was already clear, check the read-only-recommended flag, which is saved inside the document. Open it, then File → Save As → Tools → General Options, and clear "Read-only recommended".
This flag is stored in the file, so it survives copying and appears on every machine. It is a recommendation rather than a lock, which is why Edit Anyway works and why it is so often left in place for years.
Stop attachments opening in reading view
The file is opened directly from an email and is read-only, but editable once saved to disk.
Understand what is happening first. An attachment opened from Outlook is extracted to a temporary folder, so editing it in place would save changes somewhere the user will never find them again. Read-only here is protecting them.
The right answer is nearly always to save the attachment somewhere real and work on that, not to turn the protection off. Changes made to the temporary copy are lost when the folder is cleared.
Save the attachment to a proper location and open it from there. That resolves it without changing any setting.
If the behaviour is unwanted anyway, it is a per-application setting: File → Options → General → clear "Open e-mail attachments and other uneditable files in reading view".
Note this does not bypass Protected View, which is separate and applies to files from the internet zone. If a yellow Enable Editing bar remains, that is Protected View and is covered by the document-will-not-open entry.
Remove protection applied inside the document
A banner says the document is marked as final, or editing is restricted.
For Mark as Final: File → Info → Protect Document → Mark as Final to toggle it off, or simply press Edit Anyway on the banner.
Mark as Final is a courtesy flag, not security. Anyone can turn it off in two clicks, and it is worth saying so to anyone who is relying on it to protect a document.
For Restrict Editing: Review → Restrict Editing → Stop Protection. If it was applied with a password you need that password — there is no supported way around it.
For an Excel worksheet: Review → Unprotect Sheet, or Unprotect Workbook for the structure.
Check for Information Rights Management, which shows a permissions banner rather than a read-only one. That is enforced by the service and can only be changed by the document owner or a rights administrator.
If the document must stay protected but this user needs to edit it, change the protection rather than removing it — Restrict Editing allows exceptions per user.
Check write access to the folder
Everything in one folder or share opens read-only.
Test whether the user can actually write there, rather than reading the permissions and inferring it.
try { $t = Join-Path '\\server\share\folder' ('wtest_' + [guid]::NewGuid() + '.tmp'); [IO.File]::WriteAllText($t,'x'); Remove-Item $t; 'WRITE OK' } catch { 'WRITE DENIED: ' + $_.Exception.Message }Effective access on a share is the intersection of the share permission and the NTFS permission, and reading either one alone routinely gives the wrong answer. Writing a file is the only test that accounts for both.
If the write fails, look at both layers.
(Get-Acl '\\server\share\folder').Access | Select-Object IdentityReference, FileSystemRights, AccessControlTypeOn the file server, check the share-level permission as well.
Get-SmbShareAccess -Name 'share' | Select-Object AccountName, AccessRightHave the permission corrected by whoever owns the share. Granting it locally on the client is not possible and attempting it wastes time.
If the write test succeeds and files still open read-only, go back to the attribute and document-protection fixes — the share is not the cause.
Related faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.