user profile services提示“BAIL: MMS(7116): sql.cpp(8490): 0x80231334 (The sql connection string has unsupported values.)”解决办法

user profile services的2个服务Forefront Identity Manager Service 和 Forefront Identity Manager Synchronization Service无法启动提示如下图错误:

image

 

执行如下powershell脚本:

利用下面的命令来获取到当前服务器场所有的UPS服务实例:

$UPSInstances = Get-SPServiceInstance | ? {$_.GetType().ToString() -eq "Microsoft.Office.Server.Administration.UserProfileServiceInstance"}

利用下面命令来获得状态异常的UPS服务实例:

$StuckUPSInstances = $UPSInstances | ? {$_.Status -ne "Online"}

例如下面命令来重新初始化/启动UPS服务实例:

$StuckUPSInstances | ForEach-Object -Process { $_ | Start-SPServiceInstance }

 

等一会儿,就会看到服务就重新启动好了。

image

 

image

原文地址:https://www.cnblogs.com/love007/p/4169898.html