when creating user profile service application using powershell script
run the script using setup(admin) account.
1. have to add farm account as local administrator at the beginning and remove it after installation.
after adding the account have to restart the timerjob if not will see this exception
Exception calling “SetSynchronizationMachine” with “4” argument(s): “An update conflict has occurred,
and you must re-try this action. The object UserProfileApplication Name=User Profile Service was
updated by GREENCLOUD\gc_sp_admin, in the powershell_ise (1352) process, on machine DEVSP2013V6. View
the tracing log for more information about the conflict.”
2. the syncdb’s farm account default schema is not dbo so have to change manually
or only run the script using farm account only when creating the userprofile service.(use start-process)
Start-Process “powershell.exe” -NoNewWindow -ArgumentList “.\2.31.CreateUPSwithFarmAccount.ps1” -Credential $vFarmAcctCred -LoadUserProfile -Wait
Avoiding the Default Schema issue when creating the User Profile Service Application using Windows PowerShell
Rational Guide to Multi Tenancy with SharePoint 2010, Part Five: Creating Partitioned Service Applications
Rational Guide to implementing SharePoint Server 2010 User Profile Synchronization