How to Extract Lines Between Two Strings in PowerShell?

powershell get lines between two strings

Recently, I received a requirement to extract lines of text between two specific strings from a log file. It is easy in PowerShell. In this tutorial, I will show you different methods to extract lines between two strings in PowerShell. To extract lines between two strings in PowerShell, you can use the Select-String cmdlet with … Read more

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

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

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