Update-SPRepopulateMicroblogFeedCache
重新整理微Blog 摘要快取。
Syntax
Update-SPRepopulateMicroblogFeedCache
[-AccountName <String>]
-ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
[-AssignmentCollection <SPAssignmentCollection>]
[-SiteSubscription <SPSiteSubscriptionPipeBind>]
[-SiteUrl <String>]
[<CommonParameters>]
Update-SPRepopulateMicroblogFeedCache
[-AccountName <String>]
-ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
[-AssignmentCollection <SPAssignmentCollection>]
[-SiteSubscription <SPSiteSubscriptionPipeBind>]
[-SiteUrl <String>]
[<CommonParameters>]
Update-SPRepopulateMicroblogFeedCache
-ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
[-AssignmentCollection <SPAssignmentCollection>]
-SiteSubscription <SPSiteSubscriptionPipeBind>
-ListId <Guid>
-ListRootFolderUrl <String>
-SiteId <Guid>
-WebId <Guid>
[<CommonParameters>]
Description
使用 Cmdlet Update-SPRepopulateMicroblogFeedCache
重新整理指定使用者的摘要。
它可以在自動重新整理失敗或還原為舊版使用者個人網站的案例中使用。
當您重新整理快取時, Update-SPRepopulateMicroblogLMTCache
應該先執行 Cmdlet,然後 Update-SPRepopulateMicroblogFeedCache
再執行 Cmdlet。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
------------EXAMPLE 1------------
$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -AccountName contoso\userName
此範例會使用 AccountName 參數重新整理特定使用者的摘要。
------------EXAMPLE 2------------
$site = (Get-SPWebApplication -IncludeCentralAdministration | ?{$_.IsAdministrationWebApplication -eq $true}).Sites[0]
$context = Get-SPServiceContext $site
$upm = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
$profiles = $upm.GetEnumerator()
$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
while($profiles.MoveNext()) {
$profile = $profiles.Current
Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -AccountName $profile.AccountName }
此範例會重新整理 User Profile Service Application 中所有使用者的摘要。
------------EXAMPLE 3------------
Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -SiteUrl https://sharepoint.contoso.com
此範例會重新整理網站上 https://sharepoint.contoso.com 的摘要。
參數
-AccountName
指定使用者設定檔服務應用程式的使用者帳戶名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AssignmentCollection
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
使用 Global 參數時,所有物件會包含在全域儲存區內。
如果不立即使用物件,或使用 Stop-SPAssignment
命令加以捨棄,則可能會有記憶體不足的狀況發生。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ListId
FollowableList 的 ListId。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-ListRootFolderUrl
FollowableList 的 RootFolderUrl。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-ProfileServiceApplicationProxy
指定要更新的 User Profile Service 應用程式 Proxy。
其類型必須為下列格式之一:
--有效的 GUID,格式為 12345678-90ab-cdef-1234-567890bcdefgh --服務應用程式 Proxy (的有效名稱,例如 UserProfileSvcProxy1) --有效 SPServiceApplicationProxy 物件的實例
Type: | SPServiceApplicationProxyPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-SiteId
包含 FollowableList 的 SiteId。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-SiteSubscription
指定此服務應該在哪個帳戶下執行。 此參數在主控環境中是必要的,在非主控環境中則為選用。
Type: | SPSiteSubscriptionPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-SiteUrl
指定要重新填入網站摘要的網站 URL。 如果您未指定此參數,則必須指定 AccountName 參數。 如果未指定任何參數,則會顯示錯誤訊息。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-WebId
包含 FollowableList 的 WebId。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |