Link to home
Start Free TrialLog in
Avatar of Racksuite
Racksuite

asked on

Cannot remove Active Directory Certificate Services role during migration from SBS to Server Essentials

During a migration from SBS 2008 SP2 to 2012 R2 Essentials, each time I use the Server Manager Remove Roles Wizard to remove the Active Directory Certificate Services role, I get an MMC crash during "Initializing removal".

This is the text from the crash dialog:

Description:
  Stopped working

Problem signature:
  Problem Event Name:      CLR20r3
  Problem Signature 01:      mmc.exe
  Problem Signature 02:      6.0.6002.18005
  Problem Signature 03:      49e02760
  Problem Signature 04:      mscorlib
  Problem Signature 05:      2.0.0.0
  Problem Signature 06:      53a11b76
  Problem Signature 07:      4223
  Problem Signature 08:      a9
  Problem Signature 09:      System.BadImageFormatException
  OS Version:      6.0.6002.2.2.0.305.9
  Locale ID:      2057

A little more information - this is in the ServerManager.log:
2404: 2015-11-03 11:18:52.466 [ExceptionHandler] Error (Id=0) An unexpected exception was found:
System.BadImageFormatException: Could not load file or assembly 'Microsoft.CertificateServices.Setup.Interop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'Microsoft.CertificateServices.Setup.Interop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.Windows.ServerManager.CertificateServer.CertificateServerRoleProvider.PerformActionBeforeUninstall(Object clientContext, XDocument host, XDocument guest, String guestIdentity)
   at Microsoft.Windows.ServerManager.Common.Provider.PreUninstall(XDocument host, XDocument guest, String guestIdentity, Object clientContext)
   at Microsoft.Windows.ServerManager.Common.Provider.FlushSyncPreUninstalls(List`1 guestsToSync, Dictionary`2 syncResultMap)
   at Microsoft.Windows.ServerManager.Common.Provider.FlushSync(SyncProgressHandler progressCallback)
   at Microsoft.Windows.ServerManager.Common.Provider.FinalFlush(SyncProgressHandler progressCallback)
   at Microsoft.SystemDefinitionModel.Transformation.Imperative.SyncEngine.Sync(String rootIdentity, String[] eventClassIdentities)
   at Microsoft.Windows.ServerManager.Utilities.ImperativeTransformationEngine.Sync(ClientContext clientContext, ClassValue rootInstance, SyncProgressEventHandler progressHandler, String[] progressItems)
   at Microsoft.Windows.ServerManager.ModelResult.CommitUpdates(ProgressUpdateCallback progressUpdateDelegate, String[] eventClassIdentities)

Open in new window


Any ideas on how to get around this one? With ADCS still on the old server I can't demote it.

Thanks in advance.
Avatar of FOX
FOX
Flag of United States of America image

Try ripping it out with a powershell command.
Open powershell as an administrator
type in this command
import-module servermanager
type in the command that you need from the link below
https://technet.microsoft.com/en-us/library/hh848390(v=wps.630).aspx
Avatar of Racksuite
Racksuite

ASKER

Foxluv thanks for the suggestion, but it's the SBS 2008 SP2 server that won't let me remove Certificate Services.

The link you gave lists PowerShell commands on 2012 R2 / Win 8.1.

Just in case it might work anyway, I tried import-module servermanager but the module file was not found.

Any other thoughts..?
ASKER CERTIFIED SOLUTION
Avatar of Racksuite
Racksuite

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Nice work!! Great learning curve to say the least.
Thanks! Yeah sharp learning curve, could have done with an easier ride as this is really eating my time but hey, better than being defeated!
The only expert reply this question attracted was not helpful as it is not applicable to the operating system in question.