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? PowerShell can be your powerful ally when it comes to managing your files and folders in SharePoint Online. I was looking for a way to…

Read more

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

Problem: When trying to import the PnP PowerShell module, I got an error message “Import-Module: The specified module ‘SharePointPnPPowerShellOnline’ was not loaded because no valid module file was found in any module directory”. You may face this trouble for other PowerShell modules as well. E.g. Root Cause: The “Import-Module : No valid…

Read more

How to use an Encrypted Password File in PowerShell Scripts?

Requirement: Use an 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

Site Collection Administrator in SharePoint Online – A Comprehensive Guide!

Introduction The SharePoint Online site collection administrator is responsible for managing the SharePoint Online site collection. This includes creating and managing sites, configuring site settings, managing user access, etc. When creating a site collection, a Global Administrator or SharePoint Online Administrator specifies the primary site collection administrator for the site. Learn the…

Read more

Getting Started with Home Site in SharePoint Online

What is Home Site in SharePoint Online? Home site in SharePoint Online is the top landing page for your organization at https://tenant.sharepoint.com/_layouts/15/sharepoint.aspx. The new Set-SPOHomeSite cmdlet sets a modern communication site collection as the SharePoint Online landing page for your organization! So when you click “SharePoint” from the tiles in Office 365…

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 the Microsoft SharePoint Online space is Communication sites! While modern team sites are used for departments/teams to collaborate, The SharePoint Online communication site templates are designed to…

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 organize related sites into centralized portals based on organizational attributes such as projects, teams, concepts, departments, regions, etc. If you are unfamiliar with Hub Sites in Office 365, I’ll…

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…

Read more

Generate SharePoint Online Site Usage Reports using Graph API and PowerShell

Requirement: Generate usage reports for SharePoint Online sites. How to Generate Usage Reports for All SharePoint Online Sites in the Tenant? If you are a SharePoint administrator, you may find it useful to generate reports about how your users use the sites and content. Microsoft has made it easy for you to…

Read more

SharePoint Online: How to Create a Site Design from an Existing Site using PowerShell?

How to Create a Site Design from an existing site in SharePoint Online? With the Get-SPOSiteScriptFromWeb cmdlet, we can create a site design from an existing site collection and then use the site design to create new instances of the site. The cmdlet is a new feature addition to SharePoint Online! It…

Read more