File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
sharepoint/sharepoint-ps/sharepoint-server Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -51,15 +51,27 @@ PS C:\>$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile
51
51
PS C:\>Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -AccountName contoso\userName
52
52
```
53
53
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.
55
55
56
56
### ------------EXAMPLE 2------------
57
57
```
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()
58
62
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 }
60
66
```
61
67
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 .
63
75
64
76
## PARAMETERS
65
77
You can’t perform that action at this time.
0 commit comments