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

上一篇:HackDemo.java


下一篇:lintcode: 最长无重复字符的子串