0

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

1

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

My download seems to not include version 5 so it failed to convert, now I downloaded latest from gallery.technet.microsoft.com/… with which am able to convert to exe.. will check on "Invoke-Expression".. thanku

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.