Brian Kaiser's Avatar

Brian Kaiser

@bmkaiser.com.bsky.social

#PowerShell professional living in New England Website: https://bmkaiser.com GitHub: https://github.com/bmkaiser LinkedIn: https://linkedin.com/in/bmkaiser

33 Followers  |  118 Following  |  44 Posts  |  Joined: 12.11.2024  |  2.332

Latest posts by bmkaiser.com on Bluesky

GitHub - jimbrig/PSStucco: An opinionated Plaster template for high-quality PowerShell modules An opinionated Plaster template for high-quality PowerShell modules - jimbrig/PSStucco

Thank you! I'll take a look along with creating my own Plaster template.

github.com/jimbrig/PSSt...

10.06.2025 13:56 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Using Stucco to Create Your PowerShell Module Learn why Stucco is such a powerfull module template. Includes a walk through from creating a module to publishing to the PowerShell Gallery!

I see that you have also used Stucco in the past. Do you still like that tool? Are there things you don't like about it?

gilbertsanchez.com/posts/stucco...

10.06.2025 13:25 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Also, is everything just built on top of Plaster?

09.06.2025 20:54 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

What are you using for #PowerShell module scaffolding? Seems that most tools that I have found are in need of some TLC. What am I missing?

09.06.2025 20:40 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
Preview
ClearSky ClearSky - See farther

If you're looking for some truly amazing humans from the #PowerShell community to follow, @dougfinke.bsky.social has been doing work curating a handy list: clearsky.app/dougfinke.bs...

13.04.2025 22:20 β€” πŸ‘ 17    πŸ” 2    πŸ’¬ 3    πŸ“Œ 2
Losing my mind please help!

In case you're curious, this was the post in question:

11.04.2025 14:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A screenshot of a Reddit post comment by /u/jsnover that says:

This seems to be telling you that $PSCMdlet is null. That would happen if you are using a function vs an Advanced Function

Try adding a [CmdletBinding()] directive.

Jeffrey Snover [MSFT]

A screenshot of a Reddit post comment by /u/jsnover that says: This seems to be telling you that $PSCMdlet is null. That would happen if you are using a function vs an Advanced Function Try adding a [CmdletBinding()] directive. Jeffrey Snover [MSFT]

The internet is really great sometimes πŸ’– Thanks to @jsnover.com on Reddit 10 years ago, I was able to solve a #PowerShell problem while following @kevmar.bsky.social amazing article on handling errors that now lives on #MicrosoftLearn 🀯

learn.microsoft.com/en-us/powers...

11.04.2025 14:56 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
LEGO 40761 The Lord of the Rings: SmΓ©agol & DΓ©agol review The Lord of the Rings: Return of the King opens with a scene showing Gollum's origin as a Stoor Hobbit named SmΓ©agol, residing in the Gladden Fields with his cousin, DΓ©agol. DΓ©agol famously discovers ...

We’ve taken a look at #LEGO 40761 The Lord of the Rings: SmΓ©agol & DΓ©agol which is currently a free gift with purchases of 10354: The Shire! brickset.com/article/1202...

02.04.2025 14:31 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
LEGO Lord of the Rings - Official Mini Movie (feat. Sean Astin)
YouTube video by IGN LEGO Lord of the Rings - Official Mini Movie (feat. Sean Astin)

Along with all of today’s #Switch2 excitement, it’s also the first day to order this amazing #Hobbit set from #LEGO for Insiders!

Orders before Apr. 8 also get the #LotR SmΓ©agol & DΓ©agol mini set discovering The One Ring

02.04.2025 22:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
The Legend of Zelda games – Nintendo Switch 2 Editions & ZELDA NOTES – Overview Trailer
YouTube video by Nintendo of America The Legend of Zelda games – Nintendo Switch 2 Editions & ZELDA NOTES – Overview Trailer

New features coming to #BotW and #TotK on #Nintendo #Switch2! Includes #Zelda Notes to help find a shrines and Korok seeds and Autobuild blueprints sharing!!

02.04.2025 22:08 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

amiibo figures of Tulin, Yunobo, Riju and Sidon from The Legend of #Zelda: #TearsOfTheKingdom are releasing on June 5! Each one can unlock a fabric for Link’s paraglider, as well as weapons and materials for your adventure.

02.04.2025 18:16 β€” πŸ‘ 673    πŸ” 120    πŸ’¬ 10    πŸ“Œ 42
Preview
Nintendo Switch 2: How To Buy The countdown for the Nintendo Switch 2 has begun! Learn how to purchase from the My Nintendo Store, explore gaming system options, and secure your reservation today.

Pre-order registration is available for #Nintendo #Switch2 for those β€œ[…]who have purchased a Nintendo Switch Online membership with a minimum of 12 months of paid membership and a minimum of 50 total gameplay hours, as of April 2, 2025”

02.04.2025 21:57 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I love newer versions of #PowerShell, but I still regularly have to support #Windows PowerShell because that's the default shell for systems like #SCCM and #Intune.

How can I take advantage of the new PowerShell other than executing scripts with pwsh.exe and the -File or -Command parameters?

31.03.2025 14:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I regularly use .cmd files as a simpler execution mechanism for PowerShell scripts. They simply call powershell.exe with the -File parameter (plus any other params). Many people know how to double-click a file, but don’t know how to execute a PowerShell script with & or .

19.03.2025 12:43 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Integrating .NET with PowerShell: Best Practices for Enhanced Scripting Learn how to effectively integrate .NET classes and methods within PowerShell scripts. Discover best practices to enhance functionality, maintainability, and performance.

A really useful article (and quick read) on how to get started with .NET within your #PowerShell scripts including how to decipher the defintions. Thank you @alexandair.bsky.social and @tobiaspsp.bsky.social!!

14.03.2025 14:07 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Using hashtables for lookups is so useful and quick! I've made one before matching human-readable names with object IDs in Microsoft Graph

21.02.2025 16:22 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

That was my guess too, but it doesn’t appear so

18.02.2025 23:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Does anyone know how to get the access token that's in use with the Microsoft.Graph #PowerShell module?

18.02.2025 14:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Agreed. β€œMay not be set” reads as β€œcannot be set”

11.02.2025 19:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

You're not alone! I've just come across this incorrect error message as well with 3.7.1 πŸ™ƒ

10.02.2025 21:03 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Issues with Connect-ExchangeOnline when Using $PSDefaultParameterValues Issues with Connect-ExchangeOnline when Using $PSDefaultParameterValues - PSDefaultParamsWithConnectEXO.ps1

Why do I have issues using the #Exchange Online #PowerShell module (v3.7.1) when I use a wildcard for the cmdlet within $PSDefaultParameterValues? I'm able to connect, but my permission scopes are wrong and I can only see my own mailbox.

07.02.2025 15:14 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

What makes it unreliable? What is auto-splat?

06.02.2025 20:18 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Nice to see both WAM supported and native Git blame!

06.02.2025 19:52 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
a group of people sitting in a theater with the words so hot right now written on the bottom Alt: A group of people from the film Zoolander sitting in a theater with the words β€œso hot right now” written on the bottom

How things are feeling these days with #PowerShell and #MicrosoftGraph

06.02.2025 00:35 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Love the podcast!! I can see how that would get priority (especially if you’re the one managing it all). I joined the PDQ Discord, so maybe I’ll be able to join next time

05.02.2025 22:31 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I didn't realize that you can do that in PowerShell 7! I prefer this method (reminds me of KQL) and looks cleaner.

Just to confirm, in PowerShell 7+:

Get-Date
| Select-Object date
| Out-String

All versions:

Get-Date |
Select-Object date |
Out-String

05.02.2025 22:29 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Same! This seems like a great one! Any chance these can be recorded and posted for others?

05.02.2025 21:35 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@funbucket.dev is it possible to use PSHelp.Copilot for large modules like Az or Microsoft Graph without having to specify each of their dependent modules? I’d like to be able to ask questions that might span more than one of the smaller modules

05.02.2025 21:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

"If you type help, PowerShell first looks for an alias named help, then a function named Help, and finally a cmdlet named Help. It runs the first help item that it finds.

If your session contains a cmdlet and a function, both named Get-Map, when you type Get-Map, PowerShell runs the function."

05.02.2025 16:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Bye Bye Backtick: Natural Line Continuations in PowerShell Intro PowerShell is a language which lends itself to lengthy lines of code. Recommended Best Practice (RBP) is that functions and cmdlets al...

It's not a new resource, but in the battle against using backticks for line breaks in #PowerShell, I find this guide on natural line continuation characters by @markekraus.com to be the de facto source

05.02.2025 15:30 β€” πŸ‘ 6    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0

@bmkaiser.com is following 20 prominent accounts