Convert PowerShell script to exe

 ̄綄美尐妖づ 提交于 2019-12-12 08:02:34

问题


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?

edit: I would argue this question should not be closed - The question itself does not request a tool or anything similar - The answers, thus far, recommend such.


回答1:


Use PS2EXE-GUI 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.




回答2:


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.



来源:https://stackoverflow.com/questions/48338017/convert-powershell-script-to-exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!