SharePoint Online: Fix “The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested” Error in PowerShell

Error: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. Root Cause: You must load the object before you are trying to retrieve its properties! Solution: Here is how the problem can be resolved: Please note,…

Read more

SharePoint Online: Fix “The remote server returned an error: (403) Forbidden.” Error in PowerShell

Error: Exception calling “ExecuteQuery” with “0” argument(s): “The remote server returned an error: (403) Forbidden.” in PowerShell scripts for SharePoint Online. Troubleshooting Checklist for 403 forbidden in SharePoint Online PowerShell: Follow this checklist to resolve Executequery 403 forbidden error in SharePoint Online PowerShell: You may have provided the credentials of another tenant,…

Read more

SharePoint Online: Bulk Import Users to Groups from a CSV File using PowerShell

Requirement: Bulk add users from a CSV file to SharePoint Online Groups. Here is the CSV file with users and groups data to bulk add users to groups: SharePoint Online: Bulk Add Users to Group using PowerShell SharePoint Online groups helps to manage security effectively by combining user accounts and security groups….

Read more

SharePoint Online: How to Get Direct Link to a Document In Modern Libraries?

Requirement: Get the direct link to a document in SharePoint Online. SharePoint Online: Get Direct Link to Document Do you need to share a document with someone but don’t want them to have to navigate through your SharePoint Online site? Well, there is an easy way to do this – and all…

Read more

SharePoint Online: Get Document Library Size using PowerShell

Requirement: Get the Size of a SharePoint Online Document Library How to Check SharePoint Online Document Library Size? Are you looking for a way to quickly find out the size of your document library in SharePoint Online? In this guide, we’ll show you how to get the size of your document library,…

Read more

SharePoint Online: Get Subsite Size using PowerShell

Requirement: Get Subsite Size in SharePoint Online How to Get the Subsite Size in SharePoint Online? Are you looking for a way to get the size of your subsites in SharePoint Online? Well, In this post, I will show you how to get subsite size information in SharePoint Online. Also, I will…

Read more

SharePoint Online: How to Change Date Format to “DD/MM/YYYY”?

Requirement: Change Date format to “DD/MM/YYYY” in SharePoint Online. How to Set Date Format in SharePoint Online? By default, SharePoint Online sites display the dates in US format (MM/DD/YYYY). You may want to change the date format based on the country you live in. Let’s see how to set the date format…

Read more

SharePoint Online: Publish All Files in a Library using PowerShell

Requirement: Bulk Publish Multiple Files in SharePoint Online PowerShell to check-in, Approve and Publish All Files in a Library: When you turn ON minor versioning in the SharePoint Online document library, any edits will not appear to users with read-only (or view only) permissions until you publish them. Publishing each file individually…

Read more

SharePoint Online: How to Publish a File using PowerShell?

Requirement: Publish a Document in SharePoint Online How to Publish a File in SharePoint Online? When you enable minor versions (or drafts) in SharePoint Online, changes to any document aren’t available to users with read-only permissions until it’s published. Published documents become major versions such as 1.0. Here is how to publish…

Read more

Download All Files in a SharePoint Document Library using PowerShell

Requirement: Download all files in a SharePoint document library Download All Documents in a Library using PowerShell: Looking to download all the files from a SharePoint document library quickly? Whether you need to archive documents or just want a local copy of everything in the library, this guide will show you how…

Read more