PowerShell ForEach Loop, ForEach-Object Cmdlet: Beginner’s Guide

Loops are an essential part of any programming or scripting language, allowing you to repeat a task multiple times without rewriting the code. In PowerShell, there are several looping constructs available, with the ForEach loop and ForEach-Object cmdlet being two of the most commonly used options. They allow you to iterate through…

Read more

Disable Kindle/YouTube/Twitter Web Parts at Tenant Level in SharePoint Online

SharePoint Online Administrators can hide the Kindle/YouTube/Twitter web parts, which are included in the modern SharePoint Online site web parts toolbox by default, at the tenant level using PowerShell cmdlet Set-SPOTenant -DisabledWebPartIds @(“Web Part IDs”). To disable a specific web part, you need to enter its GUID as the parameter: PowerShell to…

Read more

How to Sync File Share to SharePoint Online using PowerShell?

Requirement: Sync Fileshare to SharePoint Online using PowerShell. PowerShell Script to Sync File share to SharePoint Online document Library If you are using File Shares, you may find the need to keep your file shares in sync with SharePoint Online or OneDrive for Business. Perhaps you want to keep data in both…

Read more

SharePoint Online: Grant Access to ‘Everyone’, ‘Everyone Except External Users’ using PowerShell

Requirement: Grant Access to “Everyone” and “Everyone Except External Users” groups in SharePoint Online. How to Grant Access to Everyone or Everyone Except External Users Groups? Prerequisites: Make sure You have Enabled “Everyone” and “Everyone Except External Users” claims in SharePoint Online before running these PowerShell scripts. Granting access rights to either…

Read more

SharePoint Online: Copy Site Pages from One Site to Another using PowerShell

Requirement: Copy site pages to another site in SharePoint Online. SharePoint Online: How to Copy a Page to Another Site Collection? Do you need to copy a page from one SharePoint Online site collection to another? Maybe you want to duplicate a page for testing purposes or create a similar page in…

Read more

SharePoint Online: Update List Items from a CSV File using PowerShell

Requirement: Update SharePoint Online List from a CSV using PowerShell. PowerShell to Update SharePoint Online List from CSV File Have you ever needed to update SharePoint Online list items from a CSV file? Perhaps you need to do some bulk editing of list data. In this guide, we’ll show you how to…

Read more