Get-OfficeHiddenData
Reports the metadata and hidden data that would leave with a file. The file is never changed.
Syntax
Description
Finds author and company properties, comments, tracked changes, hidden text, rows, sheets and slides, speaker notes, image metadata such as GPS locations, scripts, attachments, Content Credentials and AI labels. Inputs are Word, Excel, PowerPoint, Visio, OpenDocument, EPUB, PDF, JPEG, PNG, WebP, GIF and TIFF files. Each finding has the Outcome Found.
Examples
List what would leave with a proposal.
(Get-OfficeHiddenData -Path .\Proposal.docx).FindingsFind the files in an outgoing folder that still carry comments or tracked changes.
Get-ChildItem .\Outgoing -File | Get-OfficeHiddenData |
Where-Object { $_.Findings.Kind -contains 'Comments' -or $_.Findings.Kind -contains 'TrackedChanges' }Parameters
- -Path String[]
- Files to inspect; supports wildcards.
- -LiteralPath String[]
- Exact file paths, including FileInfo.FullName and provider PSPath pipeline properties.
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.
Outputs
PSWriteOffice.Models.OfficeHiddenDataFileReport: Hidden data found in one file, what removal did with each item, and where the cleaned copy was written.