SharePoint Online: How to Hide Folders in Document Library and Show All Files?

When you have a complicated deep File-Folder structure, You may want to hide folders from the view and show all files without folders in the SharePoint document library view. Probably, you may want to use Metadata instead of Folders! How to hide folder in SharePoint Online document library? Here is how to…

Read more

SharePoint Online: Bulk Delete Folders from a CSV using PowerShell

Requirement: Bulk Delete Folders in SharePoint Online. How to Bulk Delete Multiple Folders in SharePoint Online? To bulk delete folders with its sub-folders and files, we can use a CSV file with PowerShell script. Here is my CSV file with a list of folder names and the site relative URL of its…

Read more

OneDrive for Business: Create Folder using PowerShell

Requirement: Create a folder in OneDrive for Business site. How to create a Folder in OneDrive for Business? To create a new folder in OneDrive for Business site, do the following: Login to your OneDrive site (https://<tenant>-my.sharepoint.com) From the Toolbar, click on “New”, choose “Folder” Provide a name to your folder and…

Read more

SharePoint Online: Find All Folders Exceeding List View Threshold Limit of 5000

Problem: Any SharePoint List, Library, or Folder contains more than 5000 items at the same level results list view threshold exceeded error messages in SharePoint Online. While the maximum number of items or files that can be stored in the SharePoint Online list or library is 30 million, more than 5000 items…

Read more

SharePoint Online: Check If a Folder has Unique Permissions

Requirement: Check If a Folder has Unique Permissions in SharePoint Online using PowerShell Check if Folder has Broken Permission Inheritance using PowerShell CSOM PowerShell to Check If Folder has Unique Permissions: Get Permissions of All Folders in SharePoint Online Library:

Read more

SharePoint Online: PowerShell to Break Folder Permission Inheritance

Requirement: Break Permission Inheritance of a Folder in SharePoint Online using PowerShell. How to Break the inheritance of a folder in SharePoint Online? By default, folders in SharePoint Online inherit permission from their parent objects such as document library or list. When you have to provide unique permissions to folders, you have…

Read more

SharePoint Online: Get Files and Sub-Folders Count on Each Folder in a Document Library using PowerShell

Requirement:  Get the count of files and sub-folders at each folder in a SharePoint Online document library. How to Get the Number of Files and Sub-Folders at Each Folder of a Document Library? When a document library has multiple folders, sub-folder, and files, you can get the number of files and sub-folders…

Read more

SharePoint Online: PowerShell to Bulk Create Folders in a Document Library from a CSV File

Requirement: Create Multiple Folders in a Document Library from a CSV File in SharePoint Online. PowerShell to Bulk Create Folders from a CSV File in SharePoint Online: I got to create a bunch of folders in a SharePoint Online document library! This PowerShell script takes folder names from a CSV file and…

Read more

SharePoint Online: Migrate a Folder with Sub-Folders and Files to SharePoint Online using PowerShell

Requirement: Migrate a folder with its sub-folders and files to SharePoint Online using PowerShell. PowerShell to copy a Folder with Its Sub-Folders and Files to SharePoint Online: Here is the PnP PowerShell to copy all files and sub-folders from a given folder from a local drive (or network drive) to SharePoint Online….

Read more

SharePoint Online: Get Document Library Inventory (Folder-SubFolder-File Structure) using PowerShell

Requirement: Get the file-folder structure of a SharePoint document library and export to CSV. SharePoint Online: PowerShell to get the Document Library Inventory Let’s export all folders, sub-folders, and files structure from a SharePoint Online document library to a CSV file: Get File-Folder Structure in a Document Library using PnP PowerShell Similarly,…

Read more