ShareMaster is shaped by your feedback. Tell us what to build next →
Features All features overview
Migration Tools Overview Structure and content OneDrive ↔ SharePoint Content only Structure only Move / Copy Upload from this computer Download to this computer Dropbox to SharePoint Resume and incremental runs
Microsoft Teams Overview Copy a team Move channels Merge teams Inactive teams Ownerless teams Guests and external access Export a team Search everyone's chats
Recycling Bin Overview Browse a site's recycle bin Empty recycle bins in bulk Restore and purge history Deleted teams
Archive Overview Configure the tenant On Demand Archive Restore Archived Files Archive Savings Report Blob Viewer
Optimise Storage Tools Overview Delete all items in a list Delete all files and folders in a library Remove empty folders Remove duplicate files Reduce image sizes Delete sites and subsites
SharePoint Tools Overview Tenant Explorer SharePoint Explorer Easy Settings Fix renamed groups List Explorer Search the Preservation Hold Library
Search & Indexing Overview Search query Item search properties Reindex Crawl log
Replace Overview Replace in SharePoint Replace in local files Find password-protected files Remove PDF passwords
Shared Links Overview Report shared links Report unique permissions Remove a person from sharing links Remove shared links Remove unique permissions
Version History Overview Version trimming Version trimming report Reset file version
Reports Overview Inventory report Folder inventory Site and subsite storage Storage growth Security matrix Teams permissions Pre-migration analysis Compare items Dropbox to Microsoft 365 compare Duplicate file report Empty folder report Image size report Recycle bin report Unused licences Copilot readiness Inactive sites, OneDrives and groups Orphaned users Site settings Audit activity Groups Checked-out files report Report history
Developer Tools Overview Query Builder PnPjs Console Property Bags SPFx Customizers Webhooks Customisation audit
Pricing Services Demos Blog Guides Use cases Compare Tools Alerts FAQ Contact
  1. Home
  2. Documentation
  3. SharePoint tools

Find password-protected files

Scan sites for locked Office files and PDFs

A password-protected document cannot be searched or rewritten, which means any find-and-replace over a real tenant has a blind spot. This finds those files and gives you a worksheet to fill the passwords into, so the next replace run can include them.

Reads only. Nothing in SharePoint is changed.

What does it tell you?

  • Which Office files and PDFs in the scope are password protected, and where they are.
  • For each PDF: whether it needs a password to OPEN, or opens freely but restricts printing, editing or copying - each restriction listed, with its encryption strength.
  • How big the blind spot in a replace run actually is.

How it runs

  1. Sign in and pick a scope. Sites, libraries and folders.
  2. It scans. Each Office file and PDF is checked for encryption from a few small reads of the file - nothing is downloaded whole, and nothing is changed.
  3. Read the report. Name, path, type, password type, restricted permissions, encryption, size, created and modified and by whom. Download it as Excel or CSV; it is also in Report History.
  4. Download the worksheet. One row per file that needs a password to open, with a column for its password.
  5. Fill it in and bring it back. A Find & Replace run imports the filled worksheet and can then unlock and process those files.
  6. Remove PDF passwords. Type a PDF's password in its row, or one password for all, and press Remove PDF passwords. Each PDF is saved as a new version without its password; the protected original stays in its version history, and Modified and Modified By are kept. Permissions-only PDFs need no password. Trial, Recycle Master and above.

How does it work?

In SharePoint it lists the files in each ticked site, library or folder and checks only Word, Excel, PowerPoint and PDF files, current and older formats. Instead of downloading each file it reads just the bytes at the start, or for a PDF the start and the end, that show whether the file is encrypted. In a local folder each of those files is read from disk. Nothing is ever written.

An Office file counts as protected when it is stored as an encrypted package rather than an ordinary document. A PDF counts when it is encrypted and does not open with a blank password, so a PDF that only restricts printing or copying is left off the list. In SharePoint, a file that returns no data is counted as not checked and named in the summary, rather than being treated as unprotected.

The result is a worksheet with one row per protected file and an empty password column; the password you put on a row is tried on that file first when a replace run imports the worksheet. The scan is recorded in History with its worksheet, so it can be downloaded again later.

It only detects protection. It never tries a password and never opens a protected file's content.

What do you need?

  • Read access to the libraries in scope for the scan, which only reads. Removing PDF passwords also needs permission to change the files, and version history turned on in their library.

What will it not do?

  • It finds protection. It does not break it. A file whose password nobody knows stays out of reach, and the honest answer is to say so.
  • Only encryption is looked for. A rights-managed or information-protected file is not told apart from a password-protected one, and a password will not open it.
  • Checking every Office file and PDF takes time on a wide scope.
  • A PDF protected with a certificate rather than a password is reported as "could not determine" and is not unlocked.

See every feature