Behind the PowerShell Pipeline
Archives
Search...
Subscribe
Making Associations with CIM
Premium post · July 12, 2022
Today’s article grew from a post I saw on the Facebook PowerShell group page. The question centered on the best way to filter results using Get-CimInstance....
More PowerShell Replacement Techniques
July 7, 2022
In the last article, I discussed and demonstrated a number of replacement techniques in PowerShell. You can use these techniques to replace strings or parts...
PowerShell Replacement Rules
Premium post · July 5, 2022
Even though we think about working with objects in PowerShell and not parsing strings, a string is still an object, and there are situations where we want to...
What's In a Name
June 23, 2022
“What’s in a name? That which we call a rose/ By any other name would smell as sweet.” - Romeo and Juliet I’m sure you are familiar with Shakespeare’s...
Collection Function Homework
Premium post · June 21, 2022
A few weeks ago, I shared my code utilizing generic collections to encode a text file by reversing each line and the entire file. The point of the exercise...
Scoping Out PowerShell Problems
Premium post · June 16, 2022
One of the challenges facing beginner PowerShell scripters is the concept of scope. I recall when I first learned PowerShell struggling to get my head...
Optimizing PowerShell Objects
Premium post · June 14, 2022
I recently posted an article on my blog about formatting property names from a Directory Searcher result. While that article and its accompanying code were...
The Collections Script Challenge
Premium post · June 9, 2022
A few weeks ago, I published an article on using generic collections in place of arrays. Arrays still have a place in your PowerShell scripting toolbox. But...
Creating User Friendly Code
Premium post · June 7, 2022
As you write PowerShell scripts and functions, I encourage you to think about who will be using your code and their expectations. Even if the user will be...
Collections in Action
Premium post · May 26, 2022
In the last article, I introduced the generic collection, a terrific alternative to using an array. Especially if you need to modify the array contents. A...
Arrays and Collections
Premium post · May 24, 2022
I do not doubt that you have used arrays in your PowerShell work. You might have created an array to hold the results of a PowerShell command at the console...
Best Practices Make Perfect
May 18, 2022
Over the last several weeks, I've been sharing and demonstrating techniques for writing effective PowerShell functions. I know I've mentioned a few...
Pipeline Possibilities
Premium post · May 11, 2022
In the previous article, I demonstrated how to add pipeline binding to your advanced PowerShell function. There is nothing wrong with writing a simple...
Advancing Your Functions
Premium post · May 4, 2022
I hope you've been enjoying this series of articles looking at how to build a PowerShell function. If you are a PowerShell beginner and can write a function...
Extending a PowerShell Function
Premium post · April 26, 2022
If you’ve been keeping up with the articles, you’ve seen how I went from a script block to a basic PowerShell function. This is a stand-alone function,...
More Basic Function Building
Premium post · April 21, 2022
In the last article, I demonstrated how to add parameters to a basic PowerShell function. Well-crafter parameters make your code flexible, re-usable, and...
Parameterizing the Basic Function
Premium post · April 19, 2022
In the last article, I showed you how to create a basic PowerShell function from a script block. A function at its core is nothing more than a script block...
Creating Basic Functions
Premium post · April 14, 2022
In a previous post, we looked at creating and using script blocks in PowerShell. As you’ll discover, these are the building blocks of PowerShell functions....
Building with Script Blocks
Premium post · April 12, 2022
Photo by Ryan Fields on Unsplash This month we’re going to dive deeper into PowerShell functions. A reader asked for more content on this topic, and I am...
Building a PowerShell Module
April 8, 2022
I hope you’ll indulge me and accept a slight deviation from the regular content. But this is something you might be interested in attending, and unless you...
Newer archives
Older archives