File Attributes
Cheat sheet · https://pcornel.dk/topic.php?topic=2965
Answer
File attributes are flags such as Read-only, Hidden, System, Archive, Compressed and Encrypted. View and change them with attrib or Get-Item | Select Attributes.
Remember
- Read-only prevents edits until cleared.
- Hidden plus System hides files even with hidden items shown.
- Some backup tools use the Archive bit.
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 attributes stored with the file → honoured by tools
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=2965