February 2019
Intermediate to advanced
626 pages
15h 51m
English
Permissions may also be changed using a script. The following commands retrieve the current security descriptor:
using namespace System.Security.AccessControl
$sddl = Get-PSSessionConfiguration microsoft.powerShell |
Select-Object -ExpandProperty SecurityDescriptorSddl
$acl = [CommonSecurityDescriptor]::new(
$false,
$false,
$sddl
)
$acl.DiscretionaryAcl
The object created here does not translate access masks into meaningful names. There are a small number of possible values for the access mask (shown here as 32-bit integers):
Permissions may be combined by using ...
Read now
Unlock full access