Zone.Identifier reader
Windows marks a file from the Internet with a hidden stream named Zone.Identifier, the Mark of the Web: a few lines with the zone the file came from and, from Windows 10 on, the address it was downloaded from. Paste the stream's text to read it, and get the commands that show it and take it off.
Show it, and take it off
In order: Notepad opens the stream itself; Get-Content -Stream prints its text in PowerShell; dir /r in Command Prompt lists the file's streams, as report.xlsm:Zone.Identifier:$DATA (file, stream, stream type); Unblock-File takes the stream off, the same as the Unblock box on the General tab of the file's Properties, and is Microsoft's recommended way once the file and its source are checked; Remove-Item -Stream deletes the stream too. The page writes -LiteralPath so that brackets in a name are not read as wildcards. To list the files in the current folder that have the stream: Get-Item * -Stream "Zone.Identifier" -ErrorAction SilentlyContinue.
The lines
| Line | Meaning |
|---|---|
[ZoneTransfer] | The heading the values sit under. |
ZoneId | The zone the file came from, from the table below. A browser download from the Internet gets 3. |
ReferrerUrl | The page that linked to the file, when the browser knew one. |
HostUrl | The address the file was downloaded from. Chromium writes about:internet instead when the address was not valid, was not HTTP or HTTPS, was too long, or the download came from a private window. |
LastWriterPackageFamilyName | The Store app that last wrote the file. |
AppDefinedZoneId | A zone that app suggests; it is cleared when a different app writes the file. |
By default only files from the Internet and Restricted sites zones get the mark, and only on NTFS: a file saved to a FAT32 drive has none. A file that the OneDrive sync client downloads has none either.
Zones
| Value | Zone | Constant | Meaning |
|---|---|---|---|
| -1 | Invalid | URLZONE_INVALID | No zone: used only when none fits. |
| 0 | My Computer | URLZONE_LOCAL_MACHINE | Content that is already on this computer. |
| 1 | Local intranet | URLZONE_INTRANET | Content from the intranet. |
| 2 | Trusted sites | URLZONE_TRUSTED | Trusted web sites on the Internet. Office does not block VBA macros in a file from this zone by default. |
| 3 | Internet | URLZONE_INTERNET | Most of the Internet. By default Windows marks files from this zone, and Office blocks VBA macros in them. |
| 4 | Restricted sites | URLZONE_UNTRUSTED | Web sites that are not trusted. By default Windows marks files from this zone too. |
| 999 | Predefined maximum | URLZONE_PREDEFINED_MAX | Zones 0 to 999 are predefined. |
| 1000 | User minimum | URLZONE_USER_MIN | The lowest user-defined zone. |
| 10000 | User maximum | URLZONE_USER_MAX | The highest user-defined zone. |
Sources
- The stream's name and form: Microsoft's Open Specification [MS-FSCC] File System Control Codes, section 5.6.1 Zone.Identifier Stream Name (last updated 10 Feb 2025). LastWriterPackageFamilyName and AppDefinedZoneId: the IZoneIdentifier2 interface page; the zone values and constants: the URLZONE enumeration page (both Internet Explorer previous versions, last updated 15 Aug 2017). The zone names, Notepad, which zones get the mark and what Office does with it: Microsoft's page Macros from the internet are blocked by default in Office (last updated 17 Jul 2026). All four read with a page fetch on 24 Nov 2026.
- What a browser writes, and when it writes
about:internet: Chromium's components/services/ quarantine/ quarantine_win.cc (chromium at commit 35aeee9), under its BSD-style licence. - The commands: Microsoft's Unblock-File, Get-Content, Get-Item and Remove-Item references (PowerShell-Docs at commit aedd8ef), the dir reference (windowsserverdocs at commit b640f2c) and the File Streams page (win32 at commit bc82a65), used under the Creative Commons Attribution 4.0 International licence (creativecommons.org/
licenses/ by/ 4.0/).
More Windows tools
-
Windows error code lookup
Look up 0x80070005, 0xC000006D, 1603 or any other system error, HRESULT, NTSTATUS or bug check code.
-
Robocopy command builder
Build a robocopy command line, paste one to see what each switch does, and decode its exit codes.
-
Msiexec silent install builder
Build install, uninstall and repair commands and look up MSI exit codes.
-
PowerShell EncodedCommand decoder
Read the script inside an encoded PowerShell command, layer by layer, or encode one.
-
.reg file value decoder
hex(2), hex(7), hex(b) and dword values of a .reg file as text and numbers, and a value written as .reg lines.
-
Certificate decoder
Read a certificate, a chain or a request: names, dates, thumbprint, template and account SID.
-
Access mask decoder
Read an access mask such as 0x1200A9 or -1610612736 as file, registry or Active Directory rights.
-
icacls explainer and command builder
Read icacls output such as (OI)(CI)(RX) in plain words, or build commands to grant, deny and remove rights.
-
KMS client keys and slmgr commands
Get the KMS client setup key (GVLK) of a Windows or Windows Server edition and the slmgr commands to activate it.
-
File hash checker
Work out the SHA-256, SHA-1, SHA-512 or MD5 hash of a file in your browser and compare it with the publisher's.
-
File type from its first bytes
What a file is by its first bytes, not its name: PDF, ZIP, Office, EXE or DLL with its CPU and bitness.
-
Windows and IANA time zone names
Eastern Standard Time to America/New_York or America/Toronto and back, with tzutil, PowerShell and timedatectl.