cls $featureID = (Get-SPFeature | ?{ ($_.DisplayName -eq "SiteNotebook") -and ( $_.Scope -eq "Web")}).id $sites = Get-SPSite foreach($Site in $sites) { $webs = $Site.AllWebs foreach($Web in $webs) { Write-Host $Web.Url Disable-SPFeature -Identity $featureID -Url $Web.Url -Confirm:$false } }