API Reference
Cmdlet
Get-OfficeExcelCommentAudit
Audits legacy notes and threaded comments preserved in an Excel workbook.
Remarks
Audits legacy notes and threaded comments preserved in an Excel workbook.
Examples
Review comments before distributing a workbook.
PS>
$audit = Get-OfficeExcelCommentAudit -Path .\ReviewWorkbook.xlsx -IncludeComments
$audit.Comments | Sort-Object SheetName,CellReference | Format-Table SheetName,CellReference,Author,Text
$audit.Issues | Format-Table Severity,Category,SheetName,Address,Message
Returns workbook-level note/threaded-comment counts, optional comment records, and metadata issues such as missing authors or orphaned threaded replies.
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
Get-OfficeExcelCommentAudit [-IncludeComments] -InputPath <String> [<CommonParameters>]#Parameter set:
PathParameters
- IncludeComments SwitchParameter
- Include legacy and threaded comment records in the output.
- InputPath String
- Workbook path.
Outputs
System.Management.Automation.PSObject
Get-OfficeExcelCommentAudit -Document <ExcelDocument> [-IncludeComments] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook document.
- IncludeComments SwitchParameter
- Include legacy and threaded comment records in the output.
Outputs
System.Management.Automation.PSObject