GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PowerShellWeb/OpenXML: Automate OpenXML with PowerShell

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

72 Commits
72 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
Build
Build
 
 
Commands
Commands
 
 
Examples
Examples
 
 
Types
Types
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
OpenXML.psd1
OpenXML.psd1
 
 
OpenXML.psm1
OpenXML.psm1
 
 
OpenXML.tests.ps1
OpenXML.tests.ps1
 
 
OpenXML.types.ps1xml
OpenXML.types.ps1xml
 
 
README.md
README.md
 
 
README.md.ps1
README.md.ps1
 
 
SECURITY.md
SECURITY.md
 
 

Repository files navigation

OpenXML

Automate OpenXML. Excel, Word, and PowerPoint automation in PowerShell.

OpenXML is the standard used for Office documents.

You can think of it as a .zip in a trenchcoat.

Every part of an Excel, PowerPoint, or Word document is saved into an archive.

You can prove this to yourself by renaming any .docx file to .zip.

I sometimes call this the "zip epiphany", because it helps you understand how much technology is really a "zip in a trenchcoat".

(hint: it's much more than just OpenXML files)

This module is here to help you automate, inspect, and understand OpenXML files.

Installing and Importing

You can install OpenXML from the PowerShell gallery

Install-Module OpenXML -Scope CurrentUser -Force

Once installed, you can simply Import-Module

Import-Module OpenXML

Commands

  • Export-OpenXML
  • Get-OpenXML
  • Import-OpenXML
  • Set-OpenXML

Demos

    # Get text from a word document
Get-OpenXML ./Examples/HelloWorld.docx | 
    Select-Object -ExpandProperty Text

    
# Get modification times
Get-OpenXML ./Examples/HelloWorld.docx |
    Select-Object -Property Created, Modified

# Get PowerPoint slides
Get-OpenXML ./Examples/ASlideDeck.pptx |
    Select-Object -ExpandProperty Slides
# Get text from PowerPoint
Get-OpenXML ./Examples/ASlideDeck.pptx |
    Select-Object -ExpandProperty Text

# Get worksheets from Excel

Get-OpenXML ./Examples/Sample.xlsx |
    Select-Object -ExpandProperty Worksheets
    
# Get cells from Excel

Get-OpenXML ./Examples/Sample.xlsx |
    Select-Object -ExpandProperty Worksheets |
    Select-Object -ExpandProperty Cell
    
# Get formulas from Excel

Get-OpenXML ./Examples/Sum.xlsx |
    Select-Object -ExpandProperty Worksheets |
    Select-Object -ExpandProperty Formula    

Roadmap

While OpenXML has been around since 2006, this module is considerably younger.

It has a large amount of room to grow.

The primary goal for the forseeable future is to increase coverage of office features. If you would like to help, please consider contributing.

Security

OpenXML presents some unique security challenges.

This module makes OpenXML documents easier to read and write, which can be useful to both red and blue teams. Please see the security guide for more information.

About

Automate OpenXML with PowerShell

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.