Live Developer Training starts 5 October 2026. Seats are limited.Live training starts 5 OctReserve your seat →Reserve →

How to Split a String by Length in PowerShell?

powershell split string by length

When you need to split a string by a specific length, PowerShell offers various methods to do it. This PowerShell tutorial explains various methods to split a string by length in PowerShell To split a string by length in PowerShell, you can use a loop with the Substring method to iteratively extract parts of the string, or … read more…

PowerShell Substring() Example

PowerShell Substring

The Substring() method is very helpful for working with PowerShell strings. In this PowerShell tutorial, I will explain how to use the Substring() method to extract parts of a string in PowerShell with a few real examples. What is the Substring() Method in PowerShell The Substring() method is a member of the String class in … read more…

We couldn’t find the Office 365 group connected to this site [Solved]

Couldn't restore site We couldn't find the office 365 group connected to this site

Recently, I tried to restore a site that was deleted a few days ago from the SharePoint Online admin center. However, I encountered an error stating, “Couldn’t restore site. We couldn’t find the Office 365 group connected to this site.” In this tutorial, we’ll discuss how to solve the “Couldn’t restore site. We couldn’t find … read more…

How to Disable Versioning in SharePoint Online?

sharepoint online disable versioning

As a SharePoint beginner, you must learn how to disable versioning in the SharePoint Online list and library. Follow this tutorial to get all the information about how to turn off versioning in SharePoint Online, like: Disable Versioning in SharePoint Online Versioning is one of the most useful features of the SharePoint Online document library. … read more…

How to Read CSV into Array in PowerShell?

powershell import csv into array

You might get various requirements to import csv into an array in PowerShell. This is going to be a complete tutorial on how to read CSV into an array in PowerShell. Read CSV into an Array in PowerShell PowerShell provides Import-Csv cmdlet to read CSV files and import the data into PowerShell as an array of … read more…

How to Get Microsoft 365 Group Members Using PowerShell?

how to get office 365 group members using powershell

I was recently assigned the task of obtaining specific Office 365 group members using PowerShell. In this PowerShell tutorial, I will show you how to get Microsoft 365 group members using PowerShell in a simple scenario. Also, we will discuss how to export Microsoft 365 group members to CSV using PowerShell. How to Get Microsoft … read more…

Foreach vs Foreach-Object in PowerShell

The foreach statement and the ForEach-Object cmdlet, while similar in function, difference in form, execution context, and performance implications. They are both designed for iterating over collections, executing a block of script code for each object in the collection. In this PowerShell tutorial, we will explain everything about the Foreach vs Foreach-Object in PowerShell. What … read more…

How to Use PowerShell Foreach With Examples

powershell foreach loop

If you are working in PowerShell, then you will get requirements to use looping to iterate items in a collection. In this tutorial, I will explain how to use PowerShell foreach loop with various real examples. The foreach loop in PowerShell takes a collection of items and iterates over each item sequentially. It assigns each … read more…

How to Add Comments in PowerShell: Complete Guide

Add Comments in PowerShell

It is always good to add comments in your PowerShell script. In this PowerShell tutorial, I will explain how to add comments in PowerShell. Comments in PowerShell Adding comments within PowerShell scripts is crucial for documentation, providing clarity on the purpose and functionality of the code to future readers, which may include the original author … read more…

How to Convert String to Integer in PowerShell?

Convert String to Integer in PowerShell

Recently, I got a requirement in PowerShell to convert a string to int. I tried different methods to do so. In this tutorial, I will explain how to convert string to integer in PowerShell using various methods. Using different examples, I will also show you how to convert string to number with decimal in PowerShell. … read more…

How To Format An Array Of Objects As Table In PowerShell?

format an array of objects as table in PowerShell

Recently, while working on an array of objects in PowerShell, I got a requirement to format it as a table. In this PowerShell tutorial, I will explain how to use the Format-Table PowerShell cmdlet to format an array of objects as a table in PowerShell. To format an array of objects as a table in … read more…

How to Access Array of Objects in PowerShell?

how to access array of objects in powershell

Do you want to know about the array of objects in PowerShell? In this PowerShell tutorial, we will discuss what an array of objects is in PowerShell, how to declare one, and, most importantly, how to access an array of objects in PowerShell. To access an array of objects in PowerShell, use index notation like … read more…

How to Filter Array of Objects in PowerShell?

how to filter array of objects in powershell

Recently, I got a requirement to filter an array of objects in PowerShell. I checked a few methods, and in this PowerShell tutorial, I will explain how to filter an array of objects in PowerShell using various methods. To filter an array of objects in PowerShell, you can use the Where-Object cmdlet, which allows you … read more…