Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Open-OfficeOneNote

Module
PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.OneNote.OneNoteSection OfficeIMO.OneNote.OneNoteNotebook

Reads an offline OneNote section, notebook hierarchy, or packaged notebook.

Syntax

Open-OfficeOneNote
[-Options <Object[]>]
[-Path] <String>
[<CommonParameters>]
#
Parameter set: Path
Open-OfficeOneNote
-LiteralPath <String>
[-Options <Object[]>]
[<CommonParameters>]
#
Parameter set: LiteralPath

Examples

Read a OneNote section and inspect its pages.

$section = Open-OfficeOneNote -Path .\Operations.one
$section.Pages | Select-Object Title, CreatedUtc, LastModifiedUtc

Parameters

-Options Object[] optional
Bounded section and revision-store read options.
-Path String requiredposition: 0pipeline: True (ByValue)sets: Path
Path to a .one section, .onetoc2 notebook index, or .onepkg archive.
-LiteralPath String requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
Exact input 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.