RestoreEncryptionKey Method (WMI MSReportServer_ConfigurationSetting)
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Reapplies the specified encryption key to the report server database.
Public Sub RestoreEncryptionKey(ByRef KeyFile() As Integer, _ ByRef Length As Int32, ByVal Password As String, _ ByRef HRESULT As Int32, ByRef ExtendedErrors() As String)
If an entry already exists for the report server in the report server database, it is deleted. The new entry is then created using the specified encryption key and the report server’s public key.
The method is most effective when called after the DeleteEncryptionKey method, which clears the list of encryption keys.