r/PowerShell • • May 18 '26

Question What is the best resource in 2026 to learn PowerShell scripting?

61 Upvotes

I want to learn advanced powershell scripting but I have French still see very old resources. What sources would you recommend?

r/PowerShell • • Apr 12 '26

Solved Is it worth learning PowerShell?

155 Upvotes

I’ve previously used Linux, where things felt very straightforward. Due to various reasons, I’m planning to stay on Windows for now. Since I’m here, I’d like to automate different tasks and deepen my understanding of Windows.

Because of my Linux background, I used the terminal a lot and really enjoyed it. Windows, on the other hand, feels much more GUI-oriented, with less emphasis on the command line. I’ve also briefly looked into PowerShell, and honestly, it feels a bit strange to me.

At this point, I’m not sure whether it’s worth investing time into learning it. The command structure, constant interaction with system services (and sometimes the internet), and the overall behavior of the terminal feel unusual.

Compared to Linux, it seems quite weird (to put it mildly). I assume that if I spend more time with it, I’ll understand its design and decisions better—but I’m still unsure.

So I wanted to ask: is it actually worth it?

EDITED:

I’m definitely going to start learning PowerShell. As I understand it, over the next few years, it will definitely pay for itself.

There were also comments about Azure, servers, and cloud services. I don’t plan on becoming a sysadmin and, for now, I only use my personal computer and maybe a laptop. The Microsoft ecosystem seems strange, but I’m getting more and more used to it, despite my dislike of big corporations (which is ironic).

Also, thank you for the quick feedback. That was incredibly kind of you. I’m just starting to get involved in the Windows community, and specifically in PowerShell, so this warmth really surprised and delighted me. Maybe I spend too much time in the toxic parts of the internet.

r/PowerShell • • Sep 22 '25

Complete beginner with powershell, best way to learn in 2025?

43 Upvotes

I am a complete beginner, could you suggest a good resource for beginner?

r/PowerShell • • Oct 03 '22

Question Best way to learn PowerShell for a complete beginner?

302 Upvotes

Hey all, I’m super new to PowerShell and I don’t know anything. What are the best resources for learning PowerShell (ideally very engaging)?

Thanks!

r/PowerShell • • Sep 06 '26

Question how can i learn powershell as a non coder?

103 Upvotes

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

r/PowerShell • • Oct 22 '26

Information Struggling to learn Microsoft Graph PowerShell for IAM-how did you guys learn it

66 Upvotes

Hi everyone,

I’m currently learning PowerShell with Microsoft Graph because my goal is to become a Junior IAM / Microsoft Entra ID Administrator.
I’ve been practising in my own Microsoft Entra ID lab, and so far I’ve managed to learn some basics, such as:
1)Connecting to Microsoft Graph using PowerShell
2)Creating, updating and deleting users
3)Creating and managing security groups
4)Adding and removing users from groups
5)Retrieving and filtering users
6)Working with variables, arrays, hashtables and loops

However, I’m starting to struggle and slowly losing interest, not because I don’t want to learn, but because sometimes I feel like I’m just memorising commands without fully understanding how to use them in real-world situations.
I can follow tutorials and complete exercises, but when I try to do something on my own, I sometimes get stuck and don’t know which commands to use or where to start.
My goal isn’t just to memorise PowerShell commands. I want to understand how an IAM administrator actually uses Microsoft Graph PowerShell in their daily job.

For those of you who learned PowerShell, especially for Microsoft Entra ID or IAM:
How did you learn PowerShell and become confident using it?
Did you learn the general PowerShell fundamentals first, or did you learn while working with Microsoft Graph?
What practical projects or exercises helped you the most?
How do you remember commands and know which ones to use when solving a problem?
What would you recommend to someone preparing for their first Junior IAM Administrator role?
I’m willing to put in the time and effort. I just feel like I need a better learning approach that will help me understand what I’m doing instead of simply following instructions.
Any advice, learning resources or personal experiences would be greatly appreciated.
Thanks in advance!

