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.
There are three variety of Powershell cmdlet modules available for SharePoint
|SharePoint Version||Command to install|
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