Skip to content

Set site Title visibility to on/off using PnP? #212

Answered by erwinvanhunen
marcvall asked this question in Q&A
Discussion options

You must be logged in to vote

not yet with the built in cmdlets. However, you can do this:

$web = Get-PnPWeb
$web.HideTitleInHeader = $false
$web.Update()
Invoke-PnPQuery

However, as of tomorrow (2021-02-11, version 1.2.20-nightly) there will be a switch added to Set-PnPWeb

Set-PnPWeb -HideTitleInHeader # to hide the title
Set-PnPWeb -HideTitleInHeader:$true # to make it visible again.

You will have to install the latest nightly to get the updated Set-PnPWeb cmdlet:

Install-Module -Name PnP.PowerShell -AllowPrerelease

To update to a specific version

Install-Module -Name PnP.PowerShell -AllowRerelease -RequiredVersion 1.2.20-nightly

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@marcvall
Comment options

Answer selected by marcvall
Comment options

You must be logged in to vote
1 reply
@ToddKlindt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants