TestimoX

API Reference

Command

Set-ADXACLAuditRule

Namespace ADPlayground.PowerShell
Inputs
System.DirectoryServices.ActiveDirectorySecurity System.DirectoryServices.DirectoryEntry System.String

Sets an audit rule on an Active Directory security descriptor or entry.

Examples

Generated fallback example

Generated fallback example from parameter set 'By ADObject'.


Set-ADXACLAuditRule -ADObject 'Value' -Identity 'Value' -Rights 'CreateChild' -AuditFlags 'Success'
        

Generated fallback example from parameter set 'By Entry'.


Set-ADXACLAuditRule -Entry 'Value' -Identity 'Value' -Rights 'CreateChild' -AuditFlags 'Success'
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Set-ADXACLAuditRule -Security <ActiveDirectorySecurity> -Identity <IdentityInfo> -Rights <CreateChild> -AuditFlags <Success|Failure> -Inheritance <All|Descendents|Children|SelfAndChildren> [<CommonParameters>]
#
Parameter set: By Security

Parameters

Security ActiveDirectorySecurity requiredposition: 0pipeline: true (ByValue, ByPropertyName)
ActiveDirectorySecurity instance to modify.
Identity IdentityInfo requiredposition: 1pipeline: false
Identity to audit.
Rights AclRights requiredposition: 2pipeline: falsevalues: 16
Rights to audit. Possible values: None, CreateChild, Delete, ReadControl, WriteDacl, WriteOwner, GenericRead, GenericWrite, GenericExecute, ListChildren, DeleteChild, DeleteTree, ReadProperty, WriteProperty, ExtendedRight, Self, GenericAll
Possible values: CreateChild, Delete, ReadControl, WriteDacl, WriteOwner, GenericRead, GenericWrite, GenericExecute, ListChildren, DeleteChild, DeleteTree, ReadProperty, WriteProperty, ExtendedRight, Self, GenericAll
AuditFlags AuditFlags requiredposition: 3pipeline: falsevalues: 2
Audit flags to apply. Possible values: None, Success, Failure
Possible values: Success, Failure
Inheritance AclInheritance requiredposition: 4pipeline: falsevalues: 4
Inheritance flags for the rule. Possible values: None, All, Descendents, Children, SelfAndChildren
Possible values: All, Descendents, Children, SelfAndChildren
Set-ADXACLAuditRule -Entry <DirectoryEntry> -Identity <IdentityInfo> -Rights <CreateChild> -AuditFlags <Success|Failure> -Inheritance <All|Descendents|Children|SelfAndChildren> [<CommonParameters>]
#
Parameter set: By Entry

Parameters

Entry DirectoryEntry requiredposition: 0pipeline: true (ByValue, ByPropertyName)
DirectoryEntry object to modify.
Identity IdentityInfo requiredposition: 1pipeline: false
Identity to audit.
Rights AclRights requiredposition: 2pipeline: falsevalues: 16
Rights to audit. Possible values: None, CreateChild, Delete, ReadControl, WriteDacl, WriteOwner, GenericRead, GenericWrite, GenericExecute, ListChildren, DeleteChild, DeleteTree, ReadProperty, WriteProperty, ExtendedRight, Self, GenericAll
Possible values: CreateChild, Delete, ReadControl, WriteDacl, WriteOwner, GenericRead, GenericWrite, GenericExecute, ListChildren, DeleteChild, DeleteTree, ReadProperty, WriteProperty, ExtendedRight, Self, GenericAll
AuditFlags AuditFlags requiredposition: 3pipeline: falsevalues: 2
Audit flags to apply. Possible values: None, Success, Failure
Possible values: Success, Failure
Inheritance AclInheritance requiredposition: 4pipeline: falsevalues: 4
Inheritance flags for the rule. Possible values: None, All, Descendents, Children, SelfAndChildren
Possible values: All, Descendents, Children, SelfAndChildren
Set-ADXACLAuditRule -ADObject <string> -Identity <IdentityInfo> -Rights <CreateChild> -AuditFlags <Success|Failure> -Inheritance <All|Descendents|Children|SelfAndChildren> [<CommonParameters>]
#
Parameter set: By ADObject

Parameters

ADObject string requiredposition: 0pipeline: true (ByValue, ByPropertyName)
Distinguished name of the object to modify.
Identity IdentityInfo requiredposition: 1pipeline: false
Identity to audit.
Rights AclRights requiredposition: 2pipeline: falsevalues: 16
Rights to audit. Possible values: None, CreateChild, Delete, ReadControl, WriteDacl, WriteOwner, GenericRead, GenericWrite, GenericExecute, ListChildren, DeleteChild, DeleteTree, ReadProperty, WriteProperty, ExtendedRight, Self, GenericAll
Possible values: CreateChild, Delete, ReadControl, WriteDacl, WriteOwner, GenericRead, GenericWrite, GenericExecute, ListChildren, DeleteChild, DeleteTree, ReadProperty, WriteProperty, ExtendedRight, Self, GenericAll
AuditFlags AuditFlags requiredposition: 3pipeline: falsevalues: 2
Audit flags to apply. Possible values: None, Success, Failure
Possible values: Success, Failure
Inheritance AclInheritance requiredposition: 4pipeline: falsevalues: 4
Inheritance flags for the rule. Possible values: None, All, Descendents, Children, SelfAndChildren
Possible values: All, Descendents, Children, SelfAndChildren