API Reference
Cmdlet
Get-OfficeDocumentDetection
Detects a document kind from extension and bounded content evidence.
Remarks
Detects a document kind from extension and bounded content evidence.
Examples
Inspect the real content type of a document.
PS>
Get-OfficeDocumentDetection -Path .\upload.bin -Mode PreferContent
Returns the selected kind, confidence, media type, and evidence used by OfficeIMO.Reader.
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-OfficeDocumentDetection [-MaxContainerEntries <Nullable`1>] [-MaxProbeBytes <Nullable`1>] [-Mode <ExtensionOnly|ContentWhenUnknown|PreferContent>] [-NoContainerInspection] -Path <String> [-Reader <OfficeDocumentReader>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- MaxContainerEntries Nullable`1
- Maximum archive entries inspected while classifying container formats.
- MaxProbeBytes Nullable`1
- Maximum prefix bytes inspected for signatures and text markers.
- Mode ReaderDetectionMode
- Policy used to combine extension and content evidence.
- Possible values:
ExtensionOnly,ContentWhenUnknown,PreferContent - NoContainerInspection SwitchParameter
- Skip structural inspection of ZIP-based containers.
- Path String
- Path to inspect.
- Reader OfficeDocumentReader
Outputs
OfficeIMO.Reader.ReaderDetectionResult