Update-SPRepopulateMicroblogFeedCache

Atualiza o cache do feed de microblog.

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

Use o Update-SPRepopulateMicroblogFeedCache cmdlet para atualizar os feeds de um determinado usuário. Ele pode ser usado em cenários em que a atualização automática falhou ou ao reverter uma versão antiga do site pessoal de um usuário.

Quando você atualiza o cache, o Update-SPRepopulateMicroblogLMTCache cmdlet deve ser executado primeiro e, em seguida, o Update-SPRepopulateMicroblogFeedCache cmdlet segundo.

Para obter as permissões e informações mais recentes sobre o Windows PowerShell para Produtos SharePoint, confira a documentação online em Cmdlets do SharePoint Server.

Exemplos

------------EXEMPLO 1------------

$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -AccountName contoso\userName

Este exemplo atualiza o feed para um usuário específico usando o parâmetro AccountName.

------------EXEMPLO 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 }

Este exemplo atualiza os feeds para todos os usuários no Aplicativo de Serviço de Perfil de Usuário.

------------EXEMPLO 3------------

Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $proxy -SiteUrl https://sharepoint.contoso.com

Este exemplo atualiza o feed no site https://sharepoint.contoso.com.

Parâmetros

-AccountName

Especifica o nome da conta do usuário para o aplicativo Serviço de Perfil de Usuário.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ListId

A ListId da FollowableList.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ListRootFolderUrl

O RootFolderUrl da FollowableList.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ProfileServiceApplicationProxy

Especifica o proxy de aplicativo do Serviço de Perfil de Usuário que deve ser atualizado.

O tipo deve estar em um dos seguintes formatos:

--Um GUID válido, no formato 12345678-90ab-cdef-1234-567890bcdefgh --Um nome válido de um proxy de aplicativo de serviço (por exemplo, UserProfileSvcProxy1) --Uma instância de um objeto SPServiceApplicationProxy válido

Type:SPServiceApplicationProxyPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SiteId

O SiteId que contém a FollowableList.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SiteSubscription

Especifica a conta com a qual esse serviço deve ser executado. Esse parâmetro é obrigatório em um ambiente hospedado e opcional em um ambiente não hospedado.

Type:SPSiteSubscriptionPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SiteUrl

Specifies the Site's URL to repopulate the site feeds. If you don't specify this parameter, you must specify the AccountName parameter. If neither parameter is specified, an error message is displayed.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WebId

A WebId que contém a FollowableList.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition