Skip to content

Instantly share code, notes, and snippets.

@kasuken
Created January 6, 2020 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasuken/70e3cabd073f652006726f5968136c0e to your computer and use it in GitHub Desktop.
Save kasuken/70e3cabd073f652006726f5968136c0e to your computer and use it in GitHub Desktop.
Disable footer on Office 365 Communication Sites
$orgName = "M365cm599554"
$userCredential = Get-Credential
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
$sites = Get-SPOSite -Template SITEPAGEPUBLISHING#0
foreach ($site in $sites) {
Connect-PnPOnline -Url $site.url -Credentials $userCredential
$web = Get-PnPWeb
$web.FooterEnabled = $false
$web.Update()
Invoke-PnPQuery
Write-Host "Footer Disable on " $site.url
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment