Convert PowerShell script to exe file

Hello,

I want to convert/compile/package my powershell scripts to exe file.

Is there any free way to do it, and if not what kind of tool can I use to make it hapen?

 

April 12th, 2011 11:10am

1) PrimalScript (www.primalscript.com) - Shareware

2) Write this script on C# - Free.


Free Windows Admin Tool Kit Click here and download it now
April 12th, 2011 11:48am

I have the primalscript, and I guess that I should use "script package" but I down know where I should take the manifest files.

About the C#, is there some code in C# that can compile the .ps1 to .exe you can share with me?

April 12th, 2011 12:04pm

I have the primalscript, and I guess that I should use "script package" but I down know where I should take the manifest files.

About the C#, is there some code in C# that can compile the .ps1 to .exe you can share wi

Free Windows Admin Tool Kit Click here and download it now
April 12th, 2011 12:09pm

unforunately I don't know c#.

can you help me with primalscript, how can I reach my goal please?

April 12th, 2011 12:13pm

http://www.sapienpress.com/downloads/Ps2009TFM.pdf - Chapter 13
Free Windows Admin Tool Kit Click here and download it now
April 12th, 2011 12:44pm

Check out this blog post:

 

http://rkeithhill.wordpress.com/2010/09/21/make-ps1exewrapper/

 

 

 

April 13th, 2011 8:57am

You can use callPS2EXE script from Codeplex project. Below is a quick example of doing this.

Example:

C:\Temp>echo Invoke-Item "C:\Windows\system32\notepad.exe" >> Invoke-Notepad.ps1

C:\Temp>type Invoke-Notepad.ps1 
Invoke-Item "C:\Windows\system32\notepad.exe"

C:\Temp>

PS C:\Temp> .\callPS2EXE.bat ".\Invoke-Notepad.ps1" ".\Invoke-Notepad.exe" -x86 -noconsole 
PS2EXE; v0.3.0.0 by Ingo Karstein (http://blog.karstein-consulting.com)

You are using PowerShell 3.0.

winexe 
Reading input file C:\Temp\Invoke-Notepad.ps1

Compiling file

Output file C:\Temp\Invoke-Notepad.exe written 
Config file for EXE created. 
PS C:\Temp>

For more details refer: http://gunnalag.com/2013/06/04/converting-powershell-script-into-an-executableapplication/ 

Free Windows Admin Tool Kit Click here and download it now
June 5th, 2013 5:16am

Hi,

http://portal.sivarajan.com/2014/03/converting-powershell-ps1-to-exe.html

(direct link to download PowerGUI Script Editor)

http://en.community.dell.com/techcenter/powergui/m/bits/20439049

Works flawless!


May 9th, 2015 3:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics