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

How to Create a Folder in SharePoint: A Quick Guide

Imagine it’s late on a Friday afternoon, and your manager sends you a flurry of documents to organize on your company’s SharePoint site before the weekend. You’re staring at a mix of project plans, reports, and miscellaneous files cluttering your screen. You know that without proper organization, these documents will become as…

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

Get All Files from a Folder using PowerShell

As IT professionals, managing files and folders is an inevitable part of our daily responsibilities. From system-generated log files to user-created spreadsheets and documents, the number of files we handle often reaches into the tens, if not hundreds of thousands. Locating specific files quickly then becomes critical for tasks like troubleshooting, reporting,…

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