RUN AS FARMADMIN!!!!!
$sync_db = "PROD_SA_UPS_Sync"
$ups_service_app_name = "User Profile Service"
net stop sptimerv4
$syncdb=Get-SPDatabase | where {$_.Name -eq $sync_db}
$syncdb.Unprovision()
$syncdb.Status='Offline'
$ups = Get-SPServiceApplication | where {$_.Displayname -eq $ups_service_app_name }
$ups.ResetSynchronizationMachine()
$ups.ResetSynchronizationDatabase()
$syncdb.Provision()
net start sptimerv4
Start the UserProfileSyncService again
Is that for sp 2010 or 2013?
ReplyDeleteGreat work thanks a lot!
ReplyDeleteWorks on SP2013
ReplyDeleteConcur, works on sp2013, thank you very much!
ReplyDeleteGreat..works fine
ReplyDeleteBeen having this issue in production for the last nine months.This fixed it.You may look like you're twelve but you're pretty awesome.
ReplyDeleteThanks!
Thanks a lot... this solution worked like a magic
ReplyDeleteThank You...You saved my job Sir:)...May God Bless You!!!
ReplyDelete