Update-SPSecureStoreApplicationServerKey

 

适用于: SharePoint Server 2010

上一次修改主题: 2015-03-09

使用安全存储主密钥同步 Microsoft SharePoint Server 上的密钥。

Syntax

Update-SPSecureStoreApplicationServerKey -Passphrase <String> -ServiceApplicationProxy <SPServiceApplicationProxyPipeBind> [-AssignmentCollection <SPAssignmentCollection>]

详细说明

Update-SPSecureStoreApplicationServerKey cmdlet 使用安全存储服务数据库的主密钥同步 SharePoint Server 上的密钥。

在以下情况下,需要更新服务器密钥:

  • 将运行安全存储服务实例的新 SharePoint Server 加入到服务器场中。

  • 服务器中存储的密钥并非是当前安全存储服务数据库所需的密钥(由服务器或网络问题所致)。

  • 已更新主密钥,但是在传播新密钥的过程中,此过程在一台或多台服务器上失败。

Parameters

参数 是否必需 类型 说明

Passphrase

必需

System.String

指定用于安全存储服务数据库的密码。

ServiceApplicationProxy

必需

Microsoft.SharePoint.PowerShell.SPServiceApplicationProxyPipeBind

指定包含要同步的服务器密钥的服务应用程序的代理。

AssignmentCollection

可选

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

管理对象以便正确进行处理。使用 SPWebSPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。在使用 SPWebSPSiteSPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。

备注

在使用 Global 参数时,所有对象均包含在全局存储中。如果未立即使用对象,或未通过使用 Stop-SPAssignment 命令来处理对象,则可能会发生内存不足的情况。

输入类型

返回类型

Example

------------------示例------------------

$newPassPhrase = "abcDEF123!"

Update-SPSecureStoreApplicationServerKey -ServiceApplicationProxy $contosoProxy -Passphrase $newPassPhrase

此示例使用安全存储服务数据库的主密钥同步 SharePoint Server 上的服务器密钥的密码。

See Also

Reference

Update-SPSecureStoreMasterKey