How to Add Value to an Array in a Function in PowerShell?

add value to array in function in powershell

In one of my previous tutorials, I explained how to add values to a PowerShell array using various methods. But today, I will show you an advanced method. In this tutorial, I will explain how to add values to an array in a PowerShell function with examples. To add a value to an array within a function in … Read more

How to Add Values to a Multidimensional Array in PowerShell?

powershell add values to multidimensional array

One of my team members recently asked to add values to a multidimensional array in PowerShell. There are various methods to do so. In this tutorial, I will explain how to add values to a multidimensional array in PowerShell. I will also show how to add values to 2-dimensional array in PowerShell. To add values … Read more

How to Add Only Unique Values to an Array in PowerShell?

Add Only Unique Values to an Array in PowerShell

While working with arrays in PowerShell, I was required to add only unique values. There are various methods to do so. In this tutorial, I will explain how to add unique values to an array in PowerShell with examples. To add only unique values to an array in PowerShell, use a conditional check with the … Read more

How to Add Values to an Array in PowerShell?

Add Values to an Array in PowerShell

Someone recently asked me about adding values to an array in PowerShell in an online webinar. There are several methods for doing so. In this tutorial, I will explain how to add values to an array in PowerShell with practical examples. To add values to an array in PowerShell using the += operator, simply append … Read more

How to Format an Array as an HTML Table in PowerShell?

powershell format array as html table

One of my team members wanted to format an array as an HTML table. I suggested different methods to do so. In this tutorial, I will explain how to format an array as an HTML table using PowerShell with some examples. This is particularly useful for creating reports or sending data via email in a … Read more

How to Convert Base64 String to Byte Array in PowerShell?

Convert Base64 String to Byte Array in PowerShell

Today, I was checking how to convert a Base64 string to a byte array in PowerShell. I tried various methods. In this tutorial, I will show you how to convert a Base64 string to a byte array in PowerShell with examples. To convert a Base64 string to a byte array in PowerShell, you can use … Read more

How to Replace Multiple Strings in an Array Using PowerShell?

Replace Multiple Strings in an Array Using PowerShell

Recently, I was doing some string manipulation and wanted to replace multiple strings in a PowerShell array. I tried four methods. In this tutorial, I will show you how to replace multiple strings in an array using PowerShell. To replace multiple strings in an array using PowerShell, you can use the -replace operator, which supports … Read more

Array Contains in PowerShell [With Examples]

Array Contains in PowerShell

Recently, I got one requirement from a client to check if an array contains a value in PowerShell. There are various methods to do this thing in PowerShell. In this PowerShell tutorial, I will show you a few examples of an array contains in PowerShell, including if an array contains a string in PowerShell. To … Read more

How to Convert an Array to a String in PowerShell?

Convert an Array to a String in PowerShell

Do you need to convert an array of elements into a single string in PowerShell? In this PowerShell tutorial, I will explain how to convert an array to a string in PowerShell. We’ll explore several methods to convert an array to a string in PowerShell, with complete examples. To convert an array to a string … Read more

How to Import CSV to Array in PowerShell?

powershell import csv into array

Recently, I got a requirement to import data from a CSV (Comma Separated Values) file into an array in PowerShell for further processing. In this tutorial, I will show you how to import CSV data into an array in PowerShell using different methods with examples. To import CSV data into an array in PowerShell, use … 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.