none
Error ADCS revoke a certificate using CERTADMINLib.dll

    Question

  • Hi, I developed a service to manage Active Directory Certificate Services, but when I try to revoke a certificate using CERTADMINLib.dll is obtained an error message.
     
    I generated CERTADMINLib.dll with tlbimp command and certadm.dll as follow:
     
    tlbimp certadm.dll /machine:x64
     
    Because my system running 64bits, after I copy certadm.dll in System32 directory and register dll with regsvr32... I added CERTADMINLib.dll in the   project references and created a instance of the CCertAdmin interface as follow:
     
    CERTADMINLib.CCertAdmin objAdmin = new CERTADMINLib.CCertAdmin();
     
    And I got the error:
     
    Retrieving the COM class factory for component with CLSID {37EABAF0-7FB6-11D0-8817-00A0C903B83C} failed due to the following error: 80040154.
     
    Any ideas to solved this problem?
     
    Note:
     
    I tried with x86 too, same results
    Thursday, April 11, 2013 11:13 PM

Answers

  • Thanks to all who answered

    The solution.

    Installing or Removing Remote Server Administration Tools for Windows 7
    http://technet.microsoft.com/en-us/library/ee449483%28WS.10%29.aspx#BKMK_installui
    The installation section reports how to enable the relevent remote server administration tools.
    Followed these steps:
    1.        Click Start , click Control Panel , and then click Programs .
    2.        In the Programs and Features area, click Turn Windows features on or off .
    If you are prompted by User Account Control to allow the Windows Features dialog box to open, click Continue .
    3.        In the Windows Features dialog box:

    Expand Remote Server Administration Tools .
    Expand Role Admin Tools .
    Expand Active Directory Certificate Services Tools .
    Check Certificate Authority Tools.
    OK.

    4.- Add App Reference “CertAdm 1.0 Type Library“ in COM tab

    Reference: http://social.technet.microsoft.com/Forums/en-US/winserversecurity/thread/1e488fe6-fee8-46f2-8755-c3ee64e65e15/

          
    • Marked as answer by Bonola Monday, April 15, 2013 10:48 PM
    Monday, April 15, 2013 10:48 PM

All replies

  • Hello,

    for CA related questions better ask the Security experts in http://social.technet.microsoft.com/Forums/en-US/winserversecurity/threads


    Best regards

    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/

    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.

    Friday, April 12, 2013 6:28 AM
  • Hi,

    Thanks for posting in Microsoft TechNet forums.

    About this issue, I suggest we also seek help in the MSDN forum. There you can get more effective suggestion by other experts who familiar with this topic. 

    http://social.msdn.microsoft.com/Forums/en-US/categories

    Your understanding is appreciated.

    Regards

    Kevin

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.

     
    Friday, April 12, 2013 7:28 AM
  • Thanks
    Friday, April 12, 2013 7:08 PM
  • I don't think certadm registers itself with regsrv. You will need to create the com registration manually.

    Andrew


    Sunday, April 14, 2013 5:36 AM
  • Thanks to all who answered

    The solution.

    Installing or Removing Remote Server Administration Tools for Windows 7
    http://technet.microsoft.com/en-us/library/ee449483%28WS.10%29.aspx#BKMK_installui
    The installation section reports how to enable the relevent remote server administration tools.
    Followed these steps:
    1.        Click Start , click Control Panel , and then click Programs .
    2.        In the Programs and Features area, click Turn Windows features on or off .
    If you are prompted by User Account Control to allow the Windows Features dialog box to open, click Continue .
    3.        In the Windows Features dialog box:

    Expand Remote Server Administration Tools .
    Expand Role Admin Tools .
    Expand Active Directory Certificate Services Tools .
    Check Certificate Authority Tools.
    OK.

    4.- Add App Reference “CertAdm 1.0 Type Library“ in COM tab

    Reference: http://social.technet.microsoft.com/Forums/en-US/winserversecurity/thread/1e488fe6-fee8-46f2-8755-c3ee64e65e15/

          
    • Marked as answer by Bonola Monday, April 15, 2013 10:48 PM
    Monday, April 15, 2013 10:48 PM