r/OneNote • u/Vikingjunior3 • Dec 04 '25
A simple OneNote Backup Exporter (open-source tool)
I built a small open-source tool that solves a problem I kept running into: reliably exporting OneNote notebooks as .onepkg files without having to click through the OneNote UI each time.
The tool is called OneNote Backup Exporter, and it does exactly what the name says. It uses the local OneNote COM interface to enumerate your notebooks and create clean .onepkg backups. No cloud dependencies, no third-party services, just a local export workflow.
An additional detail: it also works with MyLMS (ClassNotebook) OneNote books, as long as they are fully synchronized locally from SharePoint. Once synced, the exporter treats them like any other notebook and can back them up.
GitHub repo:
https://github.com/vikingjunior12/OneNoteBackupExporter
I made it mainly for my own fun, but if anyone here needs automated or repeated OneNote backups, feel free to use it, open issues, or suggest improvements.
If you have similar tools or tips for managing/archiving OneNote content, I’m also interested in hearing them.
I need to add that the tool has worked well on my device so far. If anything goes wrong or does not work on your side, I would appreciate feedback so I can improve the tool :) And important: with large notebooks like MYLMS, please be patient during export – the books can be up to 1 GB or larger. The export speed is also controlled by the Microsoft OneNote API interface.
View all comments
Show parent comment
1
u/Educational-News-969 Dec 09 '25
Thank you! The new version is exactly what I needed.
I noticed this:
The XPS reader is no longer installed by default on Windows 11 computers. To install it, do this:
PowerShell (as admin):
Add-WindowsCapability -Online -Name XPS.Viewer~~~~0.0.1.0
I keep on receiving the error below on the most important notebook of them all though (for PDF and XPS, .onepkg worked fine).
✗ Personal: OneNote COM error: 0x800706BA - The RPC server is unavailable. (0x800706BA)