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

PowerShell: IsNullOrEmpty vs IsNullOrWhiteSpace

powershell isnullorempty vs isnullorwhitespace

When working with strings in PowerShell, checking whether a string is null, empty, or consists solely of whitespace characters is often necessary. PowerShell provides two methods to perform these checks: IsNullOrEmpty and IsNullOrWhiteSpace. In this PowerShell tutorial, I will show the differences between IsNullOrEmpty() and IsNullOrWhiteSpace() methods. The primary difference between PowerShell IsNullOrEmpty() and IsNullOrWhiteSpace() is that IsNullOrWhiteSpace considers strings that contain only whitespace … Read more

PowerShell IsNullOrEmpty() Example

PowerShell isnullorempty

Recently, I got a requirement to check whether a variable or string is null or empty. I tried this using the IsNullOrEmpty() method in PowerShell. In this tutorial, I will show you examples related to the PowerShell IsNullOrEmpty() method. What Are Null and Empty in PowerShell? Before checking a few examples of IsNullOrEmpty method, let’s understand what … Read more

PowerShell Not Operator [With Examples]

PowerShell Not Operator

Do you want to know about the not operator in PowerShell? In this tutorial, I will explain everything about the PowerShell Not operator, its syntax, and a few examples of the not operator in PowerShell. What is the Not Operator in PowerShell? The Not operator in PowerShell is used to reverse the logical state of its … Read more

How to Delete All Items from a SharePoint List using PnP PowerShell?

delete sharepoint list items using pnp powershell

Recently, I got an urgent requirement to delete all the items from a SharePoint Online list. PowerShell is the best option for bulk deleting list items. In this tutorial, I will show you how to delete all items from a SharePoint list using PnP PowerShell and PowerShell. I recommend using PnP PowerShell to delete items … Read more

How to Use -and Operator in PowerShell?

-and Operator in PowerShell

If you want to know about the logical operators in PowerShell, then you should know about the -and operator in PowerShell. In this tutorial, I will explain everything about the PowerShell -and operator, its syntax, and various examples of -and operator in PowerShell. What is the -and Operator in PowerShell? The -and operator in PowerShell … 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.