How to Replace Multiple Strings in a String Using PowerShell?

powershell replace multiple strings in string

Recently, I was working on some strings in PowerShell to replace multiple strings in a string. I tried different ways to do it. In this tutorial, I will show you how to replace multiple strings in a string using PowerShell. To replace multiple strings in a string using PowerShell, you can utilize the -replace operator … 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

How to Check if a SharePoint Site Exists using PnP PowerShell?

Check if a SharePoint Site Exists using PnP PowerShell

Recently, I was working on an automation script to create a SharePoint site. There, I wanted to check if a SharePoint site already exists. In this tutorial, I will show you how to check if a SharePoint site exists using PnP PowerShell. Check if a SharePoint Site Exists using PnP PowerShell using Get-PnPTenantSite I will … Read more

How to Find Lines Starting with a Specific String in PowerShell?

find line starting with in a string in PowerShell

Recently, I got a requirement to find lines starting with a specific prefix using PowerShell. I tried different methods. In this tutorial, I will show you how to find lines starting with a specific string in PowerShell. To find lines starting with a specific string in PowerShell, you can use the Select-String cmdlet with a … Read more

How to Check if a String Starts with a Number in PowerShell?

powershell check if string starts with number

While working with string manipulations in PowerShell, I got a requirement to determine if a string starts with a number. In this tutorial, we will explore different methods to check if a string starts with a number in PowerShell with examples. To check if a string starts with a number in PowerShell, you can use … Read more

How to Check if a String Contains Only Numbers in PowerShell?

powershell check if string contains only numbers

One of my team members was searching for a PowerShell script to check if a string contained only numeric characters. I suggested a few methods. In this tutorial, I will explain how to check if a string contains only numbers in PowerShell using various methods. To check if a string contains only numbers in PowerShell, … Read more

PowerShell Filter Operators [With Examples]

PowerShell Filter Operators

If you want to write good quality PowerShell script, then you should know how to use PowerShell filter operators. In this tutorial, I will show you how to use filter operators in PowerShell with examples. PowerShell Filter Operators PowerShell filter operators are used to compare values or filter elements of a collection against an input … 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.