Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Get-OfficeOneNote

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

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

Syntax

Get-OfficeOneNote
[-NotebookOptions <OneNoteNotebookReaderOptions>]
[-Options <OneNoteReaderOptions>]
[-Path] <String>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Read a OneNote section and inspect its pages.

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

Parameters

-NotebookOptions OneNoteNotebookReaderOptions optional
Notebook hierarchy, package, and section-error policy.
-Options OneNoteReaderOptions optional
Bounded section and revision-store read options.
-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePath
Path to a .one section, .onetoc2 notebook index, or .onepkg archive.

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.