Skip to main content

Posts

Showing posts from November, 2011

SharePoint 2010 Compile All Audiences

This was a pain figuring out so many posts were wrong. Thanks to Jasper (http://blog.repsaj.nl/?p=258) for the corrections needed to get this working. I am very close to having my FIM 2010 implementation call the SharePoint 2010 FIM run profiles and then compile all the audiences on a more than once a day schedule.

Update 2011-11-17: Small change, I couldn't get the compile all call to work, so I resorted to compiling each individually.
Add-PSSnapin Microsoft.SharePoint.PowerShell  $AUDIENCEJOB_START       = '1'$AUDIENCEJOB_INCREMENTAL = '0'$site          = Get-SPSite 'https://www.mywegmansconnect.com'$context       = Get-SPServiceContext $site$proxy         = $context.GetDefaultProxy([Microsoft.Office.Server.Audience.AudienceJob].Assembly.GetType('Microsoft.Office.Server.Administration.UserProfileApplicationProxy'))  $applicationId = $proxy.GetType().GetProperty('UserProfileApplication', [System.Reflection.BindingFlags]'NonPublic, Instan…