Share via


Get-PartnerAuditRecord

Gets audit records from Partner Center.

Syntax

Get-PartnerAuditRecord
   [-EndDate <DateTime>]
   [-StartDate <DateTime>]
   [<CommonParameters>]

Description

Gets audit records for the previous 30 days from the current date, or for a date range specified by including the start date and/or the end date. Note, however, that for performance reasons activity log data availability is limited to the previous 90 days.

Examples

Example 1

PS C:\> Get-PartnerAuditRecord -Start (Get-Date).AddDays(-89)

Gets the audit records from Partner Center for the past 89 days.

Parameters

-EndDate

The end date of the audit record logs.

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StartDate

The start date of the audit record logs.

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Auditing.PSAuditRecord