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
Owners
Copyright
© 2025 Knut Kristian Johansen
Package Details
Author(s)
- Knut Kristian Johansen
Tags
Functions
Get-OneNoteHierarchy Get-OneNoteNotebook Get-OneNotePage Get-OneNoteSection New-OneNotePage Remove-ComObject Show-OneNote Update-OneNotePage Use-ComObject
PSEditions
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
- OneNoteAutomation.nuspec
- Private\Test-OneNotePageHasContent.ps1
- Public\New-OneNotePage.ps1
- OneNote.format.ps1xml
- Private\Get-OneNoteNotebookNameCompletion.ps1
- Public\Get-OneNoteHierarchy.ps1
- Public\Remove-ComObject.ps1
- Private\Get-OneNotePageContent.ps1
- Public\Get-OneNoteNotebook.ps1
- Public\Show-OneNote.ps1
- OneNoteAutomation.psd1
- Private\Get-OneNoteSectionNameCompletion.ps1
- Public\Get-OneNotePage.ps1
- Public\Update-OneNotePage.ps1
- OneNoteAutomation.psm1
- Private\New-OneNoteCompletion.ps1
- Public\Get-OneNoteSection.ps1
- Public\Use-ComObject.ps1
- README.md
- Private\Register-ArgumentCompleterMap.ps1
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 |