SharePoint Online: Monitor Site Collection Storage Usage with PowerShell

Requirement: Monitor SharePoint Online storage metrics and Send Emails on current usage. SharePoint Online: Storage Usage Report using PowerShell By default, SharePoint Online storage management is set to “Automatic,” and all storage allocations are automatically managed from the central pool of storage. However, In your environment, if the storage management option is…

Read more

Fix “A compliance policy is currently blocking this site deletion” Error in SharePoint Online

Problem: When trying to delete a SharePoint Online site collection, getting an error message “Can’t Delete Site: A compliance policy is currently blocking this site deletion”. Also, in the SharePoint Admin center, we get an intimation saying, “This site has a compliance policy set to block deletion.”  Root Cause: This is because…

Read more

Find All InfoPath Form Libraries in SharePoint Online using PowerShell

Requirement: Find All InfoPath Form libraries in SharePoint Online How to Find All InfoPath Form Libraries in SharePoint Online Site? To get all form libraries in the SharePoint Online site collection, use the below PowerShell script. This script checks if the template ID of any list is 115 to decide it’s an…

Read more

SharePoint Online: Get Subsite Permission Report using PowerShell

Requirement: PowerShell script to get subsite permissions in SharePoint Online. How to Get Subsite Permissions in SharePoint Online? Do you need to access the SharePoint Online site permissions but don’t know how? If so, this blog post is for you! With a few steps, you will be able to view all of…

Read more

SharePoint Online: Bulk Update Metadata Properties from a CSV File using PowerShell

Requirement: Bulk Update Metadata of Multiple Documents from a CSV in SharePoint Online. SharePoint Online: PowerShell to Bulk Edit Metadata Properties from a CSV File We have a document library with 100s of documents in several sub-folders and wanted to bulk update the metadata of all those documents. In comparison, the quick…

Read more

Fix “The sign-in name or password does not match one in the Microsoft account system” Error in SharePoint Online

Problem: Getting “The sign-in name or password does not match one in the Microsoft account system” Error in SharePoint Online. Solution: I’ve experienced this error in SharePoint Online PowerShell scripts a couple of times. This could happen in any PowerShell method like CSOM, SharePoint Online Management Shell, or PnP PowerShell. Here are…

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: Twitter (f6fdf4f8-4a24-437b-a127-32e66a5dd9b4)….

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