OneNoteAutomation
1.0.2
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
API improvements
- Added -Id parameter to Get-OneNoteNotebook
- Added -Id parameter to Get-OneNoteSection
- Added -Id parameter to Get-OneNotePage
- Direct retrieval by ID now available for all Get-OneNote cmdlets
- Enhanced parameter documentation for clarity
Pipeline enhancements
- Update-OneNotePage now returns the updated page after saving
- Enables pipeline chaining with the latest version from OneNote
Repository samples
- Updated Set-OneNotePageToc and Set-OneNotePageSpacing to use new APIs
- Samples now return latest page version when using -Save switch
FileList
- OneNoteAutomation.nuspec
- Private\Get-OneNoteNotebookNameCompletion.ps1
- Public\Get-OneNoteHierarchy.ps1
- Public\Remove-ComObject.ps1
- OneNote.format.ps1xml
- Private\Get-OneNoteSectionNameCompletion.ps1
- Public\Get-OneNoteNotebook.ps1
- Public\Show-OneNote.ps1
- Private\New-OneNoteCompletion.ps1
- Public\Get-OneNotePage.ps1
- Public\Update-OneNotePage.ps1
- OneNoteAutomation.psd1
- Private\Register-ArgumentCompleterMap.ps1
- Public\Get-OneNoteSection.ps1
- Public\Use-ComObject.ps1
- OneNoteAutomation.psm1
- Private\Test-OneNotePageHasContent.ps1
- Public\New-OneNotePage.ps1
- README.md
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.2 (current version) | 4 | 1/2/2026 |
| 1.0.1 | 5 | 1/2/2026 |
| 1.0.0 | 6 | 1/1/2026 |
| 0.1.1 | 6 | 12/31/2025 |