Update-SPSecureStoreApplicationServerKey

同步處理 Microsoft SharePoint Server 上的金鑰與 Secure Store 主要金鑰。

Syntax

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

Description

Cmdlet 會 Update-SPSecureStoreApplicationServerKey 將 SharePoint 伺服器上的金鑰與 Secure Store 服務資料庫的主要金鑰同步。

符合下列情況時,即需更新伺服器金鑰:

--將執行 Secure Store 服務實例的新 SharePoint 伺服器已加入伺服器陣列。 --由於伺服器或網路問題) ,儲存在伺服器中的金鑰不是目前 Secure Store 服務資料庫 (所需的金鑰。 --主要金鑰已更新,但在傳播新金鑰期間,此程式會在一或多部伺服器上失敗。

如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet

範例

------------------範例------------------

$newPassPhrase = "abcDEF123!"
$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'Secure Store Service Application Proxy'}
Update-SPSecureStoreApplicationServerKey -ServiceApplicationProxy $proxy -Passphrase $newPassPhrase

此範例會同步處理 SharePoint Server 上的伺服器金鑰複雜密碼與 Secure Store Service 資料庫的主要金鑰。

參數

-AssignmentCollection

管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

使用 Global 參數時,所有物件會包含在全域儲存區內。 如果不立即使用物件,或使用 Stop-SPAssignment 命令加以捨棄,則可能會有記憶體不足的狀況發生。

Type:SPAssignmentCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Passphrase

指定 Secure Store Service 資料庫所使用的複雜密碼。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ServiceApplicationProxy

指定包含要同步處理之伺服器金鑰的服務應用程式 Proxy。

Type:SPServiceApplicationProxyPipeBind
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition