API Reference
Cmdlet
Get-OfficeOneNote
Reads an offline OneNote section, notebook hierarchy, or packaged notebook.
Remarks
Reads an offline OneNote section, notebook hierarchy, or packaged notebook.
Examples
Read a OneNote section and inspect its pages.
PS>
$section = Get-OfficeOneNote -Path .\Operations.one
$section.Pages | Select-Object Title, CreatedUtc, LastModifiedUtc
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-OfficeOneNote [-NotebookOptions <OneNoteNotebookReaderOptions>] [-Options <OneNoteReaderOptions>] -Path <String> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- NotebookOptions OneNoteNotebookReaderOptions
- Notebook hierarchy, package, and section-error policy.
- Options OneNoteReaderOptions
- Bounded section and revision-store read options.
- Path String
- Path to a .one section, .onetoc2 notebook index, or .onepkg archive.
Outputs
OfficeIMO.OneNote.OneNoteSection, OfficeIMO.OneNote.OneNoteNotebook