Cmdlet
Open-OfficeOpenDocument
Loads a native ODT, ODS, ODP, or ODG document.
Syntax
Open-OfficeOpenDocument
[[-Content] <ScriptBlock>]
[-MaxCompressionRatio <Double>]
[-MaxDepth <Int32>]
[-MaxEntries <Int32>]
[-MaxEntryUncompressedBytes <Int64>]
[-MaxPackageBytes <Int64>]
[-MaxTotalKdfIterations <Int64>]
[-MaxTotalUncompressedBytes <Int64>]
[-MaxXmlCharacters <Int64>]
[-MaxXmlDepth <Int32>]
[-PassThru]
[-Password <SecureString>]
[-Path] <String>
[-Show]
[<CommonParameters>]#Parameter set:
PathOpen-OfficeOpenDocument
[[-Content] <ScriptBlock>]
-LiteralPath <String>
[-MaxCompressionRatio <Double>]
[-MaxDepth <Int32>]
[-MaxEntries <Int32>]
[-MaxEntryUncompressedBytes <Int64>]
[-MaxPackageBytes <Int64>]
[-MaxTotalKdfIterations <Int64>]
[-MaxTotalUncompressedBytes <Int64>]
[-MaxXmlCharacters <Int64>]
[-MaxXmlDepth <Int32>]
[-PassThru]
[-Password <SecureString>]
[-Show]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Example 1
Open-OfficeOpenDocument -Path 'C:\Path'Example 2
Open-OfficeOpenDocument -LiteralPath 'C:\Path'Parameters
- -Content ScriptBlock
- An optional authoring block; omission returns the live document.
- -MaxCompressionRatio Double
- Maximum declared expansion ratio for a compressed entry.
- -MaxDepth Int32
- Maximum archive path depth.
- -MaxEntries Int32
- Maximum number of ZIP entries.
- -MaxEntryUncompressedBytes Int64
- Maximum uncompressed size of one package entry.
- -MaxPackageBytes Int64
- Maximum source package size in bytes.
- -MaxTotalKdfIterations Int64
- Maximum aggregate PBKDF2 iterations across encrypted entries.
- -MaxTotalUncompressedBytes Int64
- Maximum aggregate uncompressed package size.
- -MaxXmlCharacters Int64
- Maximum characters allowed in one parsed XML part.
- -MaxXmlDepth Int32
- Maximum element nesting depth in one parsed XML part.
- -PassThru SwitchParameter
- Emit the FileInfo after a completed authoring block.
- -Password SecureString
- Password used to decrypt an encrypted OpenDocument package.
- -Path String
- Path to an ODT, ODS, ODP, or ODG file.
- -Show SwitchParameter
- Open the saved document after a completed authoring block.
- -LiteralPath String
- Exact source path without wildcard expansion.
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.