共用方式為


ReencryptSecureInformation 方法 (WMI MSReportServer_ConfigurationSetting)

產生新的加密金鑰,並且使用這個新的金鑰來重新加密目錄中的所有安全資訊。

語法

Public Sub ReencryptSecureInformation(ByRef HRESULT as Int32, ByRef ExtendedErrors() As String)
public void ReencryptSecureInformation (out Int32 HRESULT, out string[] ExtendedErrors);

參數

  • HRESULT
    [out] 指出呼叫成功或失敗的值。

  • ExtendedErrors[]
    [out] 包含呼叫所傳回之其他錯誤的字串陣列。

傳回值

傳回 HRESULT,指出方法呼叫成功或失敗。值為 0 表示方法呼叫成功。非零值則表示已發生錯誤。

備註

ReencryptSecureInformation 方法可讓管理員將現有的加密金鑰取代成新的金鑰。

叫用這個方法時,報表伺服器就會產生新的加密金鑰,並且逐一查看所有加密的內容,以便使用新的加密金鑰來重新加密內容。

傳遞延伸模組可以將安全資訊儲存在其傳遞設定結構中。呼叫 ReencryptSecureInformation 時,報表伺服器就會載入每個訂閱和對應的傳遞延伸模組,以便重新加密儲存在相關聯設定中的資訊。

如果這個方法是在向外延展部署中的電腦上執行,則向外延展部署中的每部電腦都必須再次初始化。

需求

命名空間: root\Microsoft\SqlServer\ReportServer\RS_<EncodedInstanceName>\v10\Admin

平台: Windows Server 2003 Datacenter Edition;Windows Server 2003 Enterprise Edition;Windows Server 2003 Standard Edition;Windows Vista;Windows XP Professional Service Pack 2 (SP2) 或 Service Pack 1 (SP1);或 Windows 2000 (所有版本)