r/PowerShell • u/DREAM_UZUMAKI • Sep 06 '26
Question how can i learn powershell as a non coder?
I want to learn more about powershell, how can I use it in my normal day to day uses and out of my curiosity towards tech
103
Upvotes
148
u/Active-Mortgage7244 Sep 06 '26 •
The way you learn powershell as a non coder is to be an ordinary office worker with tasks you hate doing.
At a point, your annoyance with doing the task will overcome your aversion to learn coding and that’s how it starts. What are you currently doing 600 times a day that you wish somebody or something else could do? For me, it was batch renaming files but it really depends on what tasks you’re asked to do.
53
u/Wickedhoopla Sep 06 '26 •
Powershell in a month of lunches is a good start to learn the syntax
14
u/mikeblas Sep 06 '26
Every coder who learned to code was a non-coder before they learned.
Every single one of them.
28
u/LALLANAAAAAA Sep 06 '26
Use powershell instead of Excel any time you have to view or manipulate any CSV or other table data
Use powershell to search for files instead of Explorer
34
u/viper_16 Sep 06 '26
Start with the YouTube videos by Jeffery Snover. He invented Powershell.
10
u/Key-Butterscotch3215 Sep 06 '26
Start with Microsoft learn
7
u/AV1978 Sep 06 '26
The only way you will learn powershell is by doing. Start out with simple tasks and move on from there. If it’s got an api you can talk to it
6
u/Big_Statistician2566 Sep 06 '26
Over a decade ago, I was asked by my boss to create a repeatable, menu driven method for building Active Directory environments on Hyper-V for test environments where Sales and Development teams would run demos and testing.
While I had used the occasional script before, this was my first deep foray into PowerShell. Now I write books about PowerShell. It all starts with a desire to solve a problem.
4
u/Quietech Sep 06 '26
Do something useful for yourself.
4
u/jrg5 Sep 06 '26
Read PowerShell in a month if lunches and then apply what you’ve learned to things you actually care about and have interest in.
3
u/Weirdcloudpost Sep 06 '26
Find a simple problem that Powershell could solve, and focus on developing that solution. Break the process down into simple elements, (copy a file, rename the file, create a folder, etc) and add them one by one. It is easier to learn with a practical project than trying in the abstract.
2
u/rileymcnaughton Sep 06 '26
Go to wherever you buy books from and pickup: Learn PowerShell in a Month of Lunches
2
u/xThomas Sep 06 '26 edited Sep 06 '26
Just a heads up before you try this at work: What you can do with powershell depends on security policies and such. (WDAC, applicker)
2
u/ShaGodi Sep 07 '26
search in youtube PowerShell course l, that's all you need
2
u/StConvolute Sep 06 '26
A good read with great examples is a book called "PowerShell in a month of lunches". 30 1 hour lessons. Super easy to follow. Even if you don't finish it all, you'll probably be better than most.
1
u/AFollowerOfTheWay Sep 06 '26
Homelabbing
1
u/dacarab Sep 06 '26
I think it depends on what your day to day consists of. It may be the case that having a conversation with an LLM about this might be the most effective way of tailoring something specific to your work and interests.
In general, I'd say picking a module or area of PowerShell capability that is useful to you might be a starting point, learning the general language features through exploring that, and then widening your scripting out to include different modules. That will probably get you started with Select, Where, the object orientated nature of output, the pipeline etc.
One of the great features of PowerShell is how discoverable it is. With Get-Command, Get-Help -examples, and Get-Member, you can usually work out what you need with a bit of effort.
Good luck with your journey 😄
1
u/mrmattipants Sep 06 '26
If you're really interested, most books and video courses are going to start with fundamental concepts, universal to most programming languages, including PowerShell.
The best option depends entirely on how you best absorb information. For instance, I'm more of a visual learner, so I tend to see better results with tutorials with screenshots and video courses.
1
u/markdmac Sep 06 '26
I recommend the book Learn PowerShell in a month of lunches.
1
u/Imaginary_Rip2833 Sep 06 '26
I would also want people to reflect on this comment it might help the author at the same time help me.
I decently started learning Powershell (Graph) , I brought the book learn PowerShell in a month's launch but as you know people learn differently i am not a good book reader.
So what i did i went on installed graph and started learning Powershell concepts while doing something i am studying and working on as well, like creating users, groups, etc. In the process for the last 2 months I have learnt most or some of the basics like , Variables, Pipeline, Filtering, loops, else/if statement, select-object, where-object etc.
I am finding it helpful as i am scripting something i understand on the GUI.
I hope this could be a better way to learn, what do you spend your time doing on the computer learn to do it in powershell
I would love to really hear something from anyone reagrding this comment
1
u/Tall-Geologist-1452 Sep 06 '26
I am in no way an expert BUT find something you want to do with it and learn how to do it. Then find something else ect..
1
u/EffectiveWindow3347 Sep 06 '26
Just learn it like anything else? The best way is by doing it. Over and over
1
u/adept2051 Sep 06 '26
Honestly the easiest way to start is every task you do at the gui, search and figure out if you can do it in powershell ( you’ll be suprised what you can do)
1
u/Nitricta Sep 06 '26
I could not code for shit, and probably still can't. But PowerShell is so well designed, and SO much information online about what people have already done with it.
1
u/Creative-Type9411 Sep 06 '26
if you're still trying to learn, and you haven't coded anything yet, I would worry more about your goal and then try to figure out how you're going to use Powershell to accomplish that
1
u/BadAsianDriver Sep 06 '26
Come up with a problem you want sopced with power shell. Have AI write the script. Then have AI explain it to you. You can also have multiple AIs script a solution and compare the results.
1
u/Prior-Imagination504 Sep 06 '26
Udemybhas some good courses
1
u/Hefty_Breakfast69 Sep 06 '26
pick something simple you want to do with it, then go do it.
Enable an account, disable an account, add/remove a group to a user. get account info.
pick a command that does not change anything and go run it. get-aduser.
Powershell is well documented on Microsoft learn.
1
u/LaxmanSD Sep 06 '26
Or just ask copilot what you can do with powershell :)
1
u/interweb_persona Sep 06 '26
I'm a non-code and decently proficient with PS. Just gotta think of something fairly simple you'd like to automate and build from there
1
u/GM0N3Y44 Sep 06 '26
In today’s age, I would throw it to Claude……
Don’t get me wrong, it helps to know the basics. You should at least be able to read the script and make sure it’s doing what you intended.
I personally start with Claude, even though I have been scripting with powershell since its inception, and then I hand polish.
1
u/severedgoat_01 Sep 06 '26
Easy, become a coder, learn powershell. Simple really
1
u/imaharleyman Sep 06 '26
I successfully used: Learn WINDOWS POWERSHELL IN A MONTH OF LUNCHES
1
u/g3n3 Sep 06 '26
Think about your virtual day. Research how to do those things in powershell. Then do them daily.
1
u/webtroter Sep 08 '26
My favorite commands to learn PowerShell :
Get-HelpGet-MemberGet-CommandMix and match them together to start :
Get-Help Get-HelpGet-Help Get-Command1
u/Flabbergasted98 Sep 08 '26
Every time you do something (Literally anything) ask yourself,
Can this be done in powershell?
Do I know how to do this in powershell?
If you don't then you have your next project.
1
u/AroTesCra Sep 09 '26
Powershell is my fav scripting language.
But i really started loving it when i was doing IT system work and i scripted out VMware tasks, Onboarding tasks, Backup management.
You really get into cool stuff when you start making some Psxml and creating new views with ascii color codes.
Now that I do more cloud work with azure, I make scripts to do slow roll VM updates on a VMSS or VMSS instance health tied to AGW health into single commands, That produce objects with methods that can control the AGW or VMSS or Instance, then make functions that pipe together so it looks effortless.
Get-Pod -Name *test05 |
Update-PodImage -Gallery Pod -Version 1.2.3 |
Restart-Pod -Method Roll
Or I could
$Pod = Get-Pod -Name *test05
$Pod.UpdateImage(‘Pod’, ‘1.2.3’)
$Pod.RestartSlow()
But yeah the best way to learn anything is have a reason to learn it.
Scrape a web page
Automate email alerting
Get processes and tie them to tcp connections then have that return an object which you can kill off.
(I wrote a whole module of tcp connection and tiring them to processes for a SQL hung Connection in an old app a company had which would eventually take all the ports. So the script would run every hour and delete sql closed connections processes. Yeah a very dumb app, eventually a dev did get around to fixing later)
I forgot what game had a api I think it was siege
But when my friends we play I get the game stats and we covert them into simple grades
Kill was +1 death was a -1 and a assist was a +1/2
Then we average the games tighter that night to see who had the best score. But it was literally just a powershell command
1
u/blizardX Sep 09 '26
Sometimes I want to reorganize my files in certain name for example rename them based on range of dates and power shell allows me to do that. I also vide codes a script that takes a spreadsheet from my credit card company and converts it to a csv I can feed it to my budgeting software.
Basically it universal tool that closes for me the gap for things no other tool can help me with.
1
u/Andrew-Powershell Sep 10 '26
What is your day job? It'll be a lot easier to offer support and suggestions based on that.
1
u/RhapsodicMonkey Sep 11 '26
I found under the wire useful several years ago. And as many others stated, finding things that can be automated and actually automating them.
1
u/vlad_h Sep 11 '26
Get ChatGPT to create learning path for you. Simple.
1
u/whiggs3 Sep 11 '26
It is kind of hard to get started with any language as a non coder. What you really should do is learn a basic understanding of core principles that all languages share: conditional statements/operators, the different kinds of loops, variables, types, objects (in the case of object oriented languages like powershell), comparison operators, etc. this will help you formulate exactly how to want your program to work in your mind. At that point, it is just a matter of learning a particular language's syntax. That would be my advice.
1
u/C-D-W Sep 06 '26
I want to preface this by saying it's extremely dangerous to blindly trust AI code output. Asking AI to write code you intend to execute in a sensitive area without having the ability to audit said code is very foolish.
That said, I've found the AI chatbots (ChatGPT, Gemini, CoPilot) do a pretty good job with powershell. Once you've grasped the basics with any scripting language, sometimes it's hard to get to the next level of combining all those basics into a complex problem solving tool. AI is great for this, and you can ask it to explain what each part does. Which is why I think it's probably better than the old school way of finding code snippits from here, and some from there, trying to mash them together and hoping for the best. How most of us learned.