none
Import XML file to Group Policy Preferences Registry

    Question

  • Hello,

    I am attempting to import a converted registry to xml file into Group Policies preferences.  Based on tutorials, I should be able to drag and drop the xml file through the Group Policy Management Console, directly onto the Registry icon, or in the pane to the right.  Unfortunately I am unable to do this.  

    2008 Domain

    GPMC 6.0.0.1

    Attempted from Win7 Ent desktop with RSAT tools and Win2008R2 server

    Below is a url to a youtube video showing it in action (:34 seconds:

    http://www.youtube.com/watch?v=A56GcGdjOJY&noredirect=1

    Thanks!

    Thursday, November 29, 2012 9:40 PM

Answers

All replies

  • Hello,

    I am attempting to import a converted registry to xml file into Group Policies preferences.  Based on tutorials, I should be able to drag and drop the xml file through the Group Policy Management Console, directly onto the Registry icon, or in the pane to the right.  Unfortunately I am unable to do this.  

    2008 Domain

    GPMC 6.0.0.1

    Attempted from Win7 Ent desktop with RSAT tools and Win2008R2 server

    Below is a url to a youtube video showing it in action (:34 seconds:

    http://www.youtube.com/watch?v=A56GcGdjOJY&noredirect=1

    Thanks!

    Thursday, November 29, 2012 9:38 PM
  • Hello,

    Can't test it right now.
    I guess this could be a UAC issue.

    Does it work when UAC is off?

    BTW:

    You can also create a dummy registry item.
    Then you replace this file (registry.xml):

    \\domain.local\SYSVOL\domain.local\Policies\{GUID}\machine\Preferences\Registry or
    \\domain.local\SYSVOL\domain.local\Policies\{GUID}\user\Preferences\Registry


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!




    Thursday, November 29, 2012 10:37 PM
  • Or you can simply rightclick on the XML file => Copy

    Then you goto your GPMC and click here and choose paste


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!


    Friday, November 30, 2012 8:04 AM
  •  
    >  Unfortunately I am unable to do this.
     
    What do you do and what result do you get? And maybe posting the
    converted xml would be helpful (if it's not too big...)
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    Friday, November 30, 2012 11:14 AM
  • Hi,

    Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.

    If you have any feedback on our support, please click here .


    Cataleya Li
    TechNet Community Support

    Monday, December 03, 2012 5:47 AM
    Moderator
  • What do you do and what result do you get? And maybe posting the
    converted xml would be helpful (if it's not too big...)

    I think it is not related to the XML file.
    I can't drag & drop also.

    I'll try to disable UAC now to see what happens.


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!

    Monday, December 03, 2012 7:41 AM
  •  
    > I can't drag & drop also.
     
    You cannot. I cannot. Nobody can. Drag'n Drop support in preferences is
    somewhat limited.
     
    You CAN drag an item from a preference to a folder. That will create the
    XML file. You CANNOT drag the xml back into the preference, but you CAN
    copy and then RMB "paste" it back. And this (verified 30 seconds ago)
    also works with reg2xml.
     
    regards, Martin
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    Tuesday, December 04, 2012 9:29 PM
  • You cannot. I cannot. Nobody can. Drag'n Drop support in preferences is

    somewhat limited.

    I did some research on that.

    It doesen't seem to be related to UAC.

    I'll see what Microsoft says.


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!

    Tuesday, December 04, 2012 9:38 PM
  •  
    >
    > I'll see what Microsoft says.
    >
     
    In OS/2 times (who remembers? ;)) an area could be used as a drag source
    or as a drop target. Seems they only implemented the former, but not the
    latter...
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    Tuesday, December 04, 2012 9:50 PM
  • Seems they only implemented the former, but not the

    latter...

    I'm sure it a new security feature, not a bug

    (to protect us from ourselves) :-)


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!

    Tuesday, December 04, 2012 10:17 PM


  • I'm sure it a new security feature, not a bug

    (to protect us from ourselves) :-)


    Of course it is ;-) Have you ever seen a shortcut to a network drive in the root of another network drive? Drag'n Drop in Explorer...

    At least, it prevents us from accidentally creating duplicate items by "micro-dragging" :-P

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    Wednesday, December 05, 2012 1:12 PM
  • Sorry for the late reply.

    I took dropped UAC all the way down and attempted the import again.  I did in fact get farther, as I can now drag and drop the file.  Unfortunately I received the attached errors.

    +

    

    

    This could be a result of an improperly parsed registry to xml file.  

    Wednesday, December 05, 2012 9:48 PM
  • Hello,

    This could be a result of an improperly parsed registry to xml file. 

    Please try to create a new registry item (Registry Wizard or something like this).
    Drag this file to your Desktop.
    Delete the item in the policy.
    Try to import this xml file from the Destkop now.

    Does it work?


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!


    Wednesday, December 05, 2012 9:51 PM
  • It probably was parsed wrong, as you say.  I was looking for a useful solution to applying many registry keys to a fair number of computers.  In the end I used a batch script to just import the keys.  The fact that you can't directly import registry keys makes the wizard less than useful.  

    Thanks for the help everyone.

     
    Tuesday, December 11, 2012 9:30 PM
  • I know, it definitely needs to be converted from .reg to .xml.

    was looking for a useful solution to applying many registry keys to a fair number of computers.

    Another idea, you can use PowerShell to create GPP Registry Items:

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


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!

    • Proposed as answer by Jason Mei Wednesday, December 19, 2012 4:49 AM
    Tuesday, December 11, 2012 10:26 PM
  • This online free tool is great to convert reg files to XML files which can be directly imported into GP Preferences:

    http://colonelpanic.zzl.org/reg2gpp/

    It made my day!

    Saturday, March 02, 2013 11:46 AM
  • Thank you alexandreperez! I was considering dropping the cash on the other utility, but found your link, tried it, and VOILA!  200 Trusted sites exported from the registry and imported into GPP for application to IE 10.  Tested and works perfectly.  

    BJ

    Saturday, May 04, 2013 12:56 AM
  • Also found that copying the xml file and pasting it sometimes doesn't work but if you open the xml file in Notepad, select all and copy and then paste into the Registry Preferences that will work...go figure...

    Thursday, June 06, 2013 4:56 AM
  • I do it this way:

    1) Import all Reg Values with Registration-Assistent: You have than all Reg Values imported with User-SID. We don't want this as we need current user tree. So we have to change all those values in one run.

    2) On Registration Element in Group Policy -> All Tasks -> Show XML. Now you have your XML with the wrong values

    3) open xml with wordpad -> search and replace the USer-SID  ..

    4) Drag the new xml in Registry tree from the gpo.

    Done!

    Thursday, April 10, 2014 9:32 AM
  • I have successfully used the tool above and it worked well. It seems that the link above is now dead. I found this link that looks like the same tool and works very well.

    http://ameelabs.org.ua/reg2gpp/


    Steven Terry

    Wednesday, July 16, 2014 9:51 PM