Cmdlet
Get-OfficeDocumentBatch
Reads supported files and folders with adjustable concurrency and limits.
Syntax
Get-OfficeDocumentBatch
[-AllStoreItems]
[-ContinueOnError]
[-Extension <String[]>]
[-IncludePageLocations]
[-MaxDegreeOfParallelism <Int32>]
[-MaxDocuments <Int32>]
[-MaxStoreItems <Int32>]
[-NoDocumentLimit]
[-Path] <String[]>
[-Recurse]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Read supported files below a folder with four reads in flight.
Get-OfficeDocumentBatch -Path .\Reports -Recurse -MaxDegreeOfParallelism 4 -ContinueOnErrorPSWriteOffice discovers registered formats and reports individual read failures without requiring .NET option objects.
Parameters
- -AllStoreItems SwitchParameter
- Project every matching item from each email store.
- -ContinueOnError SwitchParameter
- Report individual read errors and continue processing other documents.
- -Extension String[]
- Optional extensions to include. Registered Reader formats are used automatically when omitted.
- -IncludePageLocations SwitchParameter
- Compute Word and RTF page locations when supported.
- -MaxDegreeOfParallelism Int32
- Maximum document reads in flight.
- -MaxDocuments Int32
- Maximum documents accepted in one batch. The default is 500.
- -MaxStoreItems Int32
- Maximum PST, OST, OLM, or EMLX items projected from each store. The default is 1,000.
- -NoDocumentLimit SwitchParameter
- Remove the document-count ceiling.
- -Path String[]
- File, directory, or wildcard paths to read.
- -Recurse SwitchParameter
- Search subdirectories when a path names a directory.
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.