Cmdlet
Get-OfficeDocumentDetection
Detects a document kind from extension and bounded content evidence.
Syntax
Get-OfficeDocumentDetection
[-MaxContainerEntries <Int32>]
[-MaxProbeBytes <Int32>]
[-Mode <ExtensionOnly| ContentWhenUnknown| PreferContent>]
[-NoContainerInspection]
[-Path] <String>
[-Reader <OfficeDocumentReader>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Inspect the real content type of a document.
Get-OfficeDocumentDetection -Path .\upload.bin -Mode PreferContentReturns the selected kind, confidence, media type, and evidence used by OfficeIMO.Reader.
Parameters
- -MaxContainerEntries Int32
- Maximum archive entries inspected while classifying container formats.
- -MaxProbeBytes Int32
- 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
- Optional immutable OfficeIMO reader with caller-configured handlers and processors.
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.