cls
$featureid = 'a7a2793e-67cd-4dc1-9fd0-43f61581207a'
$webapps = Get-spWebApplication
foreach($webapp in $webapps)
{
foreach($site in $webapp.Sites)
{
foreach($webapp in $site.AllWebs)
{
Disable-SPFeature –identity $featureid -Confirm:$false -URL $webapp.url
}
}
}
如何找到Feature的id:
Get-SPFeature –Limit ALL | Where-Object { $_.displayname -eq 'FollowingContent'}