SharePoint Online: Set Hub Site Association using PowerShell

How to Configure Hub Site Association in SharePoint Online using PowerShell? Hub sites in SharePoint Online is a new way to organize related sites together into centralized portals based on organizational hierarchy. More on Hub site is How to Configure Hub Sites in SharePoint Online? Set Hub Site Association in SharePoint Online…

Read more

How to Get Office 365 Group Members using PowerShell?

Requirement: Get Members of Office 365 Group using PowerShell How to Get Office 365 Group Members? To get a list of members in Office 365 group from Microsoft 365 admin center, Log in to the Microsoft 365 Admin Center site: https://admin.microsoft.com Expand Groups and Click on the Groups link in the left…

Read more

SharePoint Online: Delete All Files Older than 30 Days in a Document Library using PowerShell

Requirement: Delete All Files Older than 30 Days in a SharePoint Online Document Library. PowerShell to Delete Files Older than 30 Days in SharePoint Online I had to remove all files older than 30 days from a SharePoint Online document library. This PowerShell lets you remove all files created 30 days ago…

Read more

SharePoint Online: PowerShell to Bulk Create Folders in a Document Library from a CSV File

Requirement: Create Multiple Folders in a Document Library from a CSV File in SharePoint Online. PowerShell to Bulk Create Folders from a CSV File in SharePoint Online: I got to create a bunch of folders in a SharePoint Online document library! This PowerShell script takes folder names from a CSV file and…

Read more

Add a Notification Message in Top Banner of the SharePoint Site using PowerShell

Requirement: Add a message to top banner area of a SharePoint site collection PowerShell to Add Site Notification Message in SharePoint: After the migration from SharePoint 2013 to SharePoint 2016, we wanted to add a message at the top banner of a migrated site. To Set a notification at the web level,…

Read more

SharePoint Online: Find Unused Lists based on Last Modified Date

Requirement: Find Unused SharePoint Online Lists based on Last Modified Date How to Get the List Last Modified Date in SharePoint Online? Go to the “Site Contents” page (https://tenant.sharepoint.com/_layouts/15/viewlsts.aspx) of the site either from the left navigation or from the site settings menu of the site, which lets you get the last…

Read more

How to Configure Document ID Service Feature in SharePoint Online?

What is Document ID Service in SharePoint Online? The Document ID service in SharePoint Online automatically generates and assigns a unique number to each document which can be used to locate that document anywhere within the site collection. Once the uploaded document gets a unique number, a URL is also formed by…

Read more

PnP PowerShell: Connect-PnPOnline using ClientID and ClientSecret

Requirement: Connect to SharePoint Online using PnP PowerShell Connect-PnPOnline with AppID and AppSecret I have a PnP PowerShell script scheduled in the Windows Task scheduler that runs every 5 minutes. I need the script to connect to SharePoint Online unattended. Although I can store user names and passwords in the script, I…

Read more

SharePoint Online: How to Delete a List Template using PowerShell?

Requirement: Delete list template in SharePoint Online How to delete a list template SharePoint Online? To remove a list template in SharePoint Online, do the following: Login to your SharePoint Online site collection (List templates are scoped at site collection level) >> Click on Settings >> Site Settings On the Site Settings…

Read more

SharePoint Online: How to Change the Header Banner Image in Modern Site Pages?

Requirement: Change the Header Banner Image in Modern Site Pages How to Change the Header Background image in SharePoint Online Site Page? Here is how to change the default header image on the ‘Site Page’ on SharePoint Online: Navigate to the modern site page. E.g. https://crescent.sharepoint.com/sites/marketing/SitePages/About-Us.aspx Click on the “Edit” button on…

Read more