Create a PowerShell script with the following. Make sure your MySite host location is correct.
Add-PSSnapin Microsoft.SharePoint.PowerShell Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation http://mysitehostlocation/MySite/
- Save the file as a .ps1 file on your SharePoint 2010 server – C:\Scripts\UpdateSPPhotos.ps1
- Create a daily scheduled task on the SharePoint 2010 server that runs at the SharePoint Farm Administrator account.
- Configure the action as follows
- Program/script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Arguments: -NonInteractive -NoProfile -File “C:\Scripts\UpdateSPPhotos.ps1”