I am using the PictureProfileUpload3.1.ps1 to import user profile images from AD into Sharepoint 2019 On-Premises. The script runs fine in our Dev and PROD environments, but in UAT we get the following error:
Update-SPProfilePhotoStore : The trial period for this product has expired.
At D:DevOpsSharePointAdminScriptsprofilePictureUploadPictureUpload1.3.ps1:386 char:1
- Update-SPProfilePhotoStore -MySiteHostLocation $site -CreateThumbnail …
+ CategoryInfo : InvalidData: (Microsoft.Offic...ofilePhotoStore:SPCmdletUserProfilePhotoStore) (Update-SPProfilePhotoStore), SPException + FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell.SPCmdletUserProfilePhotoStore
These farms were all setup with the same enterprise license key with spautoinstaller. On the Convet License Type screen in CA I see the following in all evnironments:
SharePoint Server with Enterprise Client Access License
The UAT environment is patched to the September CU and Language patch. Config Wizard has been run on all servers in the farm, and I have run psconfig.exe -cmd secureresources as recommended by a few threads ,which makes no difference at all.
Any advice is much appreciated.