February 2019
Intermediate to advanced
626 pages
15h 51m
English
The filesystem access control entry uses the System.Security.AccessControl.FileSystemRights enumeration to describe the different rights that might be granted.
PowerShell is able to list each name using the GetNames (or GetValues) static methods of the Enum type:
[System.Security.AccessControl.FileSystemRights].GetEnumNames()
PowerShell might be used to show the names, numeric values, and even the binary values associated with each. Several of these rights are composites, such as write, which summarizes CreateFiles, AppendData, WriteExtendedAttributes, and WriteAttributes:
[System.Security.AccessControl.FileSystemRights].GetEnumValues() | ForEach-Object { [PSCustomObject]@{ Name = $_ Value = [Int]$_ Binary = [Convert]::ToString([Int32]$_, ...Read now
Unlock full access