DsAcls Syntax |
|
Open Command Prompt |
dsacls "[\\Computer\]ObjectDN" [/A] [/D PermissionStatement [PermissionStatement...]] [/G PermissionStatement [PermissionStatement...]] [/I:{T | S | P}] [/N] [/P:{Y | N}] [/R {user | group} [{user | group}...]] [/S [/T]] [/?]
Note
For example, "CN=Jeff
Akers,CN=Users,DC=domain,DC=test,DC=microsoft,DC=com" or
"\\Server01\CN=Jeff
Akers,CN=Users,DC=domain,DC=test,DC=microsoft,DC=com"
You can deny permissions to multiple users in each /D
parameter, for example: /D Domain1\User1:CCDC
Domain1\User2:DC;computer
You can grant permissions to multiple users in each /G
parameter, for example: /G Domain1\User1:CCDC
Domain1\User2:DC;computer
T | This object and subobjects. |
---|---|
S | Subobjects only. |
P | Propagate inheritable permissions one level only. |
Y | The object is protected and cannot inherit permissions. |
N | The object is not protected and can inherit permissions. |
Note
You can delete ACEs for multiple users and groups in a single
/R parameter, for example, /R Domain1\User1
Domain1\User2
PermissionStatements must have the following format:
{User | Group}:Permissions[;{ObjectType | Property}][;InheritedObjectType]
where:For example, /G Domain\User:CC
permits the
user to create all types of child objects, but /G
Domain\User:CC;computer
permits the user to create only
child computer objects.
For example, /G Domain\User:CC
permits all
types of objects to inherit the permission, but /G
Domain\User:CC;;user
permits only user objects to
inherit the permission.
Generic Permissions | Description |
---|---|
GR | Generic Read |
GE | Generic Execute |
GW | Generic Write |
GA | Generic All |
Specific Permissions | Description |
SD | Delete |
DT | Delete an object and all of its children |
RC | Read security information |
WD | Change security information |
WO | Change owner information |
LC | List the children of an object |
CC | Create child object
If {Object | Property} is not specified to define a specific child-object type, this applies to all types of child objects; otherwise, it applies to the specified child-object type. |
DC | Delete a child object If {Object | Property} is not specified to define a specific child-object type, this applies to all types of child objects; otherwise, it applies to the specified child-object type. |
WS | Write to self object Meaningful only on Group objects and when {Object | Property} is a "member.". |
RP | Read property If {Object | Property} is not specified to define a specific property, this applies to all properties of the object; otherwise, it applies to the specified property of the object. |
WP | Write property If {Object | Property} is not specified to define a specific property, this applies to all properties of the object; otherwise, it applies to the specified property of the object. |
CA | Control access right If {Object | Property} is not specified to define the specific extended right for control access, this applies to all meaningful control accesses on the object; otherwise, it applies to the specific extended right for that object. |
LO | List the object access. Can be used to grant list access to a specific object if List Children (LC) is not granted to the parent as well. Can also be denied on specific objects to hide those objects if the user/group has LC on the parent. Note
|