Powershell script to exe

luciferous 1 Reputation point
2021-12-23T15:42:38.81+00:00

Hi

I have created a script for the company I work for to create pc's for our production halls. I have written a gui over it so it is easier to use.
But it bothers me that I always have to open a powershell. I have tried the ps2exe module but our antivirus + Virustotal reports it as a virus.
Is there any other way to convert a PS script to a executable?

Kind regards
S.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2021-12-23T16:22:32.76+00:00

    Why not wrap the code inside of VB.Net or C# executable?

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Rich Matheisen 47,901 Reputation points
    2021-12-24T15:36:02.847+00:00

    Why not just run PowerShell with the necessary arguments to execute your script from a .bat or .cmd file?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.