Unable to uninstall AD RMS Server Role
hi, i have this error when tring to uninstall AD RMS Server Role i already read some articles before, i already decommisioned the cluster, remove the SCP, remove the IIS WebSite but i still can't uninstall the AD RMS Server Role, the error is : <Informational>: This server might need to be restarted after the removal completes. Active Directory Rights Management Services Active Directory Rights Management Services: Removal failed <Error>: Attempt to perform custom actions before un-installing Active Directory Rights Management Server failed. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) at System.DirectoryServices.PropertyValueCollection.get_Item(Int32 index) at Microsoft.RightsManagementServices.Configuration.ProvisionHelper.GetPort(String strTargetComputer, String strIIsService, String strSiteindex, Boolean fSSL) at Microsoft.RightsManagementServices.Configuration.ProvUtils.GetWebsites(String strTargetComputerName, String strIIsWebService) at Microsoft.RightsManagementServices.Configuration.ProvUtils.IsProvisioned() at Microsoft.RightsManagementServices.Configuration.ProvisioningBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.ProvisionerBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.CmdLineHandler.Run() The following role services were not removed: Active Directory Rights Management Server Please refer to the full log at: 'C:\Windows\logs\ServerManager.log' does anybody know how to fix this issue? thx in advance. -Willy-
July 15th, 2010 7:56am

Hi, Is there anything informative in the C:\Windows\logs\ServerManager.log file? -- Mike Burr
Free Windows Admin Tool Kit Click here and download it now
July 15th, 2010 5:32pm

hi mike, there's some lines regarding the AD RMS in the log file : 600: 2010-07-15 00:07:02.072 [CBS] IsCacheStillGood: True. 600: 2010-07-15 00:09:04.093 [CBS] IsCacheStillGood: True. 600: 2010-07-15 00:09:51.114 [Provider] System changed since last refresh: False 600: 2010-07-15 00:09:59.239 [InstallationProgressPage] Loading progress page... 600: 2010-07-15 00:09:59.348 [InstallationProgressPage] Begining Sync operation... 600: 2010-07-15 00:09:59.357 [Sync] Sync Graph of changed nodes ========== --------------------------------------------------------------------------- name : Identity Federation Support state : Deleted rank : 4 sync tech: CBS ant. : Active Directory Rights Management Server, Claims-aware Agent pred. : Claims-aware Agent provider : RightsManagementServicesRoleProvider --------------------------------------------------------------------------- name : Active Directory Rights Management Server state : Deleted rank : 80 sync tech: CBS ant. : .NET Framework 3.5.1, Message Queuing Server, Static Content, Default Document, Directory Browsing, HTTP Errors, HTTP Redirection, Static Content Compression, .NET Extensibility, HTTP Logging, Logging Tools, Request Monitor, Request Filtering, Tracing, IIS Management Console, Web Server (IIS) Tools, IIS 6 Metabase Compatibility, IIS 6 WMI Compatibility, ASP.NET, Windows Authentication pred. : .NET Framework 3.5.1, Message Queuing Server, Static Content, Default Document, Directory Browsing, HTTP Errors, HTTP Redirection, Static Content Compression, .NET Extensibility, HTTP Logging, Logging Tools, Request Monitor, Request Filtering, Tracing, IIS Management Console, Web Server (IIS) Tools, IIS 6 Metabase Compatibility, IIS 6 WMI Compatibility, ASP.NET, Windows Authentication, Identity Federation Support provider : RightsManagementServicesRoleProvider --------------------------------------------------------------------------- name : Active Directory Rights Management Services state : Deleted rank : 85 sync tech: CBS guest[1] : Active Directory Rights Management Server guest[2] : Identity Federation Support ant. : empty pred. : Active Directory Rights Management Server, Identity Federation Support provider : RightsManagementServicesRoleProvider 600: 2010-07-15 00:09:59.362 [Sync] Calling sync provider of Active Directory Rights Management Server ... 600: 2010-07-15 00:09:59.362 [RMS] Sync:: guest: 'Active Directory Rights Management Server', guest deleted?: True 600: 2010-07-15 00:09:59.362 [RMS] Begin un-installation of 'Active Directory Rights Management Server'... 600: 2010-07-15 00:09:59.362 [RMS] Uninstall: Guest: 'Active Directory Rights Management Server', updateElement: 'RightsManagementServices' 600: 2010-07-15 00:09:59.362 [RMS] Un-installation queued for 'Active Directory Rights Management Server'. 600: 2010-07-15 00:09:59.362 [RMS] [STAT] For 'Active Directory Rights Management Server': 600: 2010-07-15 00:09:59.362 [RMS] [STAT] Un-Configuration took '0.0001578' second(s) total. 600: 2010-07-15 00:09:59.365 [RMS] Did not find any BeforeUninstall messages for Active Directory Rights Management Server 600: 2010-07-15 00:09:59.367 [RMS] PerformActionBeforeUninstall: 'Active Directory Rights Management Server' 600: 2010-07-15 00:09:59.368 [RMS] Initializing ConfigHelper... 600: 2010-07-15 00:09:59.667 [RMS] Begin Provision, configOperation = <null>, provisionScenario = FullDeprovision, upgrade = False, private key password = <null>, service account password = <null>, proxy password = <null>, adfsUrl = <null>. 600: 2010-07-15 00:10:01.613 [RMS] Error (Id=0) System.Exception: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) at System.DirectoryServices.PropertyValueCollection.get_Item(Int32 index) at Microsoft.RightsManagementServices.Configuration.ProvisionHelper.GetPort(String strTargetComputer, String strIIsService, String strSiteindex, Boolean fSSL) at Microsoft.RightsManagementServices.Configuration.ProvUtils.GetWebsites(String strTargetComputerName, String strIIsWebService) at Microsoft.RightsManagementServices.Configuration.ProvUtils.IsProvisioned() at Microsoft.RightsManagementServices.Configuration.ProvisioningBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.ProvisionerBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.CmdLineHandler.Run() at Microsoft.RightsManagementServices.Configuration.ConfigHelper.Provision(ConfigOperationType configOperation, RmsProvisionScenarioType provisionType, Boolean upgrade, SecureString privateKeyPassword, SecureString rmsServiceAccountPassword, SecureString proxyPassword, String provisionTextValue) at Microsoft.Windows.ServerManager.RightsManagementServices.RightsManagementServicesRoleProvider.PerformActionBeforeUninstallHelper(InstallableFeatureInformation featureInfo) 600: 2010-07-15 00:10:01.618 [Provider] Pre-uninstall failed for Active Directory Rights Management Server 600: 2010-07-15 00:10:01.618 [Provider] Error (Id=0) Sync Result - Success: False, RebootRequired: False, Id: 253 600: 2010-07-15 00:10:01.618 [Provider] Sync Message - OperationKind: UnConfiguration, MessageType: Information, MessageCode: 0, Message: <null>, AdditionalMessage: <null> 600: 2010-07-15 00:10:01.618 [Provider] Error (Id=0) Sync Message - OperationKind: BeforeUninstall, MessageType: Error, MessageCode: 0, Message: Attempt to perform custom actions before un-installing Active Directory Rights Management Server failed., AdditionalMessage: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) at System.DirectoryServices.PropertyValueCollection.get_Item(Int32 index) at Microsoft.RightsManagementServices.Configuration.ProvisionHelper.GetPort(String strTargetComputer, String strIIsService, String strSiteindex, Boolean fSSL) at Microsoft.RightsManagementServices.Configuration.ProvUtils.GetWebsites(String strTargetComputerName, String strIIsWebService) at Microsoft.RightsManagementServices.Configuration.ProvUtils.IsProvisioned() at Microsoft.RightsManagementServices.Configuration.ProvisioningBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.ProvisionerBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.CmdLineHandler.Run() 600: 2010-07-15 00:10:01.618 [InstallationProgressPage] Sync operation completed 600: 2010-07-15 00:10:01.618 [InstallationProgressPage] Error (Id=0) Install not complete for feature: 17 600: 2010-07-15 00:10:01.618 [InstallationProgressPage] Performing post install/uninstall discovery... 600: 2010-07-15 00:10:01.623 [Provider] C:\Windows\system32\ServerManager\Cache\CbsUpdateState.bin does not exist. 600: 2010-07-15 00:10:01.626 [CBS] IsCacheStillGood: False. 600: 2010-07-15 00:10:02.037 [CBS] >>>GetUpdateInfo-------------------------------------------------- 600: 2010-07-15 00:22:04.460 [Sync] Sync Graph of changed nodes ========== --------------------------------------------------------------------------- name : Identity Federation Support state : Deleted rank : 4 sync tech: CBS ant. : Active Directory Rights Management Server, Claims-aware Agent pred. : Claims-aware Agent provider : RightsManagementServicesRoleProvider --------------------------------------------------------------------------- name : Active Directory Rights Management Server state : Deleted rank : 80 sync tech: CBS ant. : .NET Framework 3.5.1, Message Queuing Server, Static Content, Default Document, Directory Browsing, HTTP Errors, HTTP Redirection, Static Content Compression, .NET Extensibility, HTTP Logging, Logging Tools, Request Monitor, Request Filtering, Tracing, IIS Management Console, Web Server (IIS) Tools, IIS 6 Metabase Compatibility, IIS 6 WMI Compatibility, ASP.NET, Windows Authentication pred. : .NET Framework 3.5.1, Message Queuing Server, Static Content, Default Document, Directory Browsing, HTTP Errors, HTTP Redirection, Static Content Compression, .NET Extensibility, HTTP Logging, Logging Tools, Request Monitor, Request Filtering, Tracing, IIS Management Console, Web Server (IIS) Tools, IIS 6 Metabase Compatibility, IIS 6 WMI Compatibility, ASP.NET, Windows Authentication, Identity Federation Support provider : RightsManagementServicesRoleProvider --------------------------------------------------------------------------- name : Active Directory Rights Management Services state : Deleted rank : 85 sync tech: CBS guest[1] : Active Directory Rights Management Server guest[2] : Identity Federation Support ant. : empty pred. : Active Directory Rights Management Server, Identity Federation Support provider : RightsManagementServicesRoleProvider 600: 2010-07-15 00:22:04.461 [Sync] Calling sync provider of Active Directory Rights Management Server ... 600: 2010-07-15 00:22:04.461 [RMS] Sync:: guest: 'Active Directory Rights Management Server', guest deleted?: True 600: 2010-07-15 00:22:04.462 [RMS] Begin un-installation of 'Active Directory Rights Management Server'... 600: 2010-07-15 00:22:04.462 [RMS] Uninstall: Guest: 'Active Directory Rights Management Server', updateElement: 'RightsManagementServices' 600: 2010-07-15 00:22:04.462 [RMS] Un-installation queued for 'Active Directory Rights Management Server'. 600: 2010-07-15 00:22:04.462 [RMS] [STAT] For 'Active Directory Rights Management Server': 600: 2010-07-15 00:22:04.462 [RMS] [STAT] Un-Configuration took '5.3E-06' second(s) total. 600: 2010-07-15 00:22:04.463 [RMS] Did not find any BeforeUninstall messages for Active Directory Rights Management Server 600: 2010-07-15 00:22:04.463 [RMS] PerformActionBeforeUninstall: 'Active Directory Rights Management Server' 600: 2010-07-15 00:22:04.463 [RMS] Initializing ConfigHelper... 600: 2010-07-15 00:22:04.701 [RMS] Begin Provision, configOperation = <null>, provisionScenario = FullDeprovision, upgrade = False, private key password = <null>, service account password = <null>, proxy password = <null>, adfsUrl = <null>. 600: 2010-07-15 00:22:05.792 [RMS] Error (Id=0) System.Exception: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) at System.DirectoryServices.PropertyValueCollection.get_Item(Int32 index) at Microsoft.RightsManagementServices.Configuration.ProvisionHelper.GetPort(String strTargetComputer, String strIIsService, String strSiteindex, Boolean fSSL) at Microsoft.RightsManagementServices.Configuration.ProvUtils.GetWebsites(String strTargetComputerName, String strIIsWebService) at Microsoft.RightsManagementServices.Configuration.ProvUtils.IsProvisioned() at Microsoft.RightsManagementServices.Configuration.ProvisioningBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.ProvisionerBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.CmdLineHandler.Run() at Microsoft.RightsManagementServices.Configuration.ConfigHelper.Provision(ConfigOperationType configOperation, RmsProvisionScenarioType provisionType, Boolean upgrade, SecureString privateKeyPassword, SecureString rmsServiceAccountPassword, SecureString proxyPassword, String provisionTextValue) at Microsoft.Windows.ServerManager.RightsManagementServices.RightsManagementServicesRoleProvider.PerformActionBeforeUninstallHelper(InstallableFeatureInformation featureInfo) 600: 2010-07-15 00:22:05.793 [Provider] Pre-uninstall failed for Active Directory Rights Management Server 600: 2010-07-15 00:22:05.793 [Provider] Error (Id=0) Sync Result - Success: False, RebootRequired: False, Id: 253 600: 2010-07-15 00:22:05.793 [Provider] Sync Message - OperationKind: UnConfiguration, MessageType: Information, MessageCode: 0, Message: <null>, AdditionalMessage: <null> 600: 2010-07-15 00:22:05.794 [Provider] Error (Id=0) Sync Message - OperationKind: BeforeUninstall, MessageType: Error, MessageCode: 0, Message: Attempt to perform custom actions before un-installing Active Directory Rights Management Server failed., AdditionalMessage: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) at System.DirectoryServices.PropertyValueCollection.get_Item(Int32 index) at Microsoft.RightsManagementServices.Configuration.ProvisionHelper.GetPort(String strTargetComputer, String strIIsService, String strSiteindex, Boolean fSSL) at Microsoft.RightsManagementServices.Configuration.ProvUtils.GetWebsites(String strTargetComputerName, String strIIsWebService) at Microsoft.RightsManagementServices.Configuration.ProvUtils.IsProvisioned() at Microsoft.RightsManagementServices.Configuration.ProvisioningBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.ProvisionerBase.Unprovision() at Microsoft.RightsManagementServices.Configuration.CmdLineHandler.Run() 600: 2010-07-15 00:22:05.814 [InstallationProgressPage] Sync operation completed 600: 2010-07-15 00:22:05.815 [InstallationProgressPage] Error (Id=0) Install not complete for feature: 17 600: 2010-07-15 00:22:05.815 [InstallationProgressPage] Performing post install/uninstall discovery... 600: 2010-07-15 00:22:05.818 [Provider] C:\Windows\system32\ServerManager\Cache\CbsUpdateState.bin does not exist. 600: 2010-07-15 00:22:05.818 [CBS] IsCacheStillGood: False. 600: 2010-07-15 00:22:06.115 [CBS] >>>GetUpdateInfo-------------------------------------------------- 600: 2010-07-15 00:22:09.487 [CBS] GetUpdateInfo: total: 196 updates i don't know if this is informative or not.. any other suggestion? thx. -Willy-
July 16th, 2010 9:40am

Hi, From the log files, I noticed the cause is “C:\Windows\system32\ServerManager\Cache\CbsUpdateState.bin does not exist”. Sometimes this file could be deleted by Symantec EndPoint Protection software. If you have this problem installed, please disable it temporarily. I suggest restoring the Cache folder to the state when CbsUpdateState.bin existed. Open C:\Windows\system32\ServerManager, right-click Cache and click Properties. On the Previous Version tab, choose a folder version which contains the CbsUpdateState.bin file and click Restore. Tim Quan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2010 10:38am

Hi Tim, i tried your suggestion, but there's no previous folder version that i could restore it says "There are no previous versions available" any other advise? thx. -Willy-
July 19th, 2010 5:57am

Hi Willy, Thank you for the reply. Now please run the System Update Readiness Tool and paste the result in %SYSTEMROOT%\Logs\CBS\CheckSUR.log. http://support.microsoft.com/kb/947821/en-us Tim Quan
Free Windows Admin Tool Kit Click here and download it now
July 19th, 2010 8:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics