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

How to Convert String to Int in PowerShell?

Convert String to Int in PowerShell

Recently, one of my team members struggled to figure out how to convert a string to an int in a PowerShell automation script. I suggested a few methods. In this tutorial, I will show you how to convert string to int in PowerShell using six methods with examples. To convert a string to an integer … Read more

How to Convert String to Boolean in PowerShell?

PowerShell convert string to Boolean

While working on a PowerShell script, I got a requirement to convert a string to a boolean. There are different methods for this. In this tutorial, I will explain how to convert string to boolean in PowerShell using various methods with examples. To convert a string to a Boolean in PowerShell, you can use several … 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.