SharePoint Online: Remove User Permission from All List Items using PowerShell

Requirement: Remove a user from all item permissions in a list. How to remove user permissions from a document or item in SharePoint Online? When a user no longer requires access to the documents in a document library, it may be necessary to remove their permissions. To remove a user’s permissions from…

Read more

SharePoint Online: Grant Permission to All Files in a Folder using PowerShell

Requirement: Grant Permission to All Files in a Folder in SharePoint Online. PowerShell to Set Permission to each File in a Folder Managing the permissions of large numbers of files in SharePoint can be a time-consuming and complex task, especially when it comes to granting or revoking access to multiple files at…

Read more

SharePoint Online: Get All Folders from List or Library using PowerShell

Requirement: Get All Folders from a SharePoint Online list using PowerShell. PowerShell to Get All Folders in a SharePoint Online List In many cases, you may need to get a list of all folders within a SharePoint Online list or library. This can be accomplished using PowerShell. This blog post will show…

Read more

SharePoint Online: Delete Empty Folders using PowerShell

Requirement: Delete Empty Folders in SharePoint Online Document Library using PowerShell. Are you facing an issue with a lot of empty folders in your SharePoint Online site? And, if you’re like me, you probably wondered if there was an easier way to do it. Because identifying and deleting them using the web…

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. How to move files between folders in SharePoint Online? In SharePoint Online, folders play a crucial role in organizing and categorizing content, making it easier to find what you need. However, as your organization grows and evolves, the need to move…

Read more

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: Filter List View to Show Files Only from a Sub-Folder using PowerShell

Requirement: Set a list view filter to show files from a specific folder in a SharePoint Online document library. How to Set the View Filter to Show Files from a Folder? Unfortunately, The SharePoint web user interface doesn’t allow us to set a view filter based on folders or sub-folders. While it…

Read more

SharePoint Online: Copy Folder Structure between Document Libraries using PowerShell

Requirement: Copy Folder Structure between document libraries in SharePoint Online. PowerShell to Copy Folder Structure between SharePoint Online Document Libraries: Ever wanted to clone a folder, sub-folder structure between two SharePoint Online document libraries? Well, here is the PowerShell script to copy folder structure from one document library to another – without…

Read more

SharePoint Online: Upload Folder Structure using PowerShell

Requirement: Upload folder structure to SharePoint Online using PowerShell. PowerShell to Upload Folder Structure to SharePoint Online: I had to clone a folder structure from a local drive to SharePoint Online. Uploading a folder structure to SharePoint Online can be a tedious process, especially if you have a lot of files and…

Read more