Cmdlet
Get-OfficeExcelCommentAudit
Audits legacy notes and threaded comments preserved in an Excel workbook.
Syntax
Examples
Review comments before distributing a workbook.
$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,MessageReturns workbook-level note/threaded-comment counts, optional comment records, and metadata issues such as missing authors or orphaned threaded replies.
Parameters
- -IncludeComments SwitchParameter
- Include legacy and threaded comment records in the output.
- -Path String
- Workbook path.
- -Document ExcelDocument
- Workbook document.
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.