Is it possible to turn a PowerShell script into a Windows Service?

%3CLINGO-SUB%20id%3D%22lingo-sub-2225197%22%20slang%3D%22en-US%22%3EIs%20it%20possible%20to%20turn%20a%20PowerShell%20script%20into%20a%20Windows%20Service%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2225197%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20anyway%20I%20can%20turn%20a%20PowerShell%20script%20into%20a%20Windows%20Service%20that%20will%20start%20whenever%20a%20computer%20starts.%20First%20we%20need%20to%20turn%20the%20*.PS1%20script%20into%20an%20*.exe%20app.%20It%20would%20be%20ideal%20if%20this%20can%20be%20done%20with%20windows%20products%20and%20not%20third%20party%20apps.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20you%20can%20help%3CBR%20%2F%3EColin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2225197%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eservice%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi All,

 

Is there anyway I can turn a PowerShell script into a Windows Service that will start whenever a computer starts. First we need to turn the *.PS1 script into an *.exe app. It would be ideal if this can be done with windows products and not third party apps. 

 

I hope you can help
Colin

1 Reply

Hello @CEStar321,

Here you can find couple of options:

https://adamtheautomator.com/ps1-to-exe/

 

Hope that helps.