Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert PowerShell script to exe

Tags:

I'm looking to convert a PS1 file to an .exe file so I can roll it out to less technical users.

I believe it'll be much easier for them if all they need to do is double-click it vs explaining how to run through PowerShell.

How can I achieve this?

image

like image 741
Matthew Avatar asked Jan 19 '18 09:01

Matthew


2 Answers

Use PS2EXE instead of this online tool that forces you to upload your script and creates a security breach if you have confidential information inside your script.

There is a GUI mode available; to learn more, see the GitHub repository.

like image 138
Manu Avatar answered Sep 18 '22 22:09

Manu


You have a few paid and unpaid solutions. I agree with last answer, do not use online tools unless you are sure they are not keeping your code and you trust them.

There are two free ones that come to mind:

PS2EXE-GUI

PS1 To EXE by F2KO (Make sure t it is the local install command line interface, not the web one)

The Paid ones are:

PowerShell Studio

ISE Steroids 2.0 Enterprise

Noted: I think the free ones should be fine for most uses. I do like PowerShell Studio though.

like image 36
Powershelling Avatar answered Sep 19 '22 22:09

Powershelling