r/PowerShell • • Aug 03 '24

Information Free (and Legal) PDF Download of Learn PowerShell Scripting in a Month of Lunches, Second Edition

198 Upvotes

(I hope this is ok to post here - If not just let me know and I can delete)

I was just browsing the Free eBooks section on Manning and was surprised to see Learn PowerShell Scripting in a Month of Lunches, Second Edition is there when it's a $40+ book.

The free books are sponsored by Manning's partners so when you click the link it takes you to the sponsor's website where you just have to enter an email (probably best to use a throwaway) and a first name but that's it... I now have a 343 page PDF which looks to be the whole thing.

The only other catch I can see is they've added 2 pages just after the cover page advertising the sponsor but I can live with that.

If you're not familiar with the book, one of the most popular PowerShell books for beginners is Learn PowerShell in a Month of Lunches. This is the sequel which focuses on getting to the next level in PowerShell where you learn to write good, reusable chunks of code. I've read the first version and would strongly recommend it.

r/PowerShell • • Feb 21 '26

What is the best way to learn PowerShell in 2026

171 Upvotes

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!

r/PowerShell • • Sep 21 '26

Question Have I made a mistake by learning PowerShell through Microsoft Graph first?

24 Upvotes

Hello everyone,

About 3 months ago, I started learning PowerShell, specifically with the Microsoft Graph PowerShell module.

I decided to learn it because I thought it would be relatively easy to pick up. My thinking was that I already know how to do many Microsoft 365 tasks through the GUI — creating users, creating groups, assigning licenses, managing devices, etc. — so I thought learning how to do the same things with PowerShell would be straightforward.

Three months later... 😂

I've learned quite a lot. I understand a bit of variables, arrays, hashtables, loops, functions, pipelines, filtering, objects/properties, foreach, if/elseif, try/catch, error handling, and I'm now starting to use Graph for real Microsoft 365 administration tasks.

I've actually really enjoyed some of the things I've been able to do so far, especially creating users and groups, updating users, filtering users, and building small scripts to audit my Microsoft 365 environment.

But honestly, I'm starting to feel really strained by it.

There are so many things to understand, and sometimes I look at a script and think, "How am I ever going to actually master this language?"

I understand the concepts when I'm learning them individually, but when I have to put everything together into a real script, my brain starts struggling. 😂

So I'm wondering:

Did I make a mistake by starting with Microsoft Graph PowerShell?

Would it have been better to learn "pure" PowerShell first and then move into Graph?

Or is this simply what learning PowerShell feels like for everyone at this stage?

I'd really appreciate hearing from people who have gone through this — especially anyone who started PowerShell for Microsoft 365/Entra/Intune administration.

I'm not looking to become a PowerShell developer. I mainly want to become competent enough to automate and administer Microsoft 365 properly.

Did you feel overwhelmed when you were learning, and what helped you get through that stage?

r/PowerShell • • Feb 04 '26

I built a Reinforcement Learning framework in PowerShell 5.1 (neural networks, Q-learning, multi-agent simulation)

13 Upvotes

UPDATE: VBAF is now on PowerShell Gallery!

Install-Module VBAF

Much easier than cloning the repo. Enjoy!

r/PowerShell • • Jan 28 '26

I built a Reinforcement Learning framework in PowerShell 5.1 (neural networks, Q-learning, multi-agent simulation)

20 Upvotes

UPDATE: VBAF is now on PowerShell Gallery!
Install-Module VBAF
Much easier than cloning the repo. Enjoy!

Hey r/PowerShell!

I've been working on something unusual: **VBAF (Visual Business Automation Framework)** - a complete reinforcement learning framework built entirely in PowerShell 5.1.

**What it includes:**

- Neural networks from scratch (backpropagation, multiple activation functions)

- Q-Learning agents (experience replay, epsilon-greedy exploration)

- Multi-agent market simulation (4 companies competing with emergent behaviors)

