Powershell: DependsOn Module

One nice feature of a DSC configuration is that all resources support specifying a DependsOn property that ensures that the resources that it depends on are ran first. Every once in a while, I find myself wanting to use that feature in other scripts. I created a module called DependsOn to do that for me.

[Read More]

Powershell: How to create a Standard Library Binary Module

I recenty had an idea for module that I wanted to implement as a binary module. I have yet to create one using the PowerShell Standard Library so this felt like a good opportunity. I was able to use the Creating a cross-platform binary module guide to create this module without any roadblocks. We are going to walk that same process and I’ll add a little extra commentary along the way.

[Read More]

Powershell: ConvertTo-Breakpoint

I was just at the PowerShell and DevOps Summit last week. It was great to meet so many of the people that I have worked with online. I also walked way with several ideas that I wanted to work on.

One idea came to me while sitting in Kirk Munro’s session on debugging. I was writing a lot of notes and reflecting on how I was debugging my scripts. Then I realized I could make a simple function to make it easier.

[Read More]
Tags: PowerShell

Powershell: The PowerShell News Podcast

If you have a few minutes, I would like you to check out The PowerShell News Podcast. The Podcast is hosted by two Microsoft MVPs, Mick Pletcher and Harjit Dhaliwal. They have several episodes posted that cover a good range of PowerShell topics.

I met with Mick in person on his travels back from the MVP Summit and we connected with Harjit remotely for their latest episode, Episode 6 - Interview with Kevin Marquette from the SoCal PowerShell User Group. We talked about the SoCal PowerShell User Group, the great team that I work with at loanDepot, and a bit about my contributions to the PowerShell community.

I look forward to listening to their future episodes and connecting with them again in the future.

[Read More]
Tags: Podcast

Powershell: You need a Get-MyServer function

As your library of scripts and automation grows, everything you do will start to depend on your common datasets. Datasets like your user information or server details. Just think about how many scripts and tools you already have that either get a list of servers or you provide it a list of servers. It may be time for you to create a common interface to your data.

[Read More]
Tags: PowerShell

Powershell: Windows Defender vs PowerShell Modules, Peasecto.A

For a period of time, Windows Defender was flagging several important PowerShell modules as infected with Peasecto.A. This would prevent users from running or installing those modules. Some of the impacted modules included PackageManagement, MSOnline, PSScriptAnalyzer, and VMware.PowerCLI. Even VSCode was feeling the pain. The good news is that the issue is resolved for some modules now.

[Read More]
Tags: PowerShell