.net code that can add IP address to existing rule in windows firewall
I need .net code (source ofcourse)
that will do:
1. connect to mysql db and will list rows in grid, one of the columns is IP address
2. each row will have a checkbox column,
3, I will be able to check some of the rows and click "block"
4, after I click block, the selected rows ip address will be added to EXISITING rule in windows firewall. the rule is ip block rule with few ip addresses already added.
5. I will get confirmation with description of how many added (as some might already be there.
the server where I will need to run this code is windows 2012 r2 (if it matters)