PowerShell Comparison Operators: An Essential Guide

As a PowerShell user, you are likely familiar with the importance of comparison operators in scripting and automation. The comparison operators are essential for comparing values and making decisions based on those comparisons. Understanding how to use these operators is crucial for anyone working with PowerShell. In this article, we will explore…

Read more

How to Resend Azure AD Invitation to Guest User?

Requirement: Resend Azure AD guest user invitation. How to resend guest user invitation for SharePoint Online External User Access? Have you ever had to send the invitation again to the guest user, as the guest user claims he didn’t receive the invitation email? As an administrator, you may need to resend Azure…

Read more

How to Append to Text File using PowerShell?

As someone who works with PowerShell frequently, I’ve found that being able to manipulate text files is a crucial skill to have. Whether you’re editing configuration files, creating log files, or generating reports, knowing how to append to text files can save you time and effort. In this article, I’ll be sharing…

Read more

How to Import Excel File in PowerShell Script?

Microsoft Excel is used by millions of people to store, organize, and analyze data. Excel files (.xlsx, .xls) contain a wealth of useful data like reports, lists, calculations, etc. As a PowerShell scripter, you may often need to extract data from Excel files for use in your scripts. With PowerShell, you can…

Read more

How to Trim Strings in PowerShell?

Introduction In the programming world, trimming is the process of removing unwanted characters from the beginning or end of a string. Whether you need to remove leading or trailing white spaces, unwanted characters, or clean up data, the Trim method can save the day. As with many scripting and programming languages, extra…

Read more

SharePoint Online: Add Web Part to a Modern Page using PowerShell

Requirement: Add a web part to the modern page in SharePoint Online using PowerShell. How to Add a Web Part to a Modern SharePoint Online Page? Web parts are pre-built or custom-developed pieces of functionality that can be added to a page to display content, interact with users, or perform a specific…

Read more

A Beginner’s Guide to the -in Operator in PowerShell

Testing if a value exists in a collection is a common operation in PowerShell scripting. You may think to reach for the -contains operator, but PowerShell offers an even simpler option: The -in operator. It is a simple yet powerful operator that can help you to filter and select the data that…

Read more

How to Remove a Web Part from Modern Page in SharePoint Online using PowerShell?

Requirement: Remove a web part from a Modern page in SharePoint Online. How to Remove a Web Part from SharePoint Online Page? In SharePoint Online, If you no longer need a particular web part on your page, you can remove it by editing the page and then deleting the web part. This…

Read more

Add a List or Document Library to a Page in SharePoint Online using PowerShell

Requirement: Add a list or document library to a modern page in SharePoint Online. SharePoint Online: How to add a document library to a page? In modern SharePoint Online pages, we can add a list or document library to show its contents on the page. In this blog post, we will cover…

Read more