OneNoteAutomation

1.0.0

PowerShell module for automating Microsoft OneNote using the COM API.
   
See https://github.com/knutkj/OneNoteAutomation for more information.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name OneNoteAutomation -RequiredVersion 1.0.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name OneNoteAutomation -Version 1.0.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

© 2025 Knut Kristian Johansen

Package Details

Author(s)

  • Knut Kristian Johansen

Tags

OneNote Automation Windows

Functions

Get-OneNoteHierarchy Get-OneNoteNotebook Get-OneNotePage Get-OneNoteSection New-OneNotePage Remove-ComObject Show-OneNote Update-OneNotePage Use-ComObject

PSEditions

Desktop

Dependencies

This module has no dependencies.

Release Notes

Breaking changes

- Get-OneNotePage -Content returns the full page XML element
- Content property removed from page objects
- Update code using page.Content to use the page element directly
- Update-OneNotePage no longer uses the Content parameter
- Pass a page element from the pipeline or a page document

Performance and usability

- Added -Current switch to Get-OneNoteNotebook
- Added -Current switch to Get-OneNoteSection
- Get-OneNotePage -Current searches only within the current section
- Faster lookups and improved responsiveness

Repository samples

- Example scripts for TOC and spacing are included in the repository
- Samples are not part of the module package

Notes

- This release is breaking
- Bump the module version
- Implement migration instructions above

FileList

Version History

Version Downloads Last updated
1.0.2 4 1/2/2026
1.0.1 5 1/2/2026
1.0.0 (current version) 6 1/1/2026
0.1.1 6 12/31/2025