Attributes

Commands

attrib <file>

Displays file attributes

Get-Item <file> | Select-Object Attributes

Displays file attributes

All files in dir:

Get-ChildItem <Path> | ForEach-Object { $_.Name + ": " + $_.Attributes.ToString() }

File Attributes Explained

R = Read-only. Cannot be written to or deleted.

A = Archive. Marked for backup or removal.

S = System. Used by the system and is not typically displayed in a directory listing.

H = Hidden. Not displayed in a normal directory listing.

I = Not content indexed file.

L = Symbolic link or shortcut.

O = Offline. The file data is not immediately available.

P = Sparse file.

T = Temporary. The file is being used for temporary storage.

Last updated

Was this helpful?