解密期间的Sharepoint错误

时间:2014-04-24 13:27:06

标签: powershell sharepoint

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

PS C:\Users\SPAdmin> $securePassPhrase =(ConvertTo-SecureString -String "P@$$w0r
d" -AsPlaintext -Force)
PS C:\Users\SPAdmin> Connect-SPConfigurationDatabase -DatabaseName "SharepointCo
nfig" -DatabaseServer "AD\MSSQLSERVER" -PassPhrase $securePassPhrase

Connect-SPConfigurationDatabase : Error during decryption. Ensure the passphrase is correct.
At line:1 char:32
+ Connect-SPConfigurationDatabase <<<<  -DatabaseName "SharepointConfig" -Data
baseServer "AD\MSSQLSERVER" -PassPhrase $securePassPhrase
+ CategoryInfo          : InvalidData: (Microsoft.Share...urationDatabase:
SPCmdletConnectSPConfigurationDatabase) [Connect-SPConfigurationDatabase],
ArgumentException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletConnectS
PConfigurationDatabase

那么它是如何解决的?

1 个答案:

答案 0 :(得分:0)

分辨率

有几件事情要做,因为错误是“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&#34; KFSQL.krossfarm.com&#34; -database KF-Configdb -passphrase&#34; SP @ 016farm&#34; -localserverrole&#34; Custom&#34;

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