GPO Backup Settings .... Can you "sneak in" new Firewall Rules?
Tagged: GPO Powershell XML
- Fri, Mar 20 2020 at 2:19 pm #1555444Rich ChalifouxParticipantPost count: 1Member Points: 61Rank: Level 1
Newbie in terms of Blogs and Community postings so no clue on proper etiquette and actually not sure if this question belongs here. But here goes…
I have a GPO which holds hundreds of Inbound firewall rules that requires us to add/remove program executables routinely. I had attempted to use Powershell to import the “gpreport.xml”of that GPO’s backup. Position myself over the XML location of those nodes, clone the first one, and then fill the section with the elements of each new rule from a CSV. I assumed as long as the XML formatting was correct, and in the right place, the new GPO settings would be consumed via “import/restore of same GPO without complaint from the same. I thought that I was being clever… kinda like when a mother hides the mashed carrots on the baby’s spoon under the applesauce 🙂 But it didn’t work 🙁 though the GPO import completed successfully but without the new rules. Have I broken any GPO rules to anybody’s knowledge, or could it be something simpler, such as casing for example. Example of two rules below.
- This topic was modified 1 week, 1 day ago by Rich Chalifoux.
- Thu, Mar 26 2020 at 11:06 am #1555527Leos MarekModeratorPost count: 167Member Points: 8,544Rank: Level 3
could you give the exact commands you used? I will try to check tomorrow what is possible.
- You must be logged in to reply to this topic.