Windows Tutorial

How to unblock files blocked by Windows (any file type)

Updated August 2026 · 6 Min Read

Ever seen the warning "Microsoft has blocked macros from running because the source of this file is untrusted", or had a downloaded file suddenly refuse to open or run normally? This isn't just an Excel problem — it can happen with ZIP files, installers (.exe), scripts, PDFs, or any Office document downloaded from the internet.

The cause is the same: a built-in Windows security feature called Mark of the Web (MOTW). Any file that arrives through a browser, email, or chat app is automatically flagged as "from the internet," and some of its features (especially macros and scripts) get locked until you confirm the file is safe.

Method 1 — Unblock via Properties (for a single file)

  1. Close the application that normally opens the file (Excel, Word, etc).
  2. Open File Explorer and locate the problem file.
  3. Right-click the file → choose Properties.
  4. On the General tab, find the Security section near the bottom, then check the "Unblock" box.
  5. Click Apply, then OK.

This works for nearly every file type — not just .xlsm/.docm, but also .zip, .exe, .ps1, and more. If the "Unblock" checkbox doesn't show up, it usually means the file isn't actually blocked, or your network administrator has locked this feature via Group Policy — try Method 2 below, or contact your office's IT admin.

Method 2 — Unblock many files at once (PowerShell)

If you're dealing with dozens or hundreds of files in one folder — say, the result of extracting a ZIP archive — right-clicking each one is clearly not efficient. PowerShell has an Unblock-File command that can clean up an entire folder at once:

Get-ChildItem -Path "C:\Your\Folder\Path" -Recurse | Unblock-File

Open PowerShell (right-click the Start button → "Windows PowerShell" or "Terminal"), replace the path above with your folder's location, then press Enter. Every file inside that folder — including subfolders — gets unblocked in one go.

Common scenarios

Excel/Word macro blockedUnblock the file first (Method 1), then open it and click "Enable Content"
"Windows protected your PC"Click "More info" → "Run anyway" (for trusted installers/.exe files)
Files extracted from ZIP still lockedUnblock the ZIP file before extracting, or use PowerShell afterward
"Unblock" checkbox doesn't appearLikely locked by office IT policy — contact your network admin

Example case: a macro-enabled Excel template

If the blocked file is a macro-enabled Excel template — like ZHX Labs' asset migration tool — the steps are exactly the same as Method 1 above.

See the Asset Migration Tool →

Run into an unblocking case not covered here? Let us know via the support page and we'll add it.