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

SharePoint Online: Create Multiple Lists from a CSV File using PowerShell

Requirement: Bulk create lists in SharePoint Online from a CSV File. How to Create Multiple lists from CSV File? We can use the combination of CSV and PowerShell to create multiple lists in bulk in SharePoint Online. Here is my CSV File: You can download this CSV here: PowerShell to Create Multiple…

Read more

SharePoint Online: Bulk Delete Files from a CSV using PowerShell

Requirement: Delete multiple files from SharePoint Online document libraries from a CSV using PowerShell. How to Delete Multiple Files in SharePoint Online Site from a CSV file? We have a CSV file with a list of URLs of various files in multiple document libraries in SharePoint Online. I wanted to bulk delete…

Read more

Fix “Import-Module: The specified module was not loaded because no valid module file was found in any module directory” Error

Problem: When trying to import the PnP PowerShell module, got an error message “Import-Module: The specified module ‘SharePointPnPPowerShellOnline’ was not loaded because no valid module file was found in any module directory” Solution: This is because the PowerShell console or ISE is unable to get the module from given module path’s in…

Read more

How to use an Encrypted Password File in PowerShell Scripts?

Requirement: Use a encrypted password file in PowerShell scripts. How to use an Encrypted Password File to Read/Write Credentials in PowerShell? PowerShell modules like PnP PowerShell offers a mechanism to use Windows credentials store to Save and retrieve user name and password to use it in scripts. However, for other PowerShell modules…

Read more

Create a Communication Site in SharePoint Online using PowerShell

Requirement: Create a communication site in SharePoint Online using PowerShell How to create a Communication Site in SharePoint Online? One of the recent addition to SharePoint Online space is Communication sites! The modern SharePoint Online communication site templates are designed to broadcast information to a broader audience such as to an entire…

Read more

PowerShell to Get All Sites Associated with the Hub Sites in SharePoint Online

Requirement: Get hub site association in SharePoint Online using PowerShell SharePoint Online: Get Hub Sites Association using PowerShell SharePoint Online Hub sites help to organize related sites together into centralized portals based on organizational attributes such as projects, teams, concepts, departments, regions, etc. Hub Sites in SharePoint Online are explained in my…

Read more

How to Deploy an App to App Catalog in SharePoint Online?

Requirement: Deploy an app to App Catalog in SharePoint Online. How to add an App to SharePoint Online App Catalog Site? The App Catalog is a centralized repository to manage and deploy custom apps in SharePoint. Apps (either SPFx .sppkg or Add-in .app file) to be uploaded and deployed there is a…

Read more

SharePoint Online: Create Site Design and Site Scripts using PowerShell

What is Site Design and Site Scripts in SharePoint Online? Site design and site scripts are the new way to create site templates in SharePoint Online. Say, you want to create sites with a specific theme, apply a logo, set regional settings, create a list or library in the site, add users,…

Read more