- 3 real-time WinForms dashboards showing learning in action

- ~21,000 lines of code, 45 modules

**Why PowerShell?**

I wanted to make RL/ML concepts accessible to IT professionals who already know PowerShell but find Python ML frameworks overwhelming. VBAF prioritizes educational transparency over performance - you can see every algorithm step.

**Example - Solving XOR in 5 lines:**

```powershell

$nn = New-VBAFNeuralNetwork -Architecture @(2,3,1) -LearningRate 0.1

$xorData = @(@{Input=@(0,0); Expected=0}, @{Input=@(0,1); Expected=1}, ...)

$nn.Train($xorData, 1000)

$nn.Predict(@(1,0)) # Returns ~0.97

```

**GitHub:** https://github.com/JupyterPS/VBAF

I know this is unconventional - using PowerShell for ML. But I think there's value in making these concepts accessible in a language IT pros already use for automation.

**Questions I'd love feedback on:**

- Is this useful for learning RL concepts?

- Would you use this for business automation scenarios?

- What examples/tutorials would make it more accessible?

Built with PS 5.1, no dependencies, works out of the box on any Windows machine.

Thoughts? 🤔

r/PowerShell • • Jul 15 '26

Question Learn PowerShell Scripting in a Month of Lunches or AZ-104?

38 Upvotes

I am relatively new to IT and currently working a Tier 1.5ish role. My background is before landing my first IT role, I went ahead and got a bunch of certs (CompTIA Trifecta, CCNA, AWS SAA) in the past year and a half. I also know basic Bash, Python, and decent familiarity with Linux.

I recently started learning about Microsoft infrastructure and got the AZ-900 and MD-102 in the past 3 months once I started my new role. My goal was to learn some PowerShell before diving into AZ-104. I am currently reading Learn PowerShell in a Month of Lunches and am loving it so far. I’m debating if after finishing this book, if I should carry the momentum of PowerShell and read PowerShell Scripting in a Month of Lunches, or if it’s better to go for the AZ-104, and then come back to scripting. I’m seeking any advice that can help me decide.

Note:
I’m referring to two different books here.

  1. Learn PowerShell in a Month of Lunches

(which I am going to finish as I’m already halfway through)

  1. Learn PowerShell Scripting in a Month of Lunches (which is the next level up)

r/PowerShell • • May 17 '26

Question Best Practical Way to Learn PowerShell for Cloud/M365 Administration

13 Upvotes

Hello everyone,

I recently acquired a few cloud certifications and I’m currently building my career in cloud and Microsoft technologies. At this stage, I’ve realized that PowerShell is a very important skill for the direction I want to take.

I’ve been trying to find videos and learning resources that can help me study PowerShell effectively, but so far I haven’t really found an approach that fully clicks for me.

What has helped me a bit is using AI to ask questions and then implementing the code and examples I get back. That approach has actually helped me grasp a few concepts better through practice.

My question is: what would you recommend for a beginner like me to learn PowerShell effectively without getting overwhelmed or burned out?

I’m not afraid to get my hands dirty and practice — I just want to learn in a way that is practical, structured, and sustainable long term.

For context, I currently work with Microsoft 365, Entra ID, SharePoint, and Azure administration.

Any advice, roadmaps, practice methods, labs, or learning resources would be greatly appreciated.

Thank you.

r/PowerShell • • Dec 14 '22

Daily Post ChatGPT has got me learning PowerShell, who would have thought?

116 Upvotes

I am a novice in IT. I am a Support Analyst with my eye on becoming an Infrastructure Engineer and Administrator one day. I have never been able to code (even though I have always wanted to learn) and I kept finding the process too time consuming and demotivation. After learning about the ChatGPT tool I had to get myself back into a mindset of wanting to learn and being in an IT Support Analyst role - working with network administration tools (predominantly Microsoft) and customer support - I chose PowerShell to try first.

