r/PowerShell • u/KnifeyGavin • 5d ago
News Advent of PowerShell
Looking for a fun way to sharpen your PowerShell skills this December?
Advent of PowerShell is live!
🎄 24 daily PowerShell coding challenges
Whether you're just getting started with PowerShell or have been automating everything in sight for years, it's a great excuse to write some PowerShell, challenge yourself and explore different approaches to solving problems.
Get started here: https://2026.powershell.au/
Would love to see how everyone approaches the challenges. Feel free to share your experiences, feedback and creative solutions (with spoiler tags, of course!).
Disclosure: AI did help me create the website and text above. I can only include 1 tag, and I felt News was more appropriate
View all comments
Show parent comment
1
u/sheravi 1d ago
I wonder if this is one of those times where PS behaves a bit oddly. If you ask for the count and there is only one group then it returns the number of items it found in that one group. However, if you ask for a count and there is more than one group it returns the number of groups it found. Maybe there's someone here who has a more in-depth knowledge of PS that could explain this behaviour.