Ram
Ram

Reputation: 110

How to create an executable using powershell

Is there a way that I can create a simple executable (.exe) using powershell?? a simple one which would open a google page?? also how do I invoke an exe using powershell?? I tried ps2exe code but that was supporting until ps version 4.0, my psversion is 5.0.. Any help on this is really appreciated

Upvotes: 0

Views: 337

Answers (1)

Jofiseen
Jofiseen

Reputation: 21

You can invoke an .exe in PS via the Invoke-Expression cmdlet (Also Invoke-Command if you must but Invoke-Expression preferred) My version of PS is 5.1.17763.134 and ps2exe works in creating an .exe from a .ps1 for me.

Upvotes: 1

Related Questions