Dynamic Arrays in PowerShell [With Examples]

powershell dynamic arrays

In this PowerShell tutorial, I will explain to you what is a dynamic array in PowerShell. And then how to work with PowerShell dynamic arrays. A dynamic array in PowerShell is not a specific type of array but rather refers to the ability to modify an array after its creation, such as adding or removing … Read more

PowerShell Ordered Arrays [With Examples]

PowerShell Ordered Arrays

In this PowerShell tutorial, I will explain what is an ordered array in PowerShell with examples and how to work with PowerShell ordered arrays. An ordered array in PowerShell, often referred to as an ordered hashtable, is a special kind of hashtable that maintains the order of its key-value pairs as they were added. It … Read more

How To Write Array To File In PowerShell?

How To Write Array To File In PowerShell

Writing an array to a file in PowerShell is a very common requirement and very useful in scenarios such as logging, data export, or simply saving data for later use. PowerShell provides several ways to write an array to a file. In this PowerShell tutorial, I will explain how to write an array to file … Read more

How to Check if a Variable is an Array in PowerShell?

Check if a Variable is an Array in PowerShell

While working with PowerShell, you might need to check if a variable is an array in PowerShell. In this PowerShell tutorial, I will explain how to check if a variable is an array in PowerShell. To check if a variable is an array in PowerShell, use the -is operator followed by [array]. For instance, the … Read more

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

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

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