PowerShell: Show a File's Attributes

By Xah Lee. Date: . Last updated: .

Meaning of Mode Column Letters in dir Output

Common attributes are displayed in the first column of output of Get-ChildItem

PowerShell file mode 2022-02-22
PowerShell dir output, showing the Mode column.

Meaning of the mode letters:

Show All Attributes of a File or Dir

# list all attributes of a file or dir

Get-ItemProperty "~/Downloads/" -Name Attributes

# Attributes   : ReadOnly, Directory
# PSPath       : Microsoft.PowerShell.Core\FileSystem::C:\Users\xah\Downloads\
# PSParentPath : Microsoft.PowerShell.Core\FileSystem::C:\Users\xah
# PSChildName  : Downloads
# PSDrive      : C
# PSProvider   : Microsoft.PowerShell.Core\FileSystem
PowerShell file attributes 2025-06-16 2f8b5
PowerShell file attributes 2025-06-16 2f8b5

PowerShell. File Properties, Attributes, Permission

Microsoft Windows File Alias, Juncture