My experience so far:
I'm truly impressed on how ChatGPT (in tandem with a Udemy course) is enabling me to try new ways of approaching problems instead of just copy/pasting scripts I found online and not understanding how they work. I've went from learning a hello world script to creating short scripts that help me with my day job and I'm not only using the tool to produce scripts that work in my work environment - I am also *really* learning how PowerShell integrates with classes, the .NET framework, and its extended uses in Active Directory on prem, Azure, Intune, Exchange.

I'm aware of the dangers. This tool has the ability to make lazy coders (the bad kind of lazy), who believe the code an AI has churned out is reliable and correct without testing it and taking the time to learn what they're working with.

I'm learning lots and I'm really excited. I would like to hear how everyone else has been using it (outside of PowerShell too) and how I can use this tool responsibly while learning.

I think this tool is a step in the right direction, and with some training and experience, people can use it to its full potential.

r/PowerShell • • Jan 07 '26

how to learn PShell fundamentals with AI's assistance?

0 Upvotes

Hi all,

Total noob. I recently got to do more work with Powershell, specifically packaging an Intune app for our company. Pretty much the script was written by AI and it worked! But that opened my eye as to how useful Powershell is.

My question is seeing how well AI is improving, what do you think is a good approach in terms of learning Pshell alongside leveraging AI in the future? I cant help shaking the feeling that "heck, if it does my work, who cares?" but that means if theres a weakness in the script, I wouldnt know. But at the same time, the thought of studying from scratch is not tempting when you have a superbrain that can write the script for you.

r/PowerShell • • May 05 '25

Learn powershell to be admin on it !

3 Upvotes

Hi i'm Gregory i have 25 years old and, i want to know how can i learn powershell correctly without project on it in enterprise. I have start to read the documentation "how to use powershell" i have read the first 400 pages but the documentation continue until 3601 pages. And is a lot for me. I have already do some course on Microsoft learn but i don't get it clearly. Thank you for your help.

r/PowerShell • • Jan 17 '26

I Built a D&D Character Generator and Learned PowerShell Can Be FAST

95 Upvotes

TL;DR

Through profiling and optimization, I took a PowerShell module from ~89ms cold start to 9 microseconds per character generation (warm). Replacing Get-Random with [System.Random]::Next() alone saved nearly 50ms.

The Project

I wanted to learn PowerShell classes, so I built a D&D 2024 character generator with full class inheritance (Humanoid → Species, DnDClass → Fighter/Wizard, etc.). It generates random characters with stats, backgrounds, skills, and special abilities.

Repository: https://github.com/archibaldburnsteel/PS-DnD2024-ToonFactory

Tools Used

The Profiler module from PSGallery was invaluable:

powershell

Install-Module Profiler
$result = Trace-Script { New-DnDCharacter } -Simple
$result.Top50SelfDuration  
# See what's actually slow

My Process

  1. Profile to find the biggest bottleneck

  2. Refactor (usually replacing cmdlets with .NET)

  3. Profile again to measure impact

  4. Repeat

I probably spent a full day just optimizing, which wasn't necessary for a character generator, but I learned a ton about PowerShell performance.

Key Takeaways

  • Cmdlets are convenient but costly - Great for interactive use, expensive in loops

  • Profile before optimizing - I would've never guessed Get-Random was the bottleneck

  • .NET APIs are your friend - Direct method calls are orders of magnitude faster

  • PowerShell can be fast - With optimization, microsecond-scale performance is possible

Questions

  • Are there other common cmdlets I should watch out for in performance-critical code?

  • Did I miss any obvious optimizations? (Feedback welcome!)

  • Has anyone else done similar profiling work? I'd love to see other examples.

Thanks for reading! This was my first real dive into PowerShell performance optimization and I wanted to share what I learned.

r/PowerShell • • Nov 24 '25

Question What does it mean to 'learn/know' PowerShell?

23 Upvotes

Does it mean you can write a script from scratch to do what you need?

I used PS for the first time ever at my job. I was asked to export some names from the Exchange server and I figured there has to be a quicker way than manually going through.

