PowerShell: List All Possible File Attribute Values

By Xah Lee. Date: .

List All Possible values of file Attributes

# list all possible file attributes
[System.IO.FileAttributes] | Get-Member -Static -MemberType Properties
System.IO.FileAttributes properties 2022-02-22
System.IO.FileAttributes properties
# list possible values of a enum type
[enum]::GetValues([System.IO.FileAttributes])
System.IO.FileAttributes 2022-02-23 wQdT
System.IO.FileAttributes

PowerShell: File Attributes