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

SharePoint Online: Format List View using PowerShell

Requirement: Apply formatting to SharePoint Online View using PowerShell. How to Apply Formatting to a List View in SharePoint Online? Similar to column formatting, we can apply formatting to SharePoint Online views as well. Say, you want to apply alternate rows highlighting format for a SharePoint Online list view. Here are the…

Read more

Copy Document Library Between Tenants in SharePoint Online using PowerShell

Requirement: Copy a document library with files and folders from one SharePoint Online tenant to another. How to copy a SharePoint Online document library across tenants? There are many paid 3rd party tools, like ShareGate, Metalogix, etc., to do this efficiently, and We can use PowerShell (with limitations) to do this migration….

Read more

SharePoint Online: Get Default List Form (New/Edit/Display) URLs using PowerShell

Requirement: Get the default list form URLs in SharePoint Online. How to Get the List Form URLs in a SharePoint Online List? Just open the SharePoint Online site in SharePoint Designer, Navigate to the Lists >> Open the Target List >> and You’ll find the default list of forms under the “Forms”…

Read more

How to Delete a Distribution List in Office 365 using PowerShell?

Microsoft Office 365 is an effective tool for communicating and collaborating within an organization. One of the features of Office 365 is the ability to create and manage distribution lists, which allow users to send emails to groups of people at once. However, there may come a time when you need to…

Read more

How to Bulk Add Members to Distribution List in Office 365?

Distribution lists in Office 365 allow you to send emails to a group of recipients with a single email address. This feature can simplify email communication within an organization by enabling users to send emails to specific groups or individuals with a single click. Adding members to a distribution list is an…

Read more