API Reference
Command
Remove-ADXACLAuditRule
Removes an audit rule from an Active Directory security descriptor or entry.
Examples
Example 1: Preview removing a noisy audit rule from an OU
Remove-ADXACLAuditRule -ADObject 'OU=Tier0,DC=contoso,DC=com' -Identity 'CONTOSO\Tier1 Operators' -Rights WriteProperty -AuditFlags Failure -Inheritance Descendents -WhatIf
Example 2: Remove an outdated AdminSDHolder audit rule
Remove-ADXACLAuditRule -ADObject 'CN=AdminSDHolder,CN=System,DC=contoso,DC=com' -Identity 'CONTOSO\Domain Admins' -Rights WriteDacl -AuditFlags Success,Failure -Inheritance None
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
Remove-ADXACLAuditRule -Security <ActiveDirectorySecurity> -Identity <IdentityInfo> -Rights <CreateChild> -AuditFlags <Success|Failure> -Inheritance <All|Descendents|Children|SelfAndChildren> [<CommonParameters>]#Parameter set:
By SecurityParameters
- Security ActiveDirectorySecurity
- ActiveDirectorySecurity instance to modify.
- Identity IdentityInfo
- Identity whose audit rule will be removed.
- Rights AclRights
- Rights associated with the rule. 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
- Audit flags to match. Possible values: None, Success, Failure
- Possible values:
Success,Failure - Inheritance AclInheritance
- Inheritance flags to match. Possible values: None, All, Descendents, Children, SelfAndChildren
- Possible values:
All,Descendents,Children,SelfAndChildren
Remove-ADXACLAuditRule -Entry <DirectoryEntry> -Identity <IdentityInfo> -Rights <CreateChild> -AuditFlags <Success|Failure> -Inheritance <All|Descendents|Children|SelfAndChildren> [<CommonParameters>]#Parameter set:
By EntryParameters
- Entry DirectoryEntry
- DirectoryEntry object to modify.
- Identity IdentityInfo
- Identity whose audit rule will be removed.
- Rights AclRights
- Rights associated with the rule. 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
- Audit flags to match. Possible values: None, Success, Failure
- Possible values:
Success,Failure - Inheritance AclInheritance
- Inheritance flags to match. Possible values: None, All, Descendents, Children, SelfAndChildren
- Possible values:
All,Descendents,Children,SelfAndChildren
Remove-ADXACLAuditRule -ADObject <string> -Identity <IdentityInfo> -Rights <CreateChild> -AuditFlags <Success|Failure> -Inheritance <All|Descendents|Children|SelfAndChildren> [<CommonParameters>]#Parameter set:
By ADObjectParameters
- ADObject string
- Distinguished name of the object to modify.
- Identity IdentityInfo
- Identity whose audit rule will be removed.
- Rights AclRights
- Rights associated with the rule. 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
- Audit flags to match. Possible values: None, Success, Failure
- Possible values:
Success,Failure - Inheritance AclInheritance
- Inheritance flags to match. Possible values: None, All, Descendents, Children, SelfAndChildren
- Possible values:
All,Descendents,Children,SelfAndChildren