PS2EXE.Core

0.4.0

Compiles Powershell scripts to executables. Overworking of the great script of Ingo Karstein with GUI support.
'Invoke-PS2EXE script.ps1' (or 'ps2exe script.ps1') compiles to script.exe. Several control parameters available.
Or use Win-PS2EXE as a graphical front end to the compiler.

Minimum PowerShell version

3.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PS2EXE.Core

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PS2EXE.Core

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Fabien Tschanz 2025

Package Details

Author(s)

  • Fabien Tschanz

Tags

Compiler Core PS2EXE.Core Executable PowerShell ps2exe Win-PS2EXE

Functions

Invoke-PS2EXE

Dependencies

This module has no dependencies.

Release Notes

# Version 0.4.0
* Added PowerShell and .NET SDK autodetect behavior.
* Added script validation before compilation.
* Fixed an issue where using System.Windows.Forms dialogs in PowerShell Core
 would fail because the namespace is not available.
* Fixed an issue where compiling a script with the same name multiple times
 would not include the latest changes to the script.
* Improved cross-platform compilation support.

# Version 0.3.0
* Added support for single file publishing with the -PublishSingleFile switch.

# Version 0.2.0
* Refactor C# file to use preprocessor directives instead of string replacements.
* Added error message if compiling for Windows PowerShell on non-Windows platform.

# Version 0.1.0
* Initial release of PS2EXE.Core.

FileList

Version History

Version Downloads Last updated
0.4.0 (current version) 22 8/30/2025
0.3.0 45 8/6/2025
0.2.0 9 8/5/2025
0.1.0 15 8/4/2025