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

PowerShell Arithmetic Operators [With Examples]

PowerShell Arithmetic Operators

Recently, I worked on a PowerShell script that involved some addition and subtraction operations. I tried different examples. In this tutorial, I will show you how to use PowerShell arithmetic operators with examples. PowerShell provides a range of arithmetic operators to perform basic calculations. These operators include addition (+), subtraction (-), multiplication (*), division (/), … Read more

PowerShell Logical Operators [With Examples]

Logical Operators in PowerShell

PowerShell logical operators allow you to perform logical operations on values and expressions. These operators, such as And, Or, and Not, allow users to connect and evaluate multiple conditions within a single statement. Logical operators in PowerShell are often used within conditional statements or loops to evaluate specific conditions. In this tutorial, I will show … Read more

PowerShell Comparison Operators

PowerShell Comparison Operators

PowerShell comparison operators allow users to compare values and make decisions based on conditions. In this tutorial, I will explain everything about the comparison operators in PowerShell with various examples. Comparison Operators in PowerShell Comparison operators in PowerShell compare two values or expressions, which ultimately helps in decision-making processes. These operators can be used with various … Read more

How to Convert String to JSON in PowerShell?

Convert String to JSON in PowerShell

Recently, one of my clients asked me to convert a string to JSON for an automation script. I tried various methods in PowerShell. In this PowerShell tutorial, I will show you how to convert string to JSON in PowerShell using different methods. To convert a string to JSON in PowerShell, the most common and straightforward … Read more

How to Get All SharePoint Online Sites using PnP PowerShell?

Get All SharePoint Online Sites using PnP PowerShell

One of my clients recently asked me to get all the sites presented in the SharePoint Online environment. I tried PnP PowerShell for this. In this tutorial, I will show you how to get all SharePoint Online sites using PnP PowerShell. Here, I will also show you how to get all the SharePoint team sites, … 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.