SharePoint Online: Delete All Files and Sub-Folders from a Folder Recursively using PowerShell

Requirement: Empty a Folder in the SharePoint Online document library by deleting all its files and Sub-Folders recursively. How to delete a folder with subfolders and files from SharePoint Online? Deleting files and sub-folders in SharePoint Online can be done through the SharePoint user interface. To delete all files and sub-folders from…

Read more

Fix “You have to delete all the items in this folder before you can delete the folder” Error in SharePoint Online

Problem: When trying to delete a folder with sub-folders and files, I got an error message “You have to delete all the items in this folder before you can delete the folder” in SharePoint Online or OneDrive. You may also see the “Request was cancelled by event received. If attempting to delete…

Read more

SharePoint Online: How to Enable Rating in List using PowerShell?

Requirement: Enable Rating in SharePoint Online List. How to Enable Rating in SharePoint Online? The rating feature in SharePoint Online helps to highlight documents and list items. The rating can be enabled in the SharePoint Online list and libraries to let users see and rate items. The rating can be configured as…

Read more

SharePoint Online: Export User Information List using PowerShell

Requirement: Export User Information List in SharePoint Online. User Information List in SharePoint Online stores the information about users. It captures user metadata such as User Picture, Email, DisplayName, LoginName, etc. When we grant permissions to a user, they are added automatically to the hidden User Information list. SharePoint retrieves user-related metadata…

Read more

SharePoint Online: Create Document Set using PowerShell

Requirement: Create a Document Set in SharePoint Online using PowerShell. SharePoint Online: Create Document Set using PowerShell While my other post explains how to create a document set in SharePoint Online: Creating Document Set in SharePoint Online – Step by Step, this blog post will show you how to use PowerShell to…

Read more

SharePoint Online: Create a Document Set – Step by Step

What is Document Set in SharePoint Online? As its name indicates, a document set is a set of related documents wrapped inside a special folder that allows multiple documents to be managed together and treated as if they were a single item. In other words, Document Set enables you to group documents…

Read more

Office 365: Find All SharePoint Online Administrators using PowerShell

Requirement: Get All SharePoint Online Administrators of the Office 365 tenant. How to Check If a User is SharePoint Online Administrator in Office 365? If you’re a Microsoft 365 administrator, You may want to find all SharePoint Online Administrators in your organization at times. Perhaps you want to check if a specific…

Read more

SharePoint Online: PowerShell to Get a File

Requirement: Get a File from SharePoint Online using PowerShell. PowerShell to Get a File from SharePoint Online In this blog post, we will take a look at how you can use PowerShell to get a file from a SharePoint Online site. This can be useful if you need to access a file…

Read more

SharePoint Online: Delete All Unique Permissions from a Site Collection using PowerShell

Requirement: Remove unique permissions from a SharePoint Online site collection and restore permission inheritance from the parent. How to reset SharePoint permissions to default? If you’re ever in a situation where you need to reset SharePoint permissions but don’t know how to do it, this is the article for you! In this…

Read more