none
User Configuration options error: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.

    Question

  • I get this message when trying to edit any User Configuration options on one of my group policies.
    The Computer Configuration options do not produce these errors.

    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
       at Microsoft.GroupPolicy.AdmTmplEditor.IGPMAdmTmplEditorCallback.ApplyChanges()
       at Microsoft.GroupPolicy.AdmTmplEditor.Editor.SaveChanges()
       at Microsoft.GroupPolicy.AdmTmplEditor.Editor.buttonOK_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    Microsoft.GroupPolicy.AdmTmplEditor
        Assembly Version: 6.1.0.0
        Win32 Version: 6.1.7601.17514 (win7sp1_rtm.101119-1850)
        CodeBase: file:///C:/Windows/assembly/GAC_64/Microsoft.GroupPolicy.AdmTmplEditor/6.1.0.0__31bf3856ad364e35/Microsoft.GroupPolicy.AdmTmplEditor.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Accessibility
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    Tuesday, December 30, 2014 3:36 PM

All replies

  • Hi,

    >>I get this message when trying to edit any User Configuration options on one of my group policies.

    Before going further, what's the operating system of the machine on which we edited the policy object? Besides, does this error happen to all the GPOs or just one GPO?

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

    Best regards,
    Frank Shen

    Wednesday, December 31, 2014 3:32 PM
    Moderator
  • Server 2008 R2 Domain Controller, editing on the same machine.

    Just on the one GPO.

    I tried making a backup and restoring it but the issue persists.

    Wednesday, December 31, 2014 5:49 PM
  • Hi,

    >>Just on the one GPO.

    >>I tried making a backup and restoring it but the issue persists.

    I am not sure if you want to do this but we can try to create a new GPO and import the settings from the troubled GPO to see if the issue persists. If this can solve the issue, we can choose to delete the troubled GPO.

    Regarding how to import GPO settings, the following article can be referred to for more information. 

    http://technet.microsoft.com/en-us/library/cc753786.aspx

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

    Best regards,
    Frank Shen



    Monday, January 05, 2015 1:31 AM
    Moderator
  • Just tried that, issue persists.

    Followed your directions.

    Monday, January 05, 2015 6:39 PM
  • Hi

    After I went over the this ticket, I learnt that it is the issue that you will meet the following error when you edit User Configuration of one group policy on one DC.

    System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.

    If I have misunderstood your concern please let me know.

    Based on the error and my experience, it may cause by .adm file corrupt. You can copy the C:\Windows\PolicyDefinitions from another working DC to the DC with issue.

    If you have any question , please feel free to let me know.

    BRs,

    Bryan Yuan

    Saturday, January 10, 2015 9:54 AM
  • Hi Sir,

    Hare are things going? Please note me an update so as to I can continue to help you.

    Besides, have you imported a custom adm file into the GPO. If yes,  please try to delete the adm file to see if the issue persists. And please let me know the whether the issue happened only on one DC.

    Thank you!

    Friday, January 16, 2015 9:01 AM
  • Hi Sir,

    is there any update? thanks.

    BRs,

    Bryan Yuan

    Thursday, January 22, 2015 1:51 AM
  • I only have one custom ADMX file and I just tried removing that and it still errors out.

    Please note that this is only on one GPO under the "User Configuration", not all GPOs.

    Only one DC in this config.

    Thursday, January 22, 2015 1:55 AM
  • Hi Sir,

    Thank you so much your information.

    From your post,  I learnt that you have tried to delete the custom ADMX file but the issue still persisted. This issue just happen for only one GPO on one DC. So I suggest you can cope the

    C:\Windows\PolicyDefinitions from another working DC to the DC with issue.

    If this troubleshooting doesn’t work, to do further investigation, you can export the problematic GPO so that I can test on my side. please follow the steps as below and upload the backup GPO to the Onedrive.

    Noteplease share the GPO ONLY for me to protect your information.

     

    1) Open “GPMC”, expand Forest: domainname\Domains\Domainname\Group Policy Objects\ name of GPO.

     

    2) Right click name of GPO, choose “Back Up” and follow the wizard to export it.

    Besides, if you have use center store, please let me know.

     

    Your continued patience and cooperation would be highly appreciated.

    Friday, January 23, 2015 3:16 AM
  • Hi Sir,

    is there any update?

    Bryan Yuan

    Thursday, January 29, 2015 11:56 AM
  • Sorry for the delay,

    I uploaded the problematic GPO to my OneDrive but I don't know how to share it with you.

    OneDrive asks for an email to share it with someone.

    Thursday, January 29, 2015 7:55 PM
  • Hi Sir,

    i appreciate your cooperation.

    you can share with me (CTS-V-bryuan@live.com)

    BRs,

    Bryan

    Thursday, February 05, 2015 6:23 AM
  • Done.

    Thank you!

    Thursday, February 05, 2015 7:17 PM