Behind the PowerShell Pipeline
Archives
Search...
Log in
Subscribe
Stylish PowerShell Errors
Premium post · August 1, 2023
Before we leave the topic of error handling and PowerShell errors, at least for now, I want to highlight some PowerShell 7 features on the subject. For the...
Structured Error Handling
Premium post · July 25, 2023
Over the last few articles, I've been teaching you about PowerShell's error system and how to handle errors properly. The worst thing you can do is pretend...
Catch Them All PowerShell
Premium post · July 20, 2023
Welcome back. Last time we started looking at how to use Try/Catch in your PowerShell scripts to handle errors better. And you want to handle them. As a best...
Try This PowerShell
Premium post · July 18, 2023
In the previous article, we began looking into PowerShell's error system. As you learned, there is the exception object and the error message. You can...
To Err is Human, To Understand is the PowerShell Pro
Premium post · July 13, 2023
I don’t think I’ve discussed how PowerShell handles errors in any detail, and you can’t be an effective toolmaker or PowerShell user unless you understand...
Building with Parameter Sets
Premium post · July 11, 2023
Let’s continue building a PowerShell function and explore a topic that might be new to you, parameter sets. We use parameter sets all the time in PowerShell....
Can You Help a Function Out?
Premium post · July 6, 2023
I spend a lot of time writing about code, language, and syntax. But there is more to a professional-grade PowerShell script or function than pipelined...
Writing Multi-Value Functions
Premium post · July 3, 2023
I’ve devoted the last few articles to writing advanced functions. By now, you should know to ask yourself, “Who will be using my function and how?” Let’s...
PowerShell Functions 301
Premium post · June 27, 2023
We’ve been looking at PowerShell functions, beginning with a simple basic function. function Get-Uptime { $os = Get-CimInstance -ClassName...
PowerShell Functions 201
Premium post · June 22, 2023
Last time we started looking at creating a basic PowerShell function. The function is a command written in PowerShell’s scripting language that accomplishes...
PowerShell Functions 101
Premium post · June 20, 2023
One of the content suggestions I received recently asked for content on writing PowerShell functions. Specifically, the reader wanted to see how to write a...
Understanding .NET Enumerations
Premium post · June 15, 2023
I want to continue my introduction to the .NET Framework by discussing enumerations. This is a programming structure that is often used in PowerShell. Most...
.NET for IT Pros
Premium post · June 13, 2023
Not that long ago, I asked for feedback on this newsletter. One of the things I was looking for was content suggestions. I can’t promise I’ll cover...
Creating a PowerShell Weather Command Part 8
Premium post · June 8, 2023
I truly hope you’ve been learning something about developing a PowerShell tool and writing Pester tests. You can easily knock out a quick and dirty script or...
Creating a PowerShell Weather Command Part 7
Premium post · June 6, 2023
After a brief break, let’s return to the weather tool and Pester tests. When we ended last time, we had a function to get a location that could be piped to...
Getting Your Group On
Premium post · May 25, 2023
I thought I’d give you a break from the weather function and Pester test. We’ll pick that series later. In the meantime, I thought I’d dive into one of my...
Creating a PowerShell Weather Command Part 6
Premium post · May 23, 2023
Get-OMLocation
Creating a PowerShell Weather Command Part 5
Premium post · May 18, 2023
Parameter Validation
Creating a PowerShell Weather Command Part 4
Premium post · May 16, 2023
Weather Codes
Creating a PowerShell Weather Command Part 3
Premium post · May 11, 2023
Adding command validation
Newer archives
Older archives