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 try to retrieve its properties! Solution: The “The collection has not been initialized. It has not been…

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: The “The remote server returned an error: (403) Forbidden.” error can occur when connecting to SharePoint Online using PowerShell. This error typically…

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. If you need to bulk add users to a group in SharePoint Online, PowerShell is the way to go. In this post, we’ll walk you through the steps needed to add users to a group using PowerShell. Here is the…

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? As document libraries grow and evolve, it is essential to monitor their size to ensure…

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, you can take a few approaches, and we’ll walk through each one to get the size of any subsite…

Read more

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

Requirement: Change the 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 your country. The first step in changing the date format in SharePoint…

Read more

SharePoint Online: Publish All Files in a Library using PowerShell

Requirement: Bulk Publish Multiple Files in SharePoint Online. How to Publish Multiple Files in SharePoint Online? To publish all documents in SharePoint Online, you can follow these steps: PowerShell to Check in, Approve and Publish All Files in a Library When you turn ON minor versioning in the SharePoint Online document library,…

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

SharePoint Server: Download All Files in a Document Library using PowerShell

Requirement: Download all files in a SharePoint document library. How to download all files from a document library? A SharePoint document library is a central location where all files related to a project or team can be stored and accessed. Often, users may need to download all the files in a SharePoint…

Read more

SharePoint Server: PowerShell to Delete All Files in a Document Library

Requirement: Delete All Files in SharePoint Document Library using PowerShell. How to Delete All Files in a SharePoint Document Library? To delete all files in a SharePoint document library, follow these steps: This deletes all selected files and folders from the document library, and they will be sent to the recycle bin….

Read more