Created
March 30, 2015 07:52
-
-
Save kasuken/3e407ae74d82e06bf0b5 to your computer and use it in GitHub Desktop.
Disable Minimal Download Strategy in all Site Collections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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