Update SharePoint Web title using PnP Powershell

This blog shows you how to update the title for the SharePoint website using PnP Powershell

Today I started to use PnP Powershell for my day to day activities. It is very simple and great after start using it and very lighter, when compared with other APIs. This PnP Powershell is built using SharePoint CSOM against SharePoint Online & On-Premise environment.

Visit SharePoint/PnPPowerShell from Github to know more about PnP Powershell and you can view all the powershell cmdlets from PnPPowershell Documentation

There are three variety of Powershell cmdlet modules available for SharePoint

SharePoint Version Command to install
SharePoint Online Install-Module SharePointPnPPowerShellOnline
SharePoint 2016 Install-Module SharePointPnPPowerShell2016
SharePoint 2013 Install-Module SharePointPnPPowerShell2013

In this blog, I’m giving you an example based on SharePoint online. So I have installed the online module called “SharePointPnPPowerShellOnline”.

In the below example command, I’ll be updating the title value for the SharePoint website.

PS:> Connect-PnPOnline -Url https://ktskumar.sharepoint.com/mywork -Credentials (Get-Credential)
PS:> Set-PnPWeb -Title "My Work"

By using Set-PnPWeb command, we can update values for the SiteLogoUrl, AlternateCssUrl, Title, Description, MasterUrl, CustomMasterUrl

I have run the below command to get the updated title

PS:> Get-PnPWeb -Title

Shantha Kumar
Shantha Kumar
Articles: 295