PowerShell Measure-Object 2 Decimal Places [With Examples]

PowerShell Measure-Object 2 Decimal Places

When working with PowerShell, one of the most commonly used cmdlets for calculations is Measure-Object. It helps calculate values such as count, sum, minimum, maximum, and average. However, a frequent issue developers and system administrators face is that the result often contains too many decimal places, making it hard to read or use in reports. In … Read more

PowerShell Round to Nearest Whole Number

PowerShell Round to Nearest Whole Number

Do you need to round to the nearest whole number in PowerShell? Whether you’re working with file sizes, calculations, or system metrics, converting decimal numbers to clean whole numbers is always required. In this tutorial, I’ll show you exactly how to round numbers to the nearest whole number in PowerShell using five different methods that … Read more

PowerShell Round to 2 Decimal Places [5 Methods]

PowerShell Round to 2 Decimal Places

Have you ever found yourself staring at PowerShell output with messy decimal numbers like 3.14159265 or 125.6789432 when you just need clean, readable values with two decimal places? I faced this very often. In this comprehensive tutorial, I’ll walk you through five proven methods to round decimal numbers to exactly two places in PowerShell, complete … Read more

How to Test If a File Exists in PowerShell?

Test If a File Exists in PowerShell

I got a requirement to test if a file exists in PowerShell. In fact, this is a very common requirement among administrators. This tutorial covers various methods to test if a file exists in PowerShell with practical examples. Checking for a file’s existence before performing operations like reading, writing, copying, or deleting helps avoid runtime … Read more

How to Convert XML to CSV in PowerShell

PowerShell Convert XML to CSV

Have you ever received an XML file from a vendor, API, or internal system and struggled to make sense of it in Excel or a database? XML is great for storing structured data, but it’s not easy to analyze directly. So, you can use PowerShell to convert an XML file to a CSV file. In … Read more

How to Get the Type of an Object in PowerShell?

powershell get type of object

In this tutorial, I will explain how to get the type of an object in PowerShell using various methods and examples. Here are the methods, you can see below: Get the Type of an Object in PowerShell Method 1: Using the .GetType() Method Whenever I need a precise answer about an object’s data type, I reach for .GetType(). … Read more

Fix “PowerShell Running Scripts is Disabled on This System” Error

PowerShell Running Scripts is Disabled on This System

Have you ever encountered the frustrating “running scripts is disabled on this system” error when trying to execute a PowerShell script? Don’t worry – this is one of the most common PowerShell issues, and I’m here to tell you that fixing it is simpler than you might think. The solution involves understanding PowerShell’s execution policies … Read more

PowerShell Not Equal Operator

PowerShell Not Equal Operator

Do you need to learn how to use the not equal operator in PowerShell? I will explain in detail with examples. In this tutorial, I will explain various methods to use the not equal operator in PowerShell with various examples. You can use the not equal operator to check when two values don’t match—like when … Read more

Create Folder & Subfolders in SharePoint Online with PnP PowerShell

Create Multiple Folders and Subfolders in SharePoint in Bulk using PnP PowerShell

Recently, I was working in a SharePoint portal to organize documents in document libraries. For this, I used PowerShell to create some folders and subfolders. In this tutorial, I will explain how to create folders and subfolders in a SharePoint Online document library using PnP PowerShell. Here, we will use the PnP PowerShell to create … Read more

How to Get SharePoint Online Site Details Using PowerShell?

get sharepoint online site details powershell

Do you need to get SharePoint site details using PowerShell? In this tutorial, I will explain how to get SharePoint Online site details using PowerShell (SharePoint management shell) and also using PnP PowerShell. By using PowerShell, we can get various site properties such as: site URLs, owners, storage usage, templates, creation dates, sharing settings, and … 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.