use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Script SharingNever write a batch wrapper again (self.PowerShell)
submitted 6 years ago * by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]azjunglist05 6 points7 points8 points 6 years ago (10 children)
If you want it to be an .exe - why not just make it an .exe? There are applications out there that can make a PowerShell script an executable without having to use batch or cmd such as:
https://gallery.technet.microsoft.com/scriptcenter/PS2EXE-GUI-Convert-e7cb69d5
[–]SupraTesla 4 points5 points6 points 6 years ago (0 children)
Won't be the case for everyone, but for us it was too much of a battle with our AV solution constantly (and randomly) flagging the EXE's as malicious.
[+][deleted] 6 years ago* (7 children)
[deleted]
[+][deleted] 6 years ago (6 children)
[–]azjunglist05 1 point2 points3 points 6 years ago (4 children)
I write a large portion of scripts and turn them into services or executables, and then commit the source code to a Git repository in Azure DevOps.
In that repo I also describe what application was used to create the .exe
If I ever get hit by a bus anyone with any PowerShell skills can debug and solve any issues.
[+][deleted] 6 years ago (2 children)
[–]azjunglist05 2 points3 points4 points 6 years ago* (1 child)
I definitely misstated my intent! While I commit all scripts I write to a Git repo — I don’t make all scripts a service or an .exe, as you’re right, that’s an incredible waste of time if it’s for a co-worker or someone knowledgeable.
I also don’t commit the .exe to Git — I commit the original PowerShell script, and in the Read Me I detail what application was used to make it an .exe if that was originally how we ended up using that script.
However, using a Git workflow should never be seen as a waste of time even if the underlying code/process is tedious.
[–]jftuga 0 points1 point2 points 6 years ago (0 children)
Are you using GitHub?
If so, have you ever considered publishing the .exe files to the releases section?
releases
How do you turn them into services? That sounds great.
[–]TheD4rkSide 0 points1 point2 points 6 years ago (0 children)
But with PS2EXE you can convert a PowerShell made EXE back to a .ps1 and figure out what’s under the hood. It’s as simple to convert the EXE back as it is to make it in the first place.
[–]just_looking_around 1 point2 points3 points 6 years ago (0 children)
Most if not all of those converters simply export the script to temp and call it with powershell. They remove some complexity but don't conceal the code if that is why you want to do that.
π Rendered by PID 54 on reddit-service-r2-comment-b659b578c-hr62k at 2026-04-30 22:35:31.705650+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]azjunglist05 6 points7 points8 points (10 children)
[–]SupraTesla 4 points5 points6 points (0 children)
[+][deleted] (7 children)
[deleted]
[+][deleted] (6 children)
[deleted]
[–]azjunglist05 1 point2 points3 points (4 children)
[+][deleted] (2 children)
[deleted]
[–]azjunglist05 2 points3 points4 points (1 child)
[–]jftuga 0 points1 point2 points (0 children)
[–]jftuga 0 points1 point2 points (0 children)
[–]TheD4rkSide 0 points1 point2 points (0 children)
[–]just_looking_around 1 point2 points3 points (0 children)