Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

PS2EXE – The module

$
0
0

As part of a project I am currently working on at work, I had a requirement to convert the script to an executable. The main reasons for this were to obfuscate the code (prevent changes) and to hide the built in credentials (required). I started looking at ps2exe but the script didn’t do what I wanted and it was difficult to track. So I started from scratch and built a module for it instead :).

Unlike PS2EXE which uses a compiler object, this module uses add-type to create the executable.

https://github.com/VortexUK/PowerShellToEXE

NB. The program frame is basically the same one from PS2EXE and I take no credit for it. References are in the notes section.

submitted by /u/Vortex100
[link] [comments]

The post PS2EXE – The module appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793