Porting Binary PowerShell Modules to Linux/OSX - Jared Atkinson
Channel: PowerShell Conference EU
Date: 2017-05-19

In August of 2016, Microsoft officially open sourced the PowerShell project. This is an important step towards making PowerShell a single platform for automation of management/administration tasks on all operating system variants, not just Windows. Naturally, many open source powershell developers rushed to make sure their script modules were compatible with PowerShell Core and open source PowerShell on non-Windows operating systems. Porting script modules turns out to be a “relatively” painless process, but binary modules create additional problems to overcome. In this presentation, I will discuss writing Binary PowerShell Modules targeting the PowerShell Core and open source PowerShell, specifically focused on modules built to run in *nix environments. I will cover writing P/Invoke definitions for Linux and Mac OSX function calls, reviewing source code to see how Microsoft does it, and how to add operating system detection logic.  Finally, I will demonstrate running PowerForensics on a non-Windows platform.
Speaker: Jared Atkinson

Slides and demo code for this and other sessions will be released on https://github.com/psconfeu/2017 over the next few weeks.