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 PowerShell to Delete All Files and Sub-Folders from a SharePoint Online Folder While preparing for migration, I had to clear out some old data – So needed to delete files and folders recursively 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 that has 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. Root Cause: Usually, we don’t need to empty the folder before deleting it. However,…

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? 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 either…

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 allows 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. PowerShell Script to Restore Permission Inheritance in SharePoint Online SharePoint Online allows us to manage permissions at a more granular level when we need unique permissions to objects such as subsite, list, folder, or list…

Read more