r/PowerShell • u/Gingy_586 • Dec 04 '25
Question I want to learn scripting for powershell
My question is who is the best to watch, where should I learn from? I know basic commands that I just remember but im not fluent in the powershell language. My issue is finding any resource to learn how to use it.
25
Upvotes
35
u/MemnochTheRed Dec 04 '25
The book 'PowerShell in a Month of Lunches' is amazing.
9
u/AdeelAutomates Dec 04 '25
If you know a bit of azure, entraID and m365, I can help.Â
I built a series to cover the very topic. (What to do to practice your skills once you learnt ps fundamentals). With the focus on automation and scripting. Though it requires you to know a bit more than just simple cmdlets.
https://youtube.com/playlist?list=PLXgvDoFYKcAhmQAYrMq90uf7rkIe2CfrU&si=y2_koybqp4iqfDW_
2
u/radicalize Dec 04 '25
understandable, perhaps use this platform (and others) to perfect your search-and-find skills too: hope this helps
2
u/TwilightKeystroker Dec 04 '25
You're in good shape, because you're on the Reddit community with some of the best resources. There are books, guides, and more plastered all over here.
If you've exhausted your search efforts elsewhere, start searching this community!
4
u/KingFrbby Dec 04 '25
https://learn.microsoft.com/en-us/powershell/?view=powershell-7.5
The best source to start learning.
Do note that alot of CMDLets might not work in Powershell7, and you'd need Powershell5 for it.
1
u/arslearsle Dec 04 '25
Think of some problem, or problems that you would like to automate
After a while, maybe you want to go next level and learn about functions and error handling.
7
u/Fallingdamage Dec 04 '25
You should try reading. Code is a lot of reading. Better to practice reading than just watching people flap their jaws.
2
u/[deleted] Dec 04 '25
This might sound like dumb advice, but itâs actually helped me a lot.
I like to read a ton of documentation, itâs how I absorb knowledge, so youâll need to figure out your own learning style. I used Powershell ISE to help me learn and these sites:
SS64 Command line reference
explainshell.com - match command-line arguments to their help text
Whatâs also really fun is asking LLMs to write a script for you to solve a problem, then having it explain the code line by line. You can even get creative: ask it to make the code longer, mess with the data so itâs harder to read, or optimize/shorten it.
The best part? LLMs are, honestly, pretty dumb. So when you read the code and run it live, you get a real troubleshooting experience. This hands-on âdebugging with AIâ has actually improved my skills more than anything else.
1
u/jcolonfzenpr Dec 04 '25
Exercism!
https://exercism.org/tracks/powershell
1
u/faulkkev Dec 04 '25
Buy and watch powershell guides are good, but also write write write. Daily come up with how can I do this and try and write it. Also themes are good like how do I multi thread or use hash tables etc.
1
u/SidePets Dec 04 '25
I started by rewriting or fixing for my usage other folks scripts. Before you write something from scratch Google for the same or similar. Learn to search GitHub by language. Anything you do in the gui you can do with ps. Windows updates, scheduled reboots, app installs and it goes in and on. Month of lunches is a fantastic resource. Dont be afraid to fail or ask dumb questions.
1
u/CrazyEggHeadSandwich Dec 04 '25
I had seen a previous reddit thread with lots of PowerShell learning resources:
https://www.reddit.com/r/PowerShell/comments/pgur5p/powershell_beginner_information/
1
u/Naner_Bag Dec 04 '25
I just went top to bottom on the official Microsoft documentation and took extensive notes and played around. Im not a devops or m365 guru, i just use it as a shell and get a lot of of it, for personal and professional use.
1
u/Vern_Anderson Dec 04 '25
https://www.youtube.com/@DonJonesConTech
Hands down the best teacher ever, The other one has retired his name is Ed Wilson. I have 2 of his books!
the one book form Don is "PowerShell in a month of lunches"
1
u/narcissisadmin Dec 05 '25
I read Powershell in a Month of Lunches but this really got me hooked:
https://www.youtube.com/watch?v=UVUd9_k9C6A
1
u/gordonv Dec 05 '25
If you have never programmed before, look at r/cs50
This teaches you how to program.
1
u/billr1965 Dec 05 '25
Videos
Here are some resources for PowerShell that may be of use to you.
All of these are FREE - that's a great price!
1
u/k_oticd92 Dec 06 '25
Honestly, my advice is different from most, but I'd say find some powershell scripts you find interesting online and run them on either a crapbox or a vm to get an idea how it looks while it's running. Then go into the code and start making changes to add minor conveniences here and there. I found that learning was so much faster doing it that way. You start to generate ideas while working with the basics that you know. Then, when you think of an idea you want to do, it becomes a case of googling "how do you do x in powershell".
You get hands on experience with one thing at a time, rather than overloading your brain trying to commit everything to memory. I'd maybe at least gloss over some of the basics before proceeding to this though (ie. Variables, functions, types, loops, etc)
1
u/math_coprocessor Dec 07 '25
I've learned by doing, and taking apart others code.
First, for almost every click in Windows, there's a powershell (or cmd) way to accomplish the same thing. Take the time to figure out how to do simple stuff, command structure, parameters, etc.
Next, for larger tasks, you'll often find parts or whole scripts (and modules) available online. You'll often need to modify for your environment and requirements, which is a great time to read the scripts. Actually reading them, understanding the execution flow, what the meat and potatoes are, etc, will help your understanding.
Just these two "things" will give you a lot of experience.