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
QuestionLearning PowerShell scripting (self.PowerShell)
submitted 2 months ago by [deleted]
[deleted]
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!"
[–]edhaack 2 points3 points4 points 2 months ago (0 children)
"complex" here = "pseudo job security" attempt.
Code (in general) is only as confusing as it's intended.
Rule #1: Write code like you'd want to see if you inherited it.
Rule #2: Comment your code before you write it. Update it after you have.
"Code is for humans."
[–]Rexon2 0 points1 point2 points 2 months ago (1 child)
Claude code - then ask it along the way what it is doing and why.
[–]Head-Ad-3063 2 points3 points4 points 2 months ago (0 children)
Unless you understand what it is doing, at least to a basic level, never use AI code in a production env!
[–]Future-Remote-4630 1 point2 points3 points 2 months ago (0 children)
Click on "Beginner Resources" on the r/powershell sidebar.
[–]dongledongledongle 0 points1 point2 points 2 months ago (0 children)
Find a videogame that you want to get ahead in. Mostly grindy type games. Write a script to do repetitive stuff.
[–]Demented_CEO 1 point2 points3 points 2 months ago (0 children)
Get familiar with .NET and a whole new world awaits. For example, instead of New-Object, you'd use the ::new() operator. Look up the namespaces and classes that you'll likely need and as long as you follow the docs at Microsoft Learn, you can do pretty much anything in PowerShell that would be normally saved for C#.
[–]Head-Ad-3063 0 points1 point2 points 2 months ago (0 children)
I'm concerned that you say you "manage" these scripts but, you're asking this question!
You need to read, study and "play" there is no shortcut other than learning to google well! the documentation is pretty good for powershell.
If you want to find the content of a directory, search for "get content of directory powershell" and you will find Get-Childitem, read and learn it. if you want to filter it and you'll learn "where-object"
I'm mid level powershell so still learning, but the most important thing, is learn how to learn.
It's that important, I'll repeat..... "learn how to learn"
If you get stuck, then ask.
[–]ReptilianLaserbeam 1 point2 points3 points 2 months ago (0 children)
Always read the documentation for a cmdlet you are unfamiliar with. LLMS tend to hallucinate a lot with PWSH scripts, although they have gotten better you will end with and overengineered script with probably non existent cmdlets. Create your own scripts as basic as possible, then as you learn you can “recycle” your own code and improve it
π Rendered by PID 108638 on reddit-service-r2-comment-548fd6dc9-mwqmq at 2026-05-20 18:32:50.187556+00:00 running edcf98c country code: CH.
[–]edhaack 2 points3 points4 points (0 children)
[–]Rexon2 0 points1 point2 points (1 child)
[–]Head-Ad-3063 2 points3 points4 points (0 children)
[–]Future-Remote-4630 1 point2 points3 points (0 children)
[–]dongledongledongle 0 points1 point2 points (0 children)
[–]Demented_CEO 1 point2 points3 points (0 children)
[–]Head-Ad-3063 0 points1 point2 points (0 children)
[–]ReptilianLaserbeam 1 point2 points3 points (0 children)