< Back
Set-Auditing
Post
NAME Set-Auditing
SYNOPSIS
Sets auditing on an Active Directory object.
SYNTAX
Set-Auditing [-Domain] <String> [-ObjectCN] <String> [-Rules] <ActiveDirectoryAuditRule[]> [[-Credential]
<PSCredential>] [<CommonParameters>]
DESCRIPTION
The Set-Auditing cmdlet applies an audit rule set to an AD object.
PARAMETERS
-Domain <String>
The domain to set the auditing in.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ObjectCN <String>
The CN of the object to set auditing on up to the domain part of the DN. This can be an emptry string to set
auditing on the domain.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Rules <ActiveDirectoryAuditRule[]>
The array of ActiveDirectoryAuditRule.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Required? false
Position? 4
Default value [System.Management.Automation.PSCredential]::Empty
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String, System.String, System.DirectoryServices.ActiveDirectoryAuditRule[],
System.Management.Automation.PSCredential
OUTPUTS
None
NOTES
AUTHOR: Michael Haken
LASTEDIT: 2/27/2016
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-Auditing -Domain contoso.com -ObjectCN "CN=Policies,CN=System" -Rules $Rules
Implements the audit rules.
RELATED LINKS
SYNOPSIS
Sets auditing on an Active Directory object.
SYNTAX
Set-Auditing [-Domain] <String> [-ObjectCN] <String> [-Rules] <ActiveDirectoryAuditRule[]> [[-Credential]
<PSCredential>] [<CommonParameters>]
DESCRIPTION
The Set-Auditing cmdlet applies an audit rule set to an AD object.
PARAMETERS
-Domain <String>
The domain to set the auditing in.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ObjectCN <String>
The CN of the object to set auditing on up to the domain part of the DN. This can be an emptry string to set
auditing on the domain.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Rules <ActiveDirectoryAuditRule[]>
The array of ActiveDirectoryAuditRule.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Required? false
Position? 4
Default value [System.Management.Automation.PSCredential]::Empty
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String, System.String, System.DirectoryServices.ActiveDirectoryAuditRule[],
System.Management.Automation.PSCredential
OUTPUTS
None
NOTES
AUTHOR: Michael Haken
LASTEDIT: 2/27/2016
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-Auditing -Domain contoso.com -ObjectCN "CN=Policies,CN=System" -Rules $Rules
Implements the audit rules.
RELATED LINKS