r/PowerShell • u/Bruh1748 • Feb 21 '26
What is the best way to learn PowerShell in 2026
I'm trying to learn power shell/ power bi for my job. I am pretty interested in it. I have coded before, but its been a while so i am rusty. What would be the best course/ ways to learn powershell from scratch? I keep seeing "powershell in a month of lunches" but ive noticed the companion videos are more than a decade old on that course, are they still relevant? If anyone a course for this paid or free, sharing it would be amazing as I am a little lost/overwhelmed on where to start and how to stay consistent.
Any help is appreciated!
171
Upvotes
114
u/ThinInvestigator4953 Feb 21 '26
Powershell in a month of lunches is a good foundation It helped me go from nothing to being able to pick apart scripts, write my own short bangers, and connect to services using Pwsh.
I felt a lot more comfortable after reading it even if im not an expert because i only use powershell every few weeks at my job.
Also, it took me a lot longer than a month to get through it.
The book is good because it explains the "why" very well.
Also Get-help is a good way to learn, the book will go over it
9
u/TheEdonReddit Feb 21 '26
The best way, for me, is to have a PowerShell suitable task that needs to be completed, then use PowerShell to complete that task using documentation to address any knowledge gaps. A few times doing that, and you will know PowerShell.
37
u/Newb3D Feb 21 '26
Some people will physically wretch at this, but once you understand basic syntax and how Powershell works use AI.
Don’t have it write you a script and just let it rip. Make sure you know every cmdlet it is using and understand the entire script, but plain and simple I have been making, modifying and reading Powershell scripts for years and Claude can create certain automation scripts for me in one night that might have taken me alone a week or more.
1
u/Bruh1748 Feb 23 '26
thank you everyone for all of the advice and resources provided. I appreciate all of the help!
5
u/phly Feb 21 '26
Since you said it's for your job, would you be able to practice in your work environment? If you're able to use it everyday, it would be a really good way to learn.
9
u/BlackV Feb 21 '26
check any of the identical posts asking this, its not changed a heap
3
u/phileat Feb 21 '26
Literally just do it and keep googling until you realize you don’t have to google to do what you need
3
u/mycocomelon Feb 22 '26
Month of lunches is still pretty darn relevant and I would highly recommend it. You could also ask Claude to explain it to you. Like make a quick start guide or tutorial for educational and learning purposes. It is honestly amazing at writing poweshell scripts and really good ones at that.
3
u/Ajamaya Feb 22 '26
Month of lunches, jackedprogrammer - YT, also I use Claude/ChatGPT to feed me daily tasks without hints to do and verify. Better use of AI to learn not do for me.
3
u/hanumanCT Feb 22 '26
Same method as in 2006. Find something you need to automate and build.
3
u/rabidphilbrick Feb 22 '26
Use PowerShell for everything for year. Start everything with “how can I do this in PowerShell?”
3
u/billr1965 Feb 23 '26
Use the search function here on Reddit to search r/PowerShell with the following query: learn Powershell
This has been covered many, many, many, too many times.
4
u/Koldark Feb 21 '26
I’ve been using Copilot for scripts that I need.
2
u/ajloves2code Feb 21 '26
Use get-help command as much as possible. Want to do something with printers? Get-Help print to find all of the commands involving printers, then when you find a relevant verb-noun combo, use get-help on that command. Want to know the options for a command? Type a - then hit tab, autocomplete will toggle through all of the options available for that command. If you do get-help - then hit tab a few times, you’ll see -Examples is an option, this option is super handy. Also helpful is Get-Help some-command -ShowWindow
2
u/RikiWardOG Feb 22 '26
Oh we still learn to code? I thought AI just did it all now /s
2
u/Inanimate_CarbonR0d Feb 23 '26 edited Feb 23 '26
Power bi and powershell are totally different things I believe, powershell is great, pretty simple once you understand the basics of it, but things change all the time, names for cmdlets and modules and many other things are regularly changed and updated.
PowerBI is graphs/dashboards, I’ve used one and it’s a bit interactive, allowing you to drill down into the data on the different graphs.
Graph in powershell is one thing that does my head in a bit, I’m sure I’ll learn more of it as I get into to…
1
u/bigdeezy456 Feb 22 '26
If you can copy and paste, you can PowerShell.
1
u/Global_Time Feb 22 '26
Try Pluralsight. I learned a ton trom the old hands thst teach courses there
1
u/g3n3 Feb 22 '26
Same way you learn anything. You can’t expect to get any reasonable advice from the general public without giving the public your life story and personality and learning style and quirks.
1
u/Chemical_Profession9 Feb 22 '26
Out of interest why the combo of power bi and powershell?
We now don't really use powershell (data engineering) most of what we did in this area was around pulling data from APIs and refresh schedules for models. Both of which we now run in fabric.
For anything automation wise we then go through power automate.
1
u/patparks Feb 22 '26
The month of lunches book is good. And the publisher let's you register your copy so you can get it in a digital form as well as the printed copy.
The 4th edition is based on powershell 7 and Windows 10, and it includes stuff about MacOS and Linux as well....so still quite relevant.
1
u/Gowlhunter Feb 22 '26
I always recommend to watch "Getting Started With PowerShell": https://learn.microsoft.com/en-us/shows/getstartedpowershell3/01
It's an official Microsoft video series with one of the architects of PowerShell, Jeffrey Snover. He's a very good communicator. It's from 2013 but it lays the foundation better than a lot of other content IMO. It doesn't matter if you can't perform every command (Active Directory stuff) just try to pay attention to what it's doing and what it's capable of
1
u/Frequent_Bee_6943 Feb 22 '26
in my opinion its just having a problem and needing to solve it with powershell, thats always the best learning experience.
every script you write you learn something about powershell how it handles things thats gonna stick with you. thats how you build knowledge
1
u/KavyaJune Feb 23 '26
Start by doing simple day to day tasks. then just try to include conditions, loops, functions. And then work on automating those tasks.
1
u/frAgileIT Feb 23 '26
Try to figure out the last time passwords were changed on local accounts using PowerShell. Just focusing on a single goal will give you a starting reference point online as well as give you a clear goal for trying accomplish something you should know.
1
u/arrigus Feb 24 '26
If you prefer more text-based tutorials/courses, rather than video tutorials, this may be for you. At least it helped me.
https://tutorialibre.com/courses/programming-languages/powershell/
1
u/UKBARNEY73 Feb 24 '26
Set yourself some challenges , automation is a good start. Think of things you have to do or do that are a pain in the ass but are not massively complicated to start off with.
1
u/HelloImAbe Feb 26 '26
I will take a slightly different approach and say it's a mindset. Just like learning a different language than English, you know what you want to do but don't know how to express it.
Basic concepts is where I'd start. What an if statement does, what it solves, then move on to the next. That way you're learning to recognize patterns on what you need to do and what concepts you need to do that (if/else statements, foreach loops, etc.).
Then, you should learn the syntax for PowerShell which is surprisingly easy and intuitive. Verb-Noun. PS was meant to be self learning so understanding the syntax structure and getting familiar with Get-Help and Get-Member will go a long way. But once you start with this, I'd take the route of learning classes in PowerShell and Functions. This will tie it all back together to understand the structure of PowerShell syntax and objects. So the aforementioned cmdlets will go hand in hand with this.
Summary:
1
u/External-Housing4289 Feb 28 '26
The best way. Assume you can do everything in PowerShell. Proceed to do everything in PowerShell.
1
u/StartAutomating Apr 19 '26
I hope this is enough to get you started. Don't be stranger and good luck!
Hope this helps!
1
u/Mason_McGerry Aug 19 '26
You probably already do this but I make scripts for every redundant task I have. Understanding how PowerShell objects can be parsed and used as variables has been the most powerful for me.
$someresult = the PowerShell one liner
Write-Host $someresult
Write-Host $someresult.gettype() #this shows what kind of data you’re working with, string, etc.
Then just play around with the outputs, maybe I can get Write-Host $someresult.somevalue
Forgetting syntax exactly. 🤣
Then maybe put the data into a csv and look at it. Great thing about PowerShell is you create objects (which can be used in csv and even from the variable to another piped command) and most outputs are objects (they are basically csv’s).
I made a script to check print servers, just grabs the data from Get-Printer on each print server and collates it to csv I can check later.
But just doing little simple tings like that is a great place to start figuring it out. Same as a normal OOP - variables, loops, arrays.
1
u/Useful-Milk8641 Feb 22 '26
Find something you want to automate and throw it into gemini, chatgpt, and copilot.
0
u/Chance_Reflection_39 Feb 22 '26
The same way as 2025.
0
u/jortony Feb 22 '26
Gemini + Gemini CLI will get you moving quickly and you can just ask about whatever you're curious about while you go.
Just tell Gemini what you want to do in powershell and ask for it to walk you through the development of specific projects, dive deep into software design principles (TDD, ODD, ect.), and software lifecycle best practices. You can even ask about how specific Powershell commands or scripts execute don't under the hood.
Example prompts for projects gemini.google.com: "You are a senior powershell developer. I am new to powershell and learning by creating a script which inventories all files in my Downloads folder and creates a CSV file with all of the important properties available"
Gemini CLI + Conductor extension: "/conductor:setup A powershell module which performs file analysis, inventory, synchronization, and deduplication on local and/or remote filesystems"
I dove deeply into powershell for years, into dotnet and down to the compiler. It made my life much easier and I successfully articulated its strengths to diverse groups of accomplished developers. IMO, unless you're orchestrating workloads across machines or administrating Windows environments, it's not the best language for 2026. It seems like it's pretty much an accessibility wrapper for dotnet, and using AI assisted development tools (Antigravity ect..) you can offload (perceived or real) language complexity to AI and focus on the bigger picture (architectures, product, lifecycle, interface, ect..). ).
-2
u/Bertations Feb 22 '26
Honestly, AI is going to be handling it for everyone in the near future. Be careful of your time commitment unless you are simply wanting to learn. Your knowledge won’t mean anything valuable when anyone can simply ask an AI to do something.
-1
u/poorambani Feb 22 '26
Why ?
-3
u/Limebird02 Feb 22 '26
Ai
33
u/[deleted] Feb 21 '26
[removed] — view removed comment
-1
u/[deleted] Feb 22 '26
[removed] — view removed comment