To unblock a ZIP file in Windows, right-click the ZIP before you extract it, choose Properties, tick Unblock at the bottom of the General tab and click OK. When you then extract it, the files inside no longer carry the "downloaded from the internet" mark, so Office stops blocking macros, help files display properly and you stop seeing security warnings. Only do this for files from a source you trust, because the block is there to protect you.
This guide explains what the block is, how to remove it from one file or a whole folder, and when you should leave it alone.
What "blocked" actually means
When you download a file with a browser, or save an email attachment, Windows attaches a small hidden tag to it called the Mark of the Web. Technically it is an alternate data stream named Zone.Identifier that records the security zone the file came from, usually the Internet zone.
Windows and many programs read that tag and treat the file more cautiously:
- Microsoft Office opens the document in Protected View and, for files from the internet, blocks macros entirely with a red "Security risk" banner.
- SmartScreen shows "Windows protected your PC" for unrecognized programs.
- Compiled help files (.chm) open with blank pages or "navigation to the webpage was canceled".
- PowerShell may refuse to run downloaded scripts, depending on the execution policy.
- Some programs and add-ins refuse to load DLLs or plug-ins that are marked.
When you extract a marked ZIP with File Explorer's Extract All, Windows copies the mark onto every extracted file. That is why a whole folder of extracted files can be "blocked" even though you only downloaded one ZIP.
How to unblock a ZIP before extracting
Unblocking the ZIP first is the cleanest approach, because the extracted files then come out unmarked.
- Right-click the downloaded ZIP and choose Properties.
- On the General tab, look at the bottom for Security: This file came from another computer and might be blocked to help protect this computer.
- Tick Unblock.
- Click OK.
- Now extract the ZIP as normal.
If you do not see the Security line or the Unblock box, the file is not marked. That can happen if it was copied from a FAT32 or exFAT USB drive, which cannot store the tag, or if it was already unblocked.
How to unblock files you already extracted
If you extracted first, you can unblock the files individually the same way, through Properties → Unblock. With more than a handful, use PowerShell instead.
- Open the folder containing the extracted files in File Explorer.
- Click the address bar, type
powershelland press Enter. A PowerShell window opens in that folder. - Run:
Get-ChildItem -Recurse | Unblock-File
That removes the mark from every file in the folder and its subfolders. To unblock one file, use Unblock-File -Path .\report.xlsm. To see which files are still marked first, run Get-ChildItem -Recurse | Get-Item -Stream Zone.Identifier -ErrorAction SilentlyContinue.
Unblocking does not change the files' contents. It only removes the tag. A harmful file stays harmful after you unblock it, so this is a decision about trust, not a fix for safety.
When you should not unblock
The mark exists because files from the internet are the most common way malware arrives. Leave it in place, and do not enable macros, if any of these apply:
- The ZIP arrived by email unexpectedly, even from someone you know. Compromised accounts send convincing messages.
- The file asks you to "enable content" or "enable editing" to see an invoice, delivery note or document.
- The ZIP contains a shortcut (
.lnk), script (.js,.vbs,.bat,.ps1), disk image or an EXE pretending to be a document, for exampleinvoice.pdf.exe. - You downloaded it from a site you do not normally use, or from a link in an ad or pop-up.
- It is password-protected and the password was in the same email. Attackers do this to get past email scanners.
Turn on View → Show → File name extensions in File Explorer so you can see the real file types inside.
A safe routine for trusted downloads
- Check the source. Did you request the file? Did it come from the official site of the vendor or person you expected?
- Look inside first. Browse the archive contents before extracting. An archive viewer shows you the file names and types without writing anything to disk. See how to view the contents of a ZIP file without extracting it.
- Scan it. Right-click the ZIP and choose Scan with Microsoft Defender (under Show more options on Windows 11).
- Unblock the ZIP in Properties, then extract.
- Prefer a trusted location for files you use regularly, such as macro workbooks, rather than unblocking each new copy.
A better fix for recurring Office files: Trusted Locations
If you regularly receive macro workbooks from a trusted internal source, unblocking each one gets old quickly. Office has Trusted Locations: folders where files open with macros enabled.
- In Excel or Word, go to File → Options → Trust Center → Trust Center Settings → Trusted Locations.
- Click Add new location and choose a dedicated folder.
- Save trusted files there.
Keep that folder for genuinely trusted files only, and never point it at Downloads. On work PCs, IT may control these settings.
Archive programs and the mark
Whether the mark is copied to extracted files depends on the program you extract with. File Explorer copies it. Many archive programs also copy it, sometimes with a setting to choose which file types are affected, because that keeps Office and SmartScreen protections working. Either way, unblocking the ZIP before extracting gives you predictable results.
If you use Universal Zip, unblock the ZIP before extracting when you want unmarked files, and leave it marked when you do not fully trust the source. Whatever you use, extracting on your own PC keeps the files private, unlike uploading them to a website to unpack. Universal Zip lets you browse and preview an archive, search it by name and test it for damage before extracting, which fits naturally into the routine above. For more on the trade-offs of web-based tools, read is it safe to unzip files online.
Still blocked after unblocking?
- You unblocked the ZIP after extracting. The extracted files are still marked. Unblock them with PowerShell, or delete them and extract again.
- The file is on a network share. Office may treat files on some network paths as internet files. Ask IT to add the server to the Local intranet zone, or copy the file locally.
- Company policy blocks macros everywhere. In that case unblocking will not help, and IT has to approve the file.
- The file is damaged. If Office still refuses or shows errors, the download may be incomplete. See how to check if a ZIP file is corrupted.
Frequently asked questions
Why is my zip file blocked?
Windows marks files downloaded from the internet. When you extract a marked ZIP, the files inside inherit the mark, which triggers warnings.
How do I unblock a file in Windows 11?
Right-click the file, choose Properties, tick Unblock at the bottom of the General tab, then click OK.
Is it safe to unblock a zip file?
Only if you trust the source. The block exists to warn you about files from the internet, so scan and verify them first.
