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.
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.
- PS: > $cred = Get-Credential
- PS: > Connect-PnPOnline -Url https://ktskumar.sharepoint.com -Credential $cred
- PS: > Get-PnPList -Identity Lists/TestList
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
- PS: > $cred = Get-CredentialPS: > Connect-PnPOnline -Url https://ktskumar.sharepoint.com -Credential $cred
- PS: > Set-PnPList -Identity 'Test List' -Title 'New Test List'

Join the conversation! Your thoughts help the community grow.