Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Disable footer on Office 365 Communication Sites
$orgName = "M365cm599554"
$userCredential = Get-Credential
Connect-SPOService -Url https://$ -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
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