$applicationId = (Get-SPServiceApplication -Name 'User Profile Service Application').Id
$AUDIENCEJOB_START = '1'
$AUDIENCEJOB_INCREMENTAL = '0'
[Microsoft.Office.Server.Audience.AudienceJob]::RunAudienceJob(@($applicationId, $AUDIENCEJOB_START, $AUDIENCEJOB_INCREMENTAL))
... with some inspiration from: SharePoint 2010 Compile All Audiences
No comments:
Post a Comment