PowerShell: File Properties

By Xah Lee. Date: . Last updated: .

What is File Property

File Property store info such as file name, file name extension, access time, etc. including File Attributes.

List of All Possible File Properties

List a File's Properties

Get-Item "~/xtest.txt" | Get-Member -MemberType Property

Get-Item "~/xtest.txt" returns a object of type System.IO.FileInfo

file properties 2025-06-15 1495b
file properties 2025-06-15 1495b

Show File Property Values

Get-Item "~/xtest.txt" | Select-Object -Property *
file property values 2025-06-15 16b68
file property values 2025-06-15 16b68

PowerShell. Date Time

PowerShell. File Properties, Attributes, Permission