隐藏SharePoint 2013 team sites里的follow按钮

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'}

 

posted @ 2014-03-21 15:39  疯吻IT  阅读(311)  评论(0编辑  收藏  举报