So I just googled a script/command and pasted it into PS and it worked.

But I have no idea what's going on in the terminal.

If I 'know' powershell would that mean I could have written the script myself?

r/PowerShell • • May 28 '26

Question Learning PowerShell

26 Upvotes

Hello!

I recently started a job in Identity and Access Management, where we use many tools, including Exchange, Active Directory, the Entra Suite, and more. Does anyone have suggestions for the best sources/guides to learn PowerShell, both as a scripting language, but also incorporating those tools with it as well?
Thanks for any help!

r/PowerShell • • Nov 26 '25

Learn powershell for a noob

14 Upvotes

Hello everyone!

I hope I'm posting in the right place, otherwise sorry for this crappy post :(

It's been several months that I've been desperately trying to learn how to do Powershell, whether in scripting or simple basic commands for my work, but I'm completely lost and I don't get much done in the end and I end up asking my colleagues for help....

I would very much like to succeed in learning this computer language and succeed in doing things from A-Z.

Do you have any advice that could help me please?

Thanking you in advance and thank you :)

r/PowerShell • • Mar 31 '26

Transitioning from AI-generated scripts to actually understanding PowerShell? Looking for learning advice!

22 Upvotes

Hi everyone, I work in production support within the banking and reconciliation sector, and lately, I've been leaning heavily on PowerShell to automate a lot of my daily, repetitive tasks. Right now, I'm primarily using AI to write my scripts. It’s been a huge help—I give it my requirements, and it gives me working code. I’ve successfully automated some great workflows, including: Service Monitoring: Interacting with Windows services to check system health and automatically generating status reports. File Management: Complex file moving, sorting, and reporting across directories. Cross-System Execution: Running SQL stored procedures and triggering Python scripts directly through PowerShell. While these scripts run perfectly fine most of the time, they are getting massive (anywhere from 400 to over 1,000 lines). Here is my main issue: When a script inevitably breaks, I struggle to troubleshoot it because I don't truly understand the underlying code. I don't want to just rely on AI anymore; I want to genuinely learn the language so I can fix things myself and write more efficient code. What is the best, most engaging way to learn PowerShell from the ground up for someone who already has a taste of what it can do? How can I transition from an "AI copy-paster" to actually understanding the logic, writing cleaner scripts, and utilizing PowerShell to its full potential? Any resources, tips, or guidance would be greatly appreciated! Thanks in advance.

r/PowerShell • • May 25 '25

Misc Do you think it's a good idea to let fresh new students build a slot machine in PowerShell to learn the basics?

169 Upvotes

Some of my students (not all 😉) are into gambling and trading apps on their phones while in class. I’m thinking about using that interest to grab their attention. Of course, it doesn’t involve real money, it’s just for learning.

By building a simple slot machine, they could learn a lot of programming fundamentals in a fun way, like arrays, if/else statements, loops, variables, file encoding, randomness in cmdlets.

And then let them try to expand the slot machine with new rules for winning.

So if you're completely new to PowerShell or scripting and around 16 or 17 years old, what kind of projects or exercises would actually get you interested you think?

r/PowerShell • • Dec 04 '25

Question I want to learn scripting for powershell

25 Upvotes

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.

r/PowerShell • • Jun 02 '25

Question Most effect way to Learn Powershell from the scratch in 2025? Books? Youtube Vidoes? MS Learn?

61 Upvotes

Hello Powershellers,

I want to start learning powershell as I will like to automate things like account creation, license assignment on my job.

I have read so many people recommend the book, in a month of lunches but I am a bit conflicted on which Edition to buy? 2, 3 or 4? any pointers?

Also whats the most effective way anyone has learn PS to make it stick.

thank you

r/PowerShell • • Mar 29 '23

Where's the best place to learn advanced powershell scripting? We use Jumpcloud at work and it'd be really useful for me to learn advanced powershell scripting. Thanks in advance!

60 Upvotes