How To Rename The Title Of SharePoint List Using PnP PowerShell

In this blog, we are going to see how to get the SharePoint list and its title and update the title of the SharePoint List using PnP PowerShell commands.

Get-PnPList
PnP Powershell cmdlet is used to get the List and its associated properties.

The below PnPPowerShell command retrieves the SharePoint List based on the Title, UR, and ID. The below example returns the SharePoint List based on the List URL.
  1. PS: > $cred = Get-Credential
  2. PS: > Connect-PnPOnline -Url https://ktskumar.sharepoint.com -Credential $cred
  3. PS: > Get-PnPList -Identity Lists/TestList  
This will return the Title, Id, and the URL as output.

Set-PnPList PnP PowerShell cmdlet is used to update the properties of the List or Library.

The below PnP PowerShell cmdlet will change the title of the Test List to New Test List 
  1. PS: > $cred = Get-Credential
    PS: > Connect-PnPOnline -Url https://ktskumar.sharepoint.com -Credential $cred
  2. PS: > Set-PnPList -Identity 'Test List' -Title 'New Test List'