SharePoint Online: Get a Document Library using PowerShell

Requirement: Get a Document Library in SharePoint Online using PowerShell SharePoint Online: Get a Document Library using PowerShell Here is the PowerShell to Get SharePoint Online document library PnP PowerShell to get a document library in SharePoint Online: Here is how to get a document library in SharePoint Online site using PnP…

Read more

SharePoint Online: Move All Files from One Folder to Another using PowerShell

Requirement: Move All Files Between Folders in SharePoint Online using PowerShell PowerShell to Move All Files from One Folder to Another in SharePoint Online: How to move files between folders in SharePoint Online? Well, here is the PowerShell to move all files from one folder to another folder: This script moves all…

Read more

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

Requirement: Empty a Folder in 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 Let’s delete a folder with subfolder and files from SharePoint Online. This PowerShell script deletes all files, sub-folders of a folder and then…

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, got an error message “You have to delete all the items in this folder before you can delete the folder” in SharePoint Online. Root Cause: Usually, we don’t need to empty the folder before we delete it. However, If the…

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 information about a user by having some metadata set up for the user such as User Picture, Email, DisplayName, LoginName etc. When we grant permissions to a user, they are added automatically to the hidden User Information…

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, here is the PowerShell script to create document sets in SharePoint…

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? To find if a user is SharePoint Online Administrator, do the following: Login to Office 365 Admin Center: https://admin.microsoft.com Expand Users >> Active Users Use the Search and…

Read more