How to Create Byte Arrays in PowerShell? [With Examples]

Create Byte Arrays in PowerShell

Do you want to know about byte arrays in PowerShell? In this PowerShell tutorial, I will explain what a byte array is and how to create a byte array in PowerShell, and I will also show you how to work with PowerShell byte arrays. What is a Byte Array? A byte array is a collection … Read more

How to Search an Array for Matches in PowerShell?

Search an Array for Matches in PowerShell

Do you need to search an array for matches in PowerShell? In this PowerShell tutorial, I will show you how to search an array for matches in PowerShell. Whether you’re looking for duplicates, partial strings, exact matches, or specific values, PowerShell has a command or operator to help you. Search for Duplicates in a PowerShell … Read more

How to Join an Array with a Comma in PowerShell?

Join an Array with a Comma in PowerShell

I will explain how to join an array with a comma in PowerShell in this PowerShell tutorial. This is a common task when you need to convert an array into a string to display it in a readable format, or to prepare it for export to a CSV file or another system that requires comma-separated … Read more

How to Pass Arrays to Functions in PowerShell?

How to Pass Arrays to Functions in PowerShell

Do you need to pass an array to a PowerShell function? In this PowerShell tutorial, I will explain how to pass arrays to functions in PowerShell with examples. To pass an array to a function in PowerShell, define the function parameter to accept an array type, and then call the function with the array as … Read more

PowerShell Array of Hashtables

PowerShell Array of Hashtables

In PowerShell scripting, data structures are vital in organizing and managing data. Two such structures that are widely used are arrays and hashtables. While arrays are a collection of items, hashtables are collections of key-value pairs. Combining these two structures, we can create a powerful tool called an array of hashtables. In this PowerShell tutorial, … Read more

Filter Unique Objects in PowerShell with Where-Object

powershell where-object distinct

Recently, I got a requirement to filter out unique objects from a data collection in PowerShel. PowerShell provides the Where-Object cmdlet to filter unique or distinct objects from a collection. In this PowerShell tutorial, I will explain how to filter unique objects in PowerShell with the Where-Object cmdlet. To filter unique objects in PowerShell, you … Read more

Filter Empty Values Using PowerShell Where-Object Cmdlet

powershell where-object empty

When working with data in PowerShell, it’s common to encounter empty values, such as empty strings, null values, or empty arrays. These can interfere with data processing and may need to be filtered out. PowerShell provides a powerful cmdlet, Where-Object, which can be used to filter objects based on their property values. In this PowerShell … Read more

PowerShell Where-Object vs Filter: In-depth Comparison and Examples

PowerShell Where-Object vs Filter

Two of the most commonly used filtering techniques in PowerShell are Where-Object, and the filter keyword in function definitions. In this PowerShell tutorial, I will explain everything about the PowerShell Where-Object vs Filter. In PowerShell, Where-Object is a cmdlet used for filtering objects based on specified criteria within a pipeline, allowing for complex expressions. On … Read more

PowerShell: Where-Object vs Select-Object

PowerShell Where-Object vs Select-Object

Are you confused and unable to know whether you should use the Where-Object or the Select-Object in PowerShell? In this PowerShell tutorial, I will explain the differences between PowerShell where-object vs. select-object and when you should use which one. What is Where-Object in PowerShell? The Where-Object cmdlet in PowerShell is used to filter objects based … Read more

PowerShell Naming Conventions & Best Practices

PowerShell Naming Conventions

PowerShell employs a distinct Verb-Noun pair naming convention that enhances clarity for users and developers alike. Using this convention, commands (Cmdlets), functions, and aliases become self-descriptive, and you can quickly infer the action a Cmdlet will perform. I will discuss everything about the PowerShell naming conventions in this PowerShell tutorial. PowerShell Naming Conventions When you … Read more

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.