Skip to content

Commit 89e6eec

Browse files
authored
Merge pull request MicrosoftDocs#2229 from tseward/patch-11
Update Update-SPRepopulateMicroblogFeedCache.md
2 parents b7bf67e + fe0514d commit 89e6eec

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Update-SPRepopulateMicroblogFeedCache.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,27 @@ PS C:\>$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile
5151
PS C:\>Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -AccountName contoso\userName
5252
```
5353

54-
This example refreshes the feeds for a specific user by using the AccountName parameter.
54+
This example refreshes the feed for a specific user by using the AccountName parameter.
5555

5656
### ------------EXAMPLE 2------------
5757
```
58+
PS C:\>$site = (Get-SPWebApplication -IncludeCentralAdministration | ?{$_.IsAdministrationWebApplication -eq $true}).Sites[0]
59+
PS C:\>$context = Get-SPServiceContext $site
60+
PS C:\>$upm = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
61+
PS C:\>$profiles = $upm.GetEnumerator()
5862
PS C:\>$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
59-
PS C:\>Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -AccountName contoso\userName -SiteSubscription 0C37852B-34D0-418e-91C6-2AC25AF4BE5B
63+
PS C:\>while($profiles.MoveNext()) {
64+
$profile = $profiles.Current
65+
Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -AccountName $profile.AccountName }
6066
```
6167

62-
This example refreshes the feeds for a specific user by using the AccountName parameter.
68+
This example refreshes the feeds for all users in the User Profile Service Application.
69+
70+
### ------------EXAMPLE 3------------
71+
```
72+
PS C:\>Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -SiteUrl https://sharepoint.contoso.com
73+
```
74+
This example refreshes the feed on the site https://sharepoint.contoso.com.
6375

6476
## PARAMETERS
6577

0 commit comments

Comments
 (0)