Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by sssreddy for Share Point Activity feed power shell script error

Replace the foreach on userprofiles with this while($profile1.MoveNext()) and $profile1.Current will return you the current user profile. Sample

$upm = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
$iterator = $upm.GetEnumerator()
while($iterator.MoveNext())
{
   Write-Host $iterator.Current.DisplayName
}

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>