Get-AuditConfigurationRule

This cmdlet is functional only in Security & Compliance PowerShell. For more information, see Security & Compliance PowerShell.

Use the Get-AuditConfigurationRule cmdlet to view audit configuration rules.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Syntax

Get-AuditConfigurationRule
   [[-Identity] <ComplianceRuleIdParameter>]
   [-DomainController <Fqdn>]
   [<CommonParameters>]

Description

To use this cmdlet in Security & Compliance PowerShell, you need to be assigned permissions. For more information, see Permissions in the Microsoft Purview compliance portal.

Examples

Example 1

Get-AuditConfigurationRule | Format-List Name,Workload,AuditOperation,Policy

This example lists summary information about all audit configuration rules.

Example 2

Get-AuditConfigurationRule 989a3a6c-dc40-4fa4-8307-beb3ece992e9

This example lists details about the audit configuration rule named 989a3a6c-dc40-4fa4-8307-beb3ece992e9.

Parameters

-DomainController

This parameter is reserved for internal Microsoft use.

Type:Fqdn
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Security & Compliance

-Identity

The Identity parameter specifies the audit configuration rule that you want to view. The name of the rule is a GUID value. For example, 989a3a6c-dc40-4fa4-8307-beb3ece992e9.

Type:ComplianceRuleIdParameter
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Exchange Online, Security & Compliance