Document ID nasty error, easy fix:
Nasty error:
Could not look up Document ID due to an error encountered in Microsoft Search Server. Scope in your query does not exist.
Easy fix:
Site settings > Site Collection Administration > Document ID settings > Use this search scope for ID lookup: 'All Sites' > OK.
Friday, October 21, 2016
Tuesday, February 9, 2016
SharePoint 2013 PowerShell - Everyone Unfollow Everyone
$site = Get-SPSite "http://mySiteCollection/"
$serviceContext = Get-SPServiceContext($site)
$profileManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext)
foreach($userProfile in $profileManager.GetEnumerator())
{
$followingManager = new-object Microsoft.Office.Server.Social.SPSocialFollowingManager($userProfile, $serviceContext)
$followed = $followingManager.GetFollowed("Users")
$actorInfo = new-object Microsoft.Office.Server.Social.SPSocialActorInfo
foreach($user in $followed)
{
write-host $userProfile.AccountName 'follows' $user.AccountName
$actorInfo.AccountName = $user.AccountName
$actorInfo.ActorType = "User"
$followingManager.StopFollowing($actorInfo)
}
}
Subscribe to:
Posts (Atom)