Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeHiddenData

Module
PSWriteOffice
Inputs
System.String[]
Outputs
PSWriteOffice.Models.OfficeHiddenDataFileReport

Reports the metadata and hidden data that would leave with a file. The file is never changed.

Syntax

Get-OfficeHiddenData
[-Path] <String[]>
[<CommonParameters>]
#
Parameter set: Path
Get-OfficeHiddenData
-LiteralPath <String[]>
[<CommonParameters>]
#
Parameter set: LiteralPath

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).Findings

Find 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[] requiredposition: 0pipeline: True (ByValue)sets: Path
Files to inspect; supports wildcards.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
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.