解密过程中出现Sharepoint错误



我想以编程方式使用powershell将服务器添加到sharepoint 2010场。所以。当我使用产品配置向导时,它已成功添加到服务器场。但当我这样做时(在powershell上),程序会抛出异常。

PS C:UsersSPAdmin> $securePassPhrase =(ConvertTo-SecureString -String "P@$$w0r
d" -AsPlaintext -Force)
PS C:UsersSPAdmin> Connect-SPConfigurationDatabase -DatabaseName "SharepointCo
nfig" -DatabaseServer "ADMSSQLSERVER" -PassPhrase $securePassPhrase
Connect-SPConfigurationDatabase : Error during decryption. Ensure the passphrase is correct.
At line:1 char:32
+ Connect-SPConfigurationDatabase <<<<  -DatabaseName "SharepointConfig" -Data
baseServer "ADMSSQLSERVER" -PassPhrase $securePassPhrase
+ CategoryInfo          : InvalidData: (Microsoft.Share...urationDatabase:
SPCmdletConnectSPConfigurationDatabase) [Connect-SPConfigurationDatabase],
ArgumentException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletConnectS
PConfigurationDatabase

那么它是如何修复的呢?

分辨率

有几件事要做,因为错误显示"SharePoint无法解密密码短语"。

Make sure farm admin account has DBO rights on the Configuration Database,
Make sure you login with farm admin. If any other account ( i.e. install account) then that account should also have DBO on Config Database.
Clear the Configuration Cache on the SharePoint Servers (all servers in the farm).
    If you want to do manually follow this: Clearing the Configuration Cache for SharePoint Jump
    Or you can use the script from here: Clear Configuration Cache Jump 

完成以上操作后,请再次运行配置向导,首选先以PSConfig的身份运行。psconfig.exe-cmd configdb-connect-server"KFSQL.kossfarm.com"-database KF configdb-passphrase"SP@016farm"-localserverrole​"自定义"

成功完成后,请通过GUI运行SharePoint产品和技术配置向导。

最新更新