February 2019
Intermediate to advanced
626 pages
15h 51m
English
Security descriptor definition language (SDDL) is used to describe the content of a security descriptor as a string.
A security descriptor returned by Get-Acl has a method that can convert the entire security descriptor to a string, as follows:
PS> (Get-Acl C:\).GetSecurityDescriptorSddlForm('All')O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464D:PAI(A;;LC;;;AU)(A;OICIIO;SDGXGWGR;;;AU)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)(A;OICIIO;GA;;;BA)(A;;FA;;;BA)(A;OICI;0x1200a9;;;BU)
A security descriptor defined using SDDL can also be imported. If the sddlString variable is assumed to hold a valid security descriptor, the following command might be used:
$acl = Get-Acl ...
Read now
Unlock full access