Listing the fields of the enum
$enumValues = [System.Enum]::GetValues('System.Security.AccessControl.ResourceType')
$enumValues | forEach-object { '{0,2} {1}' -f $_.value__, $_.ToString() }
| | | Comment |
| 0 | Unknown | |
| 1 | FileObject | |
| 2 | Service | |
| 3 | Printer | |
| 4 | RegistryKey | |
| 5 | LMShare | A network share |
| 6 | KernelObject | |
| 7 | WindowObject | A window station or desktop object on the local computer. |
| 8 | DSObject | A directory service object, or a property set of a directory service object |
| 9 | DSObjectAll | A directory service object and all of its property sets and properties |
| 10 | ProviderDefined | The object is defined by a provider. |
| 11 | WmiGuidObject | |
| 12 | RegistryWow6432Key | |