Alternate Data Streams
Cheat sheet · https://pcornel.dk/topic.php?topic=2966
Answer
Alternate data streams are extra named data attached to an NTFS file, such as file.txt:hidden. Windows uses the Zone.Identifier stream to mark downloads; list streams with dir /r or Get-Item -Stream *.
Remember
- Zone.Identifier marks files downloaded from the internet.
- Streams do not show in normal directory listings.
- Copying to FAT or exFAT drops alternate streams.
First checks
Get-Volume— volumes, filesystem type, health and free spacefsutil fsinfo volumeinfo C:— filesystem featureschkdsk C: /scan— online scanGet-WinEvent -FilterHashtable @{LogName='System';ProviderName='Ntfs'} -MaxEvents 20— NTFS events
Verify in this order
file → default data stream + named streams (e.g. Zone.Identifier)
Where it usually breaks
First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2966