Cmdlet
Get-OfficeDocumentInfo
Inspects format, native counts and encryption without changing a source or reopening a live document.
Syntax
Get-OfficeDocumentInfo
[-Detailed]
[-DetectionMode <ExtensionOnly| ContentWhenUnknown| PreferContent>]
[-MaximumContainerEntries <Int32>]
[-MaximumProbeBytes <Int32>]
[-NoContainerInspection]
[-Options <Object[]>]
[-Password <SecureString>]
[-Path] <String[]>
[-Reader <OfficeDocumentReader>]
[-ThrottleLimit <Int32>]
[<CommonParameters>]#Parameter set:
PathGet-OfficeDocumentInfo
[-Detailed]
[-Document] <Object>
[-Options <Object[]>]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeDocumentInfo
[-Detailed]
[-DetectionMode <ExtensionOnly| ContentWhenUnknown| PreferContent>]
-LiteralPath <String[]>
[-MaximumContainerEntries <Int32>]
[-MaximumProbeBytes <Int32>]
[-NoContainerInspection]
[-Options <Object[]>]
[-Password <SecureString>]
[-Reader <OfficeDocumentReader>]
[-ThrottleLimit <Int32>]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Inventory workbook counts and protection.
Get-ChildItem ./Reports/*.xlsx | Get-OfficeDocumentInfo | Select-Object Path, Format, SheetCount, IsEncryptedInspect unsaved presentation edits.
$presentation | Get-OfficeDocumentInfo -DetailedParameters
- -Detailed SwitchParameter
- Include the native format's detached inspection snapshot.
- -DetectionMode ReaderDetectionMode
- Content and filename selection policy.
- Possible values:
ExtensionOnly,ContentWhenUnknown,PreferContent - -MaximumContainerEntries Int32
- Maximum container entries examined during format detection.
- -MaximumProbeBytes Int32
- Maximum prefix bytes examined for content signatures.
- -NoContainerInspection SwitchParameter
- Skip structural container inspection when identifying the format.
- -Options Object[]
- Inspection, native format or Reader policy objects; hashtables are accepted.
- -Password SecureString
- Password used locally to open an encrypted source.
- -Path String[]
- Gets or sets input paths with provider wildcard expansion.
- -Reader OfficeDocumentReader
- Immutable caller-configured format registry.
- -ThrottleLimit Int32
- Gets or sets the maximum number of concurrent background operations.
- -Document Object
- Live native model or normalized Reader result. Its source path is never reopened.
- -LiteralPath String[]
- Gets or sets input paths without wildcard expansion, binding FileInfo.FullName and provider PSPath.
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.