OneNote data handling with PowerShell from getting hierarchy structure to exporting notebook
OneNote can export its notebooks, sections and pages as a document files. But it doesn't support as
- exporting different pages to separate document files
- exporting all pages under a notebook or a section to separate document files
And due to limited format support, exporting data in unsupported format, an exported file should be converted.
Any cases, an user may need support with programming to make them automatic and efficient.
This post introduces handling OneNote data with PowerShell, and procedure to export a file to Markdown.
- Precaution
- Different editions of PowerShell
- Different editions of OneNote
- API
- Get hierarchy structure
- Get ID and output them as CSV file
- Export OneNote page and convert to Markdown
- Precaution: convert to Markdown
- Precaution: run by common user→run as Administrator
- Export from OneNote