RestoreEncryptionKey Method (WMI MSReportServer_ConfigurationSetting)
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.
Platform: Windows Server 2003, Datacenter Edition; Windows Server 2003, Enterprise Edition; Windows Server 2003, Standard Edition; Windows Vista; Windows XP Professional with Service Pack 2 (SP2) or Service Pack 1 (SP1); or Windows 2000 (all versions)