Check If a Folder is Empty in PowerShell

Requirement: Check If a Folder is Empty using PowerShell PowerShell is a powerful tool that allows users to automate tasks and manage systems efficiently. One common task that administrators need to perform is checking if a folder is empty. Whether trying to free up space on your hard drive or need to…

Read more

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

Requirement: Display all files without folders in the SharePoint Online document library. 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 wish to use Metadata instead of Folders! How…

Read more

SharePoint Online: Grant Folder Permissions from a CSV File using PowerShell

Requirement: Set permissions to Multiple Folders from a CSV File in SharePoint Online. PowerShell to Set Folder Permissions in Bulk from a CSV File in SharePoint Online You can Set folder permissions in SharePoint Online document library using the web browser interface or PowerShell. In this article, let’s see how to use…

Read more

PowerShell to Check if Folder Exists

Requirement: Check if a folder exists in PowerShell. How to check if a folder exists in PowerShell? In PowerShell, checking if a folder exists is a very common task. You may need to check if a folder exists before performing actions, such as creating a new folder, deleting a folder, renaming a…

Read more

SharePoint Online: Restore a Deleted Folder using PowerShell

Requirement: Recover a deleted folder in SharePoint Online. How to Recover a Deleted Folder in SharePoint Online? If you’ve ever mistakenly deleted a folder in SharePoint Online, you know the panic that sets in. Thankfully, it’s possible to recover a deleted folder, as long as it’s less than 93 days since it…

Read more

How to Delete a Folder in PowerShell?

Requirement: Remove a Directory in PowerShell. PowerShell to Delete a Folder Have you ever faced a situation where you needed to delete a bunch of folders all at once? Or perhaps a complex scenario, where you had to eliminate a series of directories based on a specific pattern or condition? If you’ve…

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? Have you ever wanted to bulk delete multiple folders from SharePoint Online to clean up your site or remove outdated or unwanted content? If so, you’re probably familiar with the challenge of selecting each folder and…

Read more

OneDrive for Business: Create a Folder using PowerShell

Requirement: Create a folder in OneDrive for Business site. How to create a Folder in OneDrive for Business? OneDrive is a cloud-based storage service provided by Microsoft that allows individuals and teams to store, share and collaborate on files from anywhere. If you are using OneDrive for Business, you may want to…

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