Brian Kaiser's Avatar

Brian Kaiser

@bmkaiser.com

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

34
Followers
120
Following
49
Posts
12.11.2024
Joined
Posts Following

Latest posts by Brian Kaiser @bmkaiser.com

Preview
PowerShell is fun :)Jupyter notebooks in VSCode with PowerShell support I saw a video about Jupyter in Visual Studio Code a while back and tried to get it up and running. It seems that things have changed now. It was there in VSCode preview versions and the PowerShell …

With the announcement that Polyglot Notebooks is being retired at the end of March, I sure am thankful for @harmveenstra.bsky.social and his blog post on adding a custom PowerShell kernel for use with the Jupyter notebook extension in VS Code.

aka.ms/pgnb-dep

03.03.2026 20:23 πŸ‘ 7 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0
Preview
Get MFA Status of Office 365 users with Microsoft Graph Get MFA Status of your Office 365 users with PowerShell and Microsoft Graph. Export all details easily to Excel with this free script

MSOnline has been retired since May 2025. Use Microsoft.Graph instead!

Get-MgUser -All | ? {
$uri = '/beta/users/{0}/authentication/signInPreferences' -f $_.Id
-not ((Invoke-GraphRequest GET $uri).userPreferredMethodForSecondaryAuthentication)
}

Thanks to @lazyadmin-nl.bsky.social

27.02.2026 17:18 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Github Copilot icon in Windows 11 Color Style Download Github Copilot vector icon in Windows 11 Color style. Available in png, svg, pdf, html code. Modify, resize, recolor Github Copilot icon, symbol.

I think it's this one: icons8.com/icon/Yl9ip6C...

08.01.2026 16:18 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Where did you get your background image from?

08.01.2026 16:06 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

If someone is using $PSBoundParameters outside of the script (such as within their Profile) to enable -UseBasicParameters by default, that would not appear in the report, correct?

16.12.2025 15:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

🚨 Breaking change in Invoke-WebRequest that could impact your automations.

I wrote a helper script to find where Invoke-WebRequest is and isn't using -UseBasicParsing. It also works for any other cmdlets/parameters combo.

gist.github.com/mdowst/9d00f...

#PowerShell #Automation #Scripting #DevOps

11.12.2025 14:04 πŸ‘ 10 πŸ” 5 πŸ’¬ 2 πŸ“Œ 0
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 πŸ‘ 16 πŸ” 1 πŸ’¬ 4 πŸ“Œ 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)
LEGO Lord of the Rings - Official Mini Movie (feat. Sean Astin) YouTube video by IGN

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
The Legend of Zelda games – Nintendo Switch 2 Editions & ZELDA NOTES – Overview Trailer YouTube video by Nintendo of America

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 πŸ‘ 670 πŸ” 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