维护SharePoint Application期间,在执行SharePoint Configuration时候遇到错误 "An exception of type System.Reflection.TargetInvocationException was thrown. Additional exception information: Exception has been thrown by the target of an invocation."
经过排查,发现是管理SharePoint server的account有invalid导致。
可以通过下面方式处理:
1. 使用admin打开SharePoint Management Shell并执行
Get-SPManagedAccount | ? {$_.PasswordExpiration -eq $null}
2. 找到有问题的account,并执行下面语句remove
Remove-SPManagedAccount -Identity AD\account
3. 到SharePoint Central Adminstration -> Security -> Service Accounts管理更新service account
4. 重新run SharePoint Configuration,可以正常完成,问题解决。
感谢阅读。