I have two NIC ports(port1 & port2) in my windows machine. I want to enable internet connection sharing option on port1 through any script (either c# or batch is preferred). I have googled and able to get only how to start the ICS service but not to enable that option. I have given an image for reference.

[![enter image description here][1]][1]


  [1]: https://i.sstatic.net/gXe0a.png