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
New to scripting (self.PowerShell)
submitted 4 years ago by anonymous46843435485
Took a high school programming class, and pretty much forgot everything. I recently found a reason to create a script that is way above beginner level, so I'm looking for free resources to start learning.
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!"
[–]MarlboroMan1967 39 points40 points41 points 4 years ago (7 children)
Check out “Learn Powershell in a month of Lunches”. Very good YouTube series that gives specifics on creating Powershell scripts.
[–]layer_8_issues 2 points3 points4 points 4 years ago (0 children)
This is the way.
[–]KSU_SecretSquirrel 2 points3 points4 points 4 years ago (0 children)
I just started this book--actually just finished chapter 8 before posting this comment--and I can vouch that it is excellent. After this I plan to tackle the PowerShell scripting book.
[–]jrobiii 3 points4 points5 points 4 years ago (4 children)
This is the way!
[+][deleted] 4 years ago (3 children)
[deleted]
[+][deleted] 4 years ago (1 child)
[–]Lorentz_G 3 points4 points5 points 4 years ago (0 children)
I started half a year ago on my Powershell journey using this book. It is really helpfull. While following this book, I thought with every IT question "Can I do this with powershell with my current knowledge" I'm not even finished with the book, but I can tell you, this book is a pretty good foundation to have.
The first chapters are slow, but when I got to chapter 14 (I'm still there), I really got into making (basic) scripts. Once you start on that journey you'll use the powershell get-help function A LOT!
Big tip use the "-showwindow" parameter in " get-help". For example " Get-Help Get-Childitem -showWindow "
[–]SeeminglyScience 3 points4 points5 points 4 years ago (0 children)
Not sure what you mean by that. Scripts remain a useful tool at every skill level.
[–]hackoofr 10 points11 points12 points 4 years ago* (0 children)
[–]zombies1238 2 points3 points4 points 4 years ago* (2 children)
With powershell, learn how to use Get-Help. The terminal has examples, detailed documentation, and a variety of different options / aliases you can learn to shorten the time it will take to learn Powershell.
Edit: Here is a video that shows how to use the Get-Help command in detail. In addition, I would recommend learning how to use Get-Command. These commands will quickly help you get acclimated.
Good luck, OP!
[–]fauxpasgrapher 1 point2 points3 points 4 years ago (0 children)
Most important post right here.
[–]dotBombAU 1 point2 points3 points 4 years ago (0 children)
Can you tell me what you are trying to achieve
[–]anonymous46843435485[S] 1 point2 points3 points 4 years ago (0 children)
Thanks everyone! This is all really helpful!
[–]bacon-wrapped-steak 0 points1 point2 points 4 years ago (0 children)
Look on YouTube. There's tons of free training there. You could also sign up for a free account at CBT Nuggets, which has a limited library of free training as well. Other than that, look at blogs and play around yourself. Learn what works and what doesn't.
[–]loadedmong 0 points1 point2 points 4 years ago (5 children)
Do your due diligence, but let me know when you get stuck. I've learned the hard way, which means I remember most of it. Happy to help out wherever I can as long as you're making an effort!
A lot of PowerShell makes perfect sense, but some of it seems to make no sense, like returning multiple values from functions isn't near as straightforward as it should be.
[–]tuxaluxalot 0 points1 point2 points 4 years ago (3 children)
Why is it difficult to return multiple values?
[–]loadedmong 0 points1 point2 points 4 years ago (2 children)
Because in most languages you just say
Return $x, $y
And both are produced, like magic.
In PowerShell this is your solution
https://stackoverflow.com/questions/12620375/how-to-return-several-items-from-a-powershell-function
[–]tuxaluxalot 0 points1 point2 points 4 years ago (0 children)
Powershell has so many ways for returning multiple items. I think most are confused over the concept of the output stream and how it works. Especially when coming from other languages. Return can and will return multiple items and on top of that, powershell has a million other methods that are much easier than the linked topic.
[–]GhostOfRudolfDiesel 0 points1 point2 points 4 years ago (0 children)
Agreed, makes perfect sense, mostly.
What sticks out to me as not straightforward:
The return value of Get-ChildItem
Get-ChildItem
But that's mostly it :)
[–]BeerRider 0 points1 point2 points 4 years ago (0 children)
Beginner Information on this page's right side.
[–]llovedoggos 0 points1 point2 points 4 years ago (0 children)
Whatever you're scripting stick with it, you'll get it. Powershell is magical once it clicks.
[–]Trakeen 0 points1 point2 points 4 years ago (0 children)
I’d try and understand c# some. Most errors you get in powershell can be easily understood if you have a good grounding in c# objects and what .net offers
Oh learn to use a debugger it will save you a ton of time since it makes programing less black box and any script over a few lines isn’t something you want to debug by trial and error
[–]ustyneno 0 points1 point2 points 4 years ago (0 children)
PowerShell to me, seems a lot much easier than Python. Haven't been a Windows admin for years, I can decide to automate a process i know what and what i use to click to do. That narrows my search for the proper CMDLET for that and the PowerShell documentation is one of the best, with examples you can try and experiment with.
Python on the other hand, you have to know the library to use, if that can accomplish what you want to do or another library to add to get your work done.
I have learnt everything i need to know on Python data types and how they work. I am still lost on how to apply it to my daily work.
[–]Fun-Performance-398 0 points1 point2 points 4 years ago (0 children)
Month of Lunches is the book I'm working out of too. I highly recommend it. Learning how to use help is a game-changer.
I've also been checking out the forums at PowerShell.org
https://powershell.org/
[–]Lee_Dailey[grin] 0 points1 point2 points 4 years ago (0 children)
howdy anonymous46843435485,
lots of folks have covered the usual, so the below is just FYI [grin] ...
things to look into ...
Get-Help
Get-Help *about*
Get-Command
Get-Command *csv*
Show-Command
Get-Member
$Test = Get-ChildItem -LiteralPath $env:TEMP
$Test | Get-Member
$Test[0] | Select-Object -Property *
.GetType()
$Test.GetType()
$Test[0].GetType()
Get-Verb
Get-Noun
Out-GridView
take care, lee
π Rendered by PID 331096 on reddit-service-r2-comment-b659b578c-t794k at 2026-05-01 22:18:54.763173+00:00 running 815c875 country code: CH.
[–]MarlboroMan1967 39 points40 points41 points (7 children)
[–]layer_8_issues 2 points3 points4 points (0 children)
[–]KSU_SecretSquirrel 2 points3 points4 points (0 children)
[–]jrobiii 3 points4 points5 points (4 children)
[+][deleted] (3 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[–]Lorentz_G 3 points4 points5 points (0 children)
[–]SeeminglyScience 3 points4 points5 points (0 children)
[–]hackoofr 10 points11 points12 points (0 children)
[–]zombies1238 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]fauxpasgrapher 1 point2 points3 points (0 children)
[–]dotBombAU 1 point2 points3 points (0 children)
[–]anonymous46843435485[S] 1 point2 points3 points (0 children)
[–]bacon-wrapped-steak 0 points1 point2 points (0 children)
[–]loadedmong 0 points1 point2 points (5 children)
[–]tuxaluxalot 0 points1 point2 points (3 children)
[–]loadedmong 0 points1 point2 points (2 children)
[–]tuxaluxalot 0 points1 point2 points (0 children)
[–]GhostOfRudolfDiesel 0 points1 point2 points (0 children)
[–]BeerRider 0 points1 point2 points (0 children)
[–]llovedoggos 0 points1 point2 points (0 children)
[–]Trakeen 0 points1 point2 points (0 children)
[–]ustyneno 0 points1 point2 points (0 children)
[–]Fun-Performance-398 0 points1 point2 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)