Tip: You can see the int value from a value of an Enum.
Single value
1 2 |
[System.IO.FileAttributes]::ReadOnly.value__ [System.IO.FileAttributes]::Compressed.value__ |
All values
1 2 3 4 5 6 |
[System.Enum]::GetValues('System.IO.FileAttributes') | ForEach-Object -Process { [PSCustomObject]@{ Name = $_ Value = $_.value__ } } |