Skip to content

Instantly share code, notes, and snippets.

@kasuken
Created March 30, 2015 07:52
Show Gist options
  • Save kasuken/3e407ae74d82e06bf0b5 to your computer and use it in GitHub Desktop.
Save kasuken/3e407ae74d82e06bf0b5 to your computer and use it in GitHub Desktop.
Disable Minimal Download Strategy in all Site Collections
$webApp = Get-SPWebApplication -Identity http://webapplication:8080
$siteCollection =$webApp | Get-SPSite -limit all
foreach ($site in $siteCollection)
{
$webs = $site | Get-SPweb -limit all
foreach ($web in $webs)
{
$url = $web.URL
write-host "Web URL = " $url -foregroundcolor "blue"
Disable-SPFeature -Identity "87294c72-f260-42f3-a41b-981a2ffce37a" -url $url -Confirm:$